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

Commit 50d7f3f9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Unfreeze graphics.common HAL and add YCBCR_P210 format" into main

parents c6f1566d bcec635f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ aidl_interface {
            enabled: true,
        },
    },
    frozen: true,
    frozen: false,
    versions_with_info: [
        {
            version: "1",
+1 −0
Original line number Diff line number Diff line
@@ -68,4 +68,5 @@ enum PixelFormat {
  R_16_UINT = 0x39,
  RG_1616_UINT = 0x3a,
  RGBA_10101010 = 0x3b,
  YCBCR_P210 = 0x3c,
}
+22 −0
Original line number Diff line number Diff line
@@ -531,4 +531,26 @@ enum PixelFormat {
     * interpretation is defined by the dataspace.
     */
    RGBA_10101010 = 0x3b,

    /**
     * YCBCR_P210 is a 4:2:2 YCbCr semiplanar format comprised of a WxH Y plane
     * followed by a WxH CbCr plane. Each sample is represented by a 16-bit
     * little-endian value, with the lower 6 bits set to zero.
     *
     * This format must be accepted by the allocator when used with the
     * following usage flags:
     *
     *    - BufferUsage::VIDEO_*
     *    - BufferUsage::CPU_*
     *    - BufferUsage::GPU_TEXTURE
     *
     * The component values are unsigned normalized to the range [0, 1], whose
     * interpretation is defined by the dataspace.
     *
     * This format is appropriate for 10bit video content.
     *
     * Buffers with this format must be locked with IMapper::lockYCbCr
     * or with IMapper::lock.
     */
    YCBCR_P210 = 0x3c,
}