diff options
author | Vladimir Petrov <vppetrov@mm-sol.com> | 2012-08-08 20:59:27 +0300 |
---|---|---|
committer | Jason Simmons <jsimmons@google.com> | 2012-11-07 14:36:33 -0800 |
commit | ce75a6a467b1a7e833e285276bfa96325584f7d0 (patch) | |
tree | 75a2959230eb611511f79ca1a561fac07160f465 | |
parent | 307afa2019d77c6506b6e9061938795bff498ad0 (diff) | |
download | omap4-aah-ce75a6a467b1a7e833e285276bfa96325584f7d0.tar.gz |
Camera_test: BQ: Always write cropped NV12
- Write cropped NV12 regardless of offset to handle
cases where image is cropped and both top and left
are zero.
Change-Id: Id8789b2d9745a67916295819303ba7fa399e8826
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
-rw-r--r-- | test/CameraHal/camera_test_surfacetexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CameraHal/camera_test_surfacetexture.cpp b/test/CameraHal/camera_test_surfacetexture.cpp index d1b16c7..d04d226 100644 --- a/test/CameraHal/camera_test_surfacetexture.cpp +++ b/test/CameraHal/camera_test_surfacetexture.cpp @@ -631,7 +631,7 @@ void BufferSourceThread::handleBuffer(sp<GraphicBuffer> &graphic_buffer, uint8_t sprintf(fn, "/sdcard/img%03d.raw", count); fd = open(fn, O_CREAT | O_WRONLY | O_TRUNC, 0777); if (fd >= 0) { - if (offset && (info.format == HAL_PIXEL_FORMAT_TI_NV12)) { + if (HAL_PIXEL_FORMAT_TI_NV12 == info.format) { writeCroppedNV12(offset, info.width, info.width, info.height, crop, fd, buffer); } else if (size != write(fd, buffer + offset, size)) { |