diff options
author | Diogo Ferreira <defer@cyngn.com> | 2016-03-23 17:45:20 +0000 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2016-04-11 16:44:29 +0100 |
commit | 6635a582f449f86c1099de11aae6b27e6a33d21f (patch) | |
tree | 9f0dc9e7e7fa17fda7d21166c0a371427eb4de7e | |
parent | baf93ea325ca416aa5a0fc0c6892dda4cef1f444 (diff) | |
download | frameworks_av-6635a582f449f86c1099de11aae6b27e6a33d21f.zip frameworks_av-6635a582f449f86c1099de11aae6b27e6a33d21f.tar.gz frameworks_av-6635a582f449f86c1099de11aae6b27e6a33d21f.tar.bz2 |
omx: softcodecs: Support HAL_PIXEL_FORMAT_RGBX_8888
Adds support for the HAL_PIXEL_FORMAT_RGBX_8888 format used by
mediatek's hardware.
Fixes several CTS tests where interaction between hardware and software
encoders and decoders is tested.
Change-Id: Ie3267c7d34706c49ad415ebc04ad05f2f2ef3506
-rw-r--r-- | media/libstagefright/omx/SoftVideoEncoderOMXComponent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/omx/SoftVideoEncoderOMXComponent.cpp b/media/libstagefright/omx/SoftVideoEncoderOMXComponent.cpp index 8ea7a6e..dc3ed39 100644 --- a/media/libstagefright/omx/SoftVideoEncoderOMXComponent.cpp +++ b/media/libstagefright/omx/SoftVideoEncoderOMXComponent.cpp @@ -606,6 +606,9 @@ const uint8_t *SoftVideoEncoderOMXComponent::extractGraphicBuffer( break; case HAL_PIXEL_FORMAT_RGBA_8888: case HAL_PIXEL_FORMAT_BGRA_8888: +#ifdef MTK_HARDWARE + case HAL_PIXEL_FORMAT_RGBX_8888: +#endif ConvertRGB32ToPlanar( dst, dstStride, dstVStride, (const uint8_t *)bits, width, height, srcStride, |