diff options
author | Raj Kamal <rkamal@codeaurora.org> | 2015-03-24 16:22:17 +0530 |
---|---|---|
committer | Raj Kamal <rkamal@codeaurora.org> | 2015-04-16 18:28:45 +0530 |
commit | 8bb3b8f79ad63767d1273f7f8353cdbb6a4055ea (patch) | |
tree | 33ad3de6bc2d21cf6b441313d172a63b162147d2 /libcopybit | |
parent | a15b6ae12b43a8d2a1d4a5693bdc3b59414c9b15 (diff) | |
download | display-8bb3b8f79ad63767d1273f7f8353cdbb6a4055ea.tar.gz |
hwc: Add support for YCrCb_420_SP_VENUS(NV21_VENUS)
* Earlier, camera preview buffers were of NV21(YCrCb_420_SP)
and the video buffers were of NV12_VENUS(YCbCr_420_SP_VENUS)
format. Now that the video encoder has support for NV21,
both the camera and video buffers can be of
NV21_VENUS(YCrCb_420_SP_VENUS) format.
* If the preview and video buffer sizes are the same,
CPP double pass to generate video and preview buffers can be
avoided and the buffers can now be generated within a single pass
with CPP duplication thereby saving power.
* Add support in gralloc for NV12_VENUS format to achieve
the same.
Change-Id: I7001f975f2cafa21c893e7384ddbddd5f2788b1d
Diffstat (limited to 'libcopybit')
-rw-r--r-- | libcopybit/copybit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index 02f0c7e2..10f5943a 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -146,6 +146,7 @@ static int get_format(int format) { case HAL_PIXEL_FORMAT_YCbCr_420_SP: return MDP_Y_CBCR_H2V2; case HAL_PIXEL_FORMAT_YCrCb_420_SP_ADRENO: return MDP_Y_CBCR_H2V2_ADRENO; case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS: return MDP_Y_CBCR_H2V2_VENUS; + case HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS: return MDP_Y_CRCB_H2V2_VENUS; case HAL_PIXEL_FORMAT_NV12_ENCODEABLE: return MDP_Y_CBCR_H2V2; } return -1; |