diff options
author | Rahul Sharma <sharah@codeaurora.org> | 2017-01-05 09:15:40 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-27 09:00:06 -0800 |
commit | 61173ea422783cab1e49bfc56d0c5fc3795f3d57 (patch) | |
tree | 4a68f6f56d29d12a5318fc3e9b4dca32bdcbf352 /libcopybit | |
parent | 8e0581e3da8122d570828f0e54f86e3c0e335c1f (diff) | |
download | display-61173ea422783cab1e49bfc56d0c5fc3795f3d57.tar.gz |
sdm: Add support for new pixel formats in HAL
Add support for BGR_888 and CBYCRY_422_I in display HAL. The
new formats will be used by QCarCam Application.
CRs-Fixed: 1116491
Change-Id: I5ccca57a3ca2d27c4e064b0c5abd68c77c7afadd
Diffstat (limited to 'libcopybit')
-rw-r--r-- | libcopybit/copybit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index 10f5943a..80b3cfe6 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -148,6 +148,8 @@ static int get_format(int format) { 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; + case HAL_PIXEL_FORMAT_CbYCrY_422_I: return MDP_CBYCRY_H2V1; + case HAL_PIXEL_FORMAT_BGR_888: return MDP_BGR_888; } return -1; } |