Skip to content

Commit

Permalink
Allow compatibility with ICS EGL for OMX
Browse files Browse the repository at this point in the history
The new headers define the qcom video buffer format
(HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) as 0x7FA30C03, ICS used 0x108.

Trying to play a video with the ICS Adreno driver results in
it rejecting the buffers because 2141391875 (0x7FA30C03) is an
unknown buffer format, so use the QCOM_ICS_COMPAT CFLAG to
fallback to the older enum.

Do NOT use this with JB Adreno blobs.

Change-Id: I2bd05c681718e916bd91311a4c9e503545f2e1bc
  • Loading branch information
rmcc committed Jul 14, 2012
1 parent 1769428 commit f95ed17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libgralloc/gralloc_priv.h
Expand Up @@ -106,7 +106,11 @@ enum {
enum {
/* OEM specific HAL formats */
HAL_PIXEL_FORMAT_NV12_ENCODEABLE = 0x102,
#ifdef QCOM_ICS_COMPAT
HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED = 0x108,
#else
HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED = 0x7FA30C03,
#endif
HAL_PIXEL_FORMAT_YCbCr_420_SP = 0x109,
HAL_PIXEL_FORMAT_YCrCb_420_SP_ADRENO = 0x10A,
HAL_PIXEL_FORMAT_YCrCb_422_SP = 0x10B,
Expand Down

0 comments on commit f95ed17

Please sign in to comment.