summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLajos Molnar2015-01-22 18:37:37 -0600
committerLajos Molnar2015-01-28 18:52:43 -0600
commit6a26be7c2b1e5a84b5d2105780148016889285e6 (patch)
tree28d89c4b88d3c91dc9fecdc3891a74d0db93e30f /include
parentd6fce7ab66e5d33e3ee16247485d1b8c26dd7ee8 (diff)
downloadframeworks-native-6a26be7c2b1e5a84b5d2105780148016889285e6.tar.gz
frameworks-native-6a26be7c2b1e5a84b5d2105780148016889285e6.tar.xz
frameworks-native-6a26be7c2b1e5a84b5d2105780148016889285e6.zip
CpuConsumer: lock buffers that could be YUV as ycbcr
Bug: 17906609 Change-Id: Ic71af69ec3b19ab1224ed3ad5e0a97c60e81cda6
Diffstat (limited to 'include')
-rw-r--r--include/gui/CpuConsumer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/gui/CpuConsumer.h b/include/gui/CpuConsumer.h
index 6f4c2ec1e..4c6822a09 100644
--- a/include/gui/CpuConsumer.h
+++ b/include/gui/CpuConsumer.h
@@ -54,8 +54,12 @@ class CpuConsumer : public ConsumerBase
54 uint32_t scalingMode; 54 uint32_t scalingMode;
55 int64_t timestamp; 55 int64_t timestamp;
56 uint64_t frameNumber; 56 uint64_t frameNumber;
57 // Values below are only valid when using 57 // this is the same as format, except for formats that are compatible with
58 // HAL_PIXEL_FORMAT_YCbCr_420_888, in which case LockedBuffer::data 58 // a flexible format (e.g. HAL_PIXEL_FORMAT_YCbCr_420_888). In the latter
59 // case this contains that flexible format
60 PixelFormat flexFormat;
61 // Values below are only valid when using HAL_PIXEL_FORMAT_YCbCr_420_888
62 // or compatible format, in which case LockedBuffer::data
59 // contains the Y channel, and stride is the Y channel stride. For other 63 // contains the Y channel, and stride is the Y channel stride. For other
60 // formats, these will all be 0. 64 // formats, these will all be 0.
61 uint8_t *dataCb; 65 uint8_t *dataCb;