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

Commit d1ce44b3 authored by Emilian Peev's avatar Emilian Peev
Browse files

Add support for 10-bit YUV P010 PublicFormat

Bug: 147711411
Test: Camera CTS
Change-Id: I13bb1c86cb8f78f8e906651d7fb116a2a85cf395
parent 814bc225
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,