Permalink
Browse files

overlay: Fix MDP formats for YUV

The order of chrominance was changed in the
MDP driver recently. This makes the corresponding
changes for YUV422 and for the badger overlay lib.

Change-Id: Ied7fd8cf231fd82f7e8ce42b5f72c93b3c1aaf72
  • Loading branch information...
1 parent ff12aa7 commit 5fca16b4ef756ccbc50e6e78a6f53e64f0aa76e9 Naseer Ahmed committed May 29, 2012
Showing with 7 additions and 5 deletions.
  1. +2 −2 liboverlay/a-family/overlayLib.cpp
  2. +5 −3 liboverlay/badger/src/overlayUtils.cpp
@@ -57,9 +57,9 @@ int overlay::get_mdp_format(int format) {
case HAL_PIXEL_FORMAT_RGBX_8888:
return MDP_RGBX_8888;
case HAL_PIXEL_FORMAT_YCbCr_422_SP:
- return MDP_Y_CRCB_H2V1;
- case HAL_PIXEL_FORMAT_YCrCb_422_SP:
return MDP_Y_CBCR_H2V1;
+ case HAL_PIXEL_FORMAT_YCrCb_422_SP:
+ return MDP_Y_CRCB_H2V1;
case HAL_PIXEL_FORMAT_YCbCr_420_SP:
return MDP_Y_CBCR_H2V2;
case HAL_PIXEL_FORMAT_YCrCb_420_SP:
@@ -180,12 +180,14 @@ namespace utils {
return MDP_RGBX_8888;
case HAL_PIXEL_FORMAT_YCbCr_422_SP:
return MDP_Y_CBCR_H2V1;
+ case HAL_PIXEL_FORMAT_YCrCb_422_SP:
+ return MDP_Y_CRCB_H2V1;
case HAL_PIXEL_FORMAT_YCbCr_420_SP:
- return MDP_Y_CRCB_H2V2;
- case HAL_PIXEL_FORMAT_YCrCb_420_SP:
return MDP_Y_CBCR_H2V2;
+ case HAL_PIXEL_FORMAT_YCrCb_420_SP:
+ return MDP_Y_CRCB_H2V2;
case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED:
- return MDP_Y_CRCB_H2V2_TILE;
+ return MDP_Y_CBCR_H2V2_TILE;
case HAL_PIXEL_FORMAT_YV12:
return MDP_Y_CR_CB_H2V2;
default:

0 comments on commit 5fca16b

Please sign in to comment.