Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6635a582 authored by Diogo Ferreira's avatar Diogo Ferreira Committed by Ricardo Cerqueira
Browse files

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
parent baf93ea3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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,