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

Commit 64e8b41c authored by Chong Zhang's avatar Chong Zhang
Browse files

omx: add constant quality bitrate control mode

bug: 63633199
Change-Id: Idbfe733ca723fb918ec97d1d834f8950b8e7ffa3
parent ae8223b3
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -240,6 +240,7 @@ typedef enum OMX_VIDEO_CONTROLRATETYPE {
    OMX_Video_ControlRateConstant,
    OMX_Video_ControlRateVariableSkipFrames,
    OMX_Video_ControlRateConstantSkipFrames,
    OMX_Video_ControlRateConstantQuality,
    OMX_Video_ControlRateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
    OMX_Video_ControlRateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_Video_ControlRateMax = 0x7FFFFFFF
@@ -254,14 +255,20 @@ typedef enum OMX_VIDEO_CONTROLRATETYPE {
 *  nVersion       : OMX spec version info
 *  nPortIndex     : Port that this struct applies to
 *  eControlRate   : Control rate type enum
 *  nTargetBitrate : Target bitrate to encode with
 *  nTargetBitrate : Target bitrate to encode with (used when eControlRate is
 *                   not OMX_Video_ControlRateConstantQuality)
 *  nQualityFactor : Quality to encode with (used when eControlRate is
 *                   OMX_Video_ControlRateConstantQuality only)
 */
typedef struct OMX_VIDEO_PARAM_BITRATETYPE {
    OMX_U32 nSize;
    OMX_VERSIONTYPE nVersion;
    OMX_U32 nPortIndex;
    OMX_VIDEO_CONTROLRATETYPE eControlRate;
    union {
        OMX_U32 nTargetBitrate;
        OMX_U32 nQualityFactor;
    };
} OMX_VIDEO_PARAM_BITRATETYPE;