Camera: Setting cbcr offset to frame size in picture buffer

In 7x27, buffer size is calculated by taking ceiling value of
width and height for jpeg encoder. Cbcr offset was initially
calculated based on this size based on ceiling values. Setting
cbcr offset to frame size calculated based on exact width
and height.
diff --git a/QualcommCameraHardware.cpp b/QualcommCameraHardware.cpp
index dd3f0b3..5ab1604 100644
--- a/QualcommCameraHardware.cpp
+++ b/QualcommCameraHardware.cpp
@@ -3052,6 +3052,7 @@
 
 static bool register_buf(int camfd,
                          int size,
+                         int frame_size,
                          int pmempreviewfd,
                          uint32_t offset,
                          uint8_t *buf,
@@ -3122,6 +3123,7 @@
         for (int cnt = 0; cnt < num_buffers; ++cnt) {
             register_buf(mCameraControlFd,
                          mBufferSize,
+                         mFrameSize,
                          mHeap->getHeapID(),
                          mAlignedBufferSize * cnt,
                          (uint8_t *)mHeap->base() + mAlignedBufferSize * cnt,
@@ -3143,6 +3145,7 @@
         for (int cnt = 0; cnt < mNumBuffers; ++cnt) {
             register_buf(mCameraControlFd,
                          mBufferSize,
+                         mFrameSize,
                          mHeap->getHeapID(),
                          mAlignedBufferSize * cnt,
                          (uint8_t *)mHeap->base() + mAlignedBufferSize * cnt,
@@ -3169,6 +3172,7 @@
 
 static bool register_buf(int camfd,
                          int size,
+                         int frame_size,
                          int pmempreviewfd,
                          uint32_t offset,
                          uint8_t *buf,
@@ -3184,7 +3188,7 @@
     pmemBuf.len      = size;
     pmemBuf.vaddr    = buf;
     pmemBuf.y_off    = 0;
-    pmemBuf.cbcr_off = PAD_TO_WORD(size * 2 / 3);
+    pmemBuf.cbcr_off = PAD_TO_WORD(frame_size * 2 / 3);
     pmemBuf.active   = vfe_can_write;
 
     LOGV("register_buf: camfd = %d, reg = %d buffer = %p",