summaryrefslogtreecommitdiff
path: root/rsGrallocConsumer.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2015-02-24 18:25:59 -0800
committerJason Sams <jsams@google.com>2015-02-24 18:27:15 -0800
commit7314cca8575544195e475ecc53d995311ac269c0 (patch)
tree85b672796039fdddff2d283c510922322544bcf6 /rsGrallocConsumer.cpp
parent38c0330e1f75a52fc02b0d213ea78512335e0f83 (diff)
downloadrs-7314cca8575544195e475ecc53d995311ac269c0.tar.gz
Fix issue when USAGE_IO_INPUT receives unexpected YUV format
Sometimes we can get a fixed format when the flexible format was expected. Change-Id: If67a8fb586ca5d4ddeb3204d14c416e3d05b4a32
Diffstat (limited to 'rsGrallocConsumer.cpp')
-rw-r--r--rsGrallocConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsGrallocConsumer.cpp b/rsGrallocConsumer.cpp
index 78502772..2d574216 100644
--- a/rsGrallocConsumer.cpp
+++ b/rsGrallocConsumer.cpp
@@ -146,7 +146,7 @@ status_t GrallocConsumer::lockNextBuffer() {
//mAlloc->scalingMode = b.mScalingMode;
//mAlloc->frameNumber = b.mFrameNumber;
- if (mAlloc->mHal.state.yuv) {
+ if (mAlloc->mHal.state.yuv == HAL_PIXEL_FORMAT_YCbCr_420_888) {
mAlloc->mHal.drvState.lod[1].mallocPtr = ycbcr.cb;
mAlloc->mHal.drvState.lod[2].mallocPtr = ycbcr.cr;