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

Commit b21977ab authored by Yushin Cho's avatar Yushin Cho
Browse files

enc stat: Add Encoding Statistics keys to Codec2 layer

Codec2 layer does not know about the feature of 'EncodingStatitics',
and only knows about each individual statistics, i.e. average_qp,
picture_type.

Bug: 205793764
Bug: 203696003
Test: cts
Change-Id: Ief16ee5499fa11f788dfb73590ba4ac756376dd3
parent ca50b14a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -270,6 +270,9 @@ enum C2ParamIndexKind : C2Param::type_index_t {

    // encoding quality requirements
    kParamIndexEncodingQualityLevel, // encoders, enum

    // encoding statistics, average block qp of a frame
    kParamIndexAverageBlockQuantization, // int32
};

}
@@ -2411,6 +2414,17 @@ C2ENUM(C2PlatformConfig::encoding_quality_level_t, uint32_t,
    S_HANDHELD = 1              // corresponds to VMAF=70
);

/**
 * Video Encoding Statistics Export
 */

/**
 * Average block QP exported from video encoder.
 */
typedef C2StreamParam<C2Info, C2SimpleValueStruct<int32_t>, kParamIndexAverageBlockQuantization>
        C2AndroidStreamAverageBlockQuantizationInfo;
constexpr char C2_PARAMKEY_AVERAGE_QP[] = "coded.average-qp";

/// @}

#endif  // C2CONFIG_H_