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

Commit 72cefc07 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Add YCBCR_P210 format to AHardwareBuffer

YCBCR_P210 is a 10-bit 4:2:2 YCbCr color format

Test: New tests pass
Flag: android.media.codec.p210_format_support
Bug: 368395888
Change-Id: Iac89c9dd506d65ee24827a8cd3e802a417bc8e9e
parent e3ec0d43
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -174,6 +174,14 @@ enum AHardwareBuffer_Format {
     */
    AHARDWAREBUFFER_FORMAT_YCbCr_P010               = 0x36,

    /**
     * YUV P210 format.
     * Must have an even width and height. Can be accessed in OpenGL
     * shaders through an external sampler. Does not support mip-maps
     * cube-maps or multi-layered textures.
     */
    AHARDWAREBUFFER_FORMAT_YCbCr_P210               = 0x3c,

    /**
     * Corresponding formats:
     *   Vulkan: VK_FORMAT_R8_UNORM