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

Commit 93d860a9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add support for 10-bit YUV P010 PublicFormat" into sc-dev

parents c4eb0c6e d1ce44b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ PublicFormat mapHalFormatDataspaceToPublicFormat(int format, android_dataspace d
        case HAL_PIXEL_FORMAT_RAW12:
        case HAL_PIXEL_FORMAT_YCbCr_420_888:
        case HAL_PIXEL_FORMAT_YV12:
        case HAL_PIXEL_FORMAT_YCBCR_P010:
            // Enums overlap in both name and value
            return static_cast<PublicFormat>(format);
        case HAL_PIXEL_FORMAT_RAW16:
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ enum class PublicFormat {
    YV12 = 0x32315659,
    Y8 = 0x20203859,
    Y16 = 0x20363159, // @hide
    YCBCR_P010 = 0x36,
    DEPTH16 = 0x44363159,
    DEPTH_JPEG = 0x69656963,
    HEIC = 0x48454946,