diff options
Diffstat (limited to 'camera/BufferSourceAdapter.cpp')
-rw-r--r-- | camera/BufferSourceAdapter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/BufferSourceAdapter.cpp b/camera/BufferSourceAdapter.cpp index e00cec7..acb4653 100644 --- a/camera/BufferSourceAdapter.cpp +++ b/camera/BufferSourceAdapter.cpp @@ -387,7 +387,7 @@ CameraBuffer* BufferSourceAdapter::allocateBufferList(int width, int height, con mBuffers[i].type = CAMERA_BUFFER_ANW; mFramesWithCameraAdapterMap.add(handle, i); - bytes = getBufSize(format, width, height); + bytes = CameraHal::calculateBufferSize(format, width, height); } for( i = 0; i < mBufferCount-undequeued; i++ ) { @@ -422,7 +422,7 @@ CameraBuffer* BufferSourceAdapter::allocateBufferList(int width, int height, con mFramesWithCameraAdapterMap.removeItem((buffer_handle_t *) mBuffers[i].opaque); } - mPixelFormat = getPixFormatConstant(format); + mPixelFormat = CameraHal::getPixelFormatConstant(format); mFrameWidth = width; mFrameHeight = height; mBufferSourceDirection = BUFFER_SOURCE_TAP_OUT; |