Overlay: Change MDP format for YV12 buffers

Android uses different alignments for YV12 buffers.
   Hence, introduce a new format (MDP_Y_CR_CB_GH2V2) for
   such buffers.

Change-Id: Id4d58dd77f22c9efb8ece9caa34a8717964bf58d
This commit is contained in:
Amara Venkata Mastan Manoj Kumar 2012-08-21 16:03:32 -07:00 committed by Andrew Sutherland
parent 8904b7a648
commit da0c6f2126
2 changed files with 4 additions and 1 deletions

View File

@ -164,7 +164,7 @@ int getMdpFormat(int format) {
case HAL_PIXEL_FORMAT_BGRA_8888:
return MDP_BGRA_8888;
case HAL_PIXEL_FORMAT_YV12:
return MDP_Y_CR_CB_H2V2;
return MDP_Y_CR_CB_GH2V2;
case HAL_PIXEL_FORMAT_YCbCr_422_SP:
return MDP_Y_CBCR_H2V1;
case HAL_PIXEL_FORMAT_YCrCb_420_SP:

View File

@ -550,6 +550,7 @@ inline bool isYuv(uint32_t format) {
case MDP_Y_CRCB_H2V2_TILE:
case MDP_Y_CBCR_H2V2_TILE:
case MDP_Y_CR_CB_H2V2:
case MDP_Y_CR_CB_GH2V2:
return true;
default:
return false;
@ -697,6 +698,8 @@ inline int getRotOutFmt(uint32_t format) {
return MDP_Y_CBCR_H2V2;
case MDP_Y_CB_CR_H2V2:
return MDP_Y_CBCR_H2V2;
case MDP_Y_CR_CB_GH2V2:
return MDP_Y_CRCB_H2V2;
default:
return format;
}