diff options
author | David Schleef <ds@ti.com> | 2012-07-31 12:53:09 -0700 |
---|---|---|
committer | Jason Simmons <jsimmons@google.com> | 2012-11-07 14:36:32 -0800 |
commit | 335caabfe4dec9b14bad89fc6e4a63292b36ea5f (patch) | |
tree | 3b81d4cba9e3d3fdea74d425ba07aa5f37e1a1bf | |
parent | 632f68a15eb49aad3fdcc1e81b257ba066d64ce4 (diff) | |
download | omap4-aah-335caabfe4dec9b14bad89fc6e4a63292b36ea5f.tar.gz |
Camera_test: Set SurfaceTexture flags correctly
- To write to a buffer, one needs WRITE_OFTEN.
Change-Id: I44ade4551c5f133960e51e7cd540c3a9adf57da4
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
-rw-r--r-- | test/CameraHal/camera_test_surfacetexture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CameraHal/camera_test_surfacetexture.cpp b/test/CameraHal/camera_test_surfacetexture.cpp index 897ded7..3c1ce91 100644 --- a/test/CameraHal/camera_test_surfacetexture.cpp +++ b/test/CameraHal/camera_test_surfacetexture.cpp @@ -501,10 +501,10 @@ void BufferSourceInput::setInput(buffer_info_t bufinfo, const char *format, Shot // to make sure the stride of the buffer is correct if ((aligned_width != bufinfo.width) || (aligned_height != bufinfo.height)) { mWindowTapIn->dequeueBuffer(mWindowTapIn.get(), &anb); - mapper.lock(anb->handle, GRALLOC_USAGE_SW_READ_RARELY, bounds, &data); + mapper.lock(anb->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &data); // copy buffer to input buffer if available if (bufinfo.buf.get()) { - bufinfo.buf->lock(GRALLOC_USAGE_SW_READ_RARELY, &input); + bufinfo.buf->lock(GRALLOC_USAGE_SW_READ_OFTEN, &input); } if (input) { if ( HAL_PIXEL_FORMAT_TI_Y16 == pixformat ) { |