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

Commit 88d4c34d authored by Yixiao Luo's avatar Yixiao Luo
Browse files

[Media Quality] Add definition of display processing token in C2Config.h

Bug: b/379765488 , b/376484704
Change-Id: I7bb32a2ff4dee7bac3b1d498b2fab21f3a80fd84
Test: m
parent 42d3cb49
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -303,6 +303,9 @@ enum C2ParamIndexKind : C2Param::type_index_t {
    // input surface
    kParamIndexCaptureFrameRate, // input-surface, float
    kParamIndexStopTimeOffset, // input-surface, int64_t

    // display processing token
    kParamIndexDisplayProcessingToken, // int64_t
};

}
@@ -2855,6 +2858,16 @@ C2ENUM(C2PlatformConfig::encoding_quality_level_t, uint32_t,
    S_HANDHELD = 1              // corresponds to VMAF=70
);

/**
 * Display processing token.
 *
 * An int64 token specifying the display processing configuration for the frame.
 * This value is passed to IGraphicBufferProducer via QueueBufferInput::setPictureProfileHandle().
 */
typedef C2StreamParam<C2Info, C2Int64Value, kParamIndexDisplayProcessingToken>
        C2StreamDisplayProcessingToken;
constexpr char C2_PARAMKEY_DISPLAY_PROCESSING_TOKEN[] = "display-processing-token";

/**
 * Video Encoding Statistics Export
 */