* @GST_VAAPI_RATECONTROL_VBR: Variable bitrate
* @GST_VAAPI_RATECONTROL_VBR_CONSTRAINED: Variable bitrate with peak
* rate higher than average bitrate
+ * @GST_VAAPI_RATECONTROL_MB: Macroblock based rate control
*
* The set of allowed rate control values for #GstVaapiRateControl.
* Note: this is only valid for encoders.
GST_VAAPI_RATECONTROL_VCM,
GST_VAAPI_RATECONTROL_VBR,
GST_VAAPI_RATECONTROL_VBR_CONSTRAINED,
+ GST_VAAPI_RATECONTROL_MB,
} GstVaapiRateControl;
/* Define a mask for GstVaapiRateControl */
case GST_VAAPI_RATECONTROL_VBR_CONSTRAINED:
return VA_RC_VBR_CONSTRAINED;
#endif
+#ifdef VA_RC_MB
+ case GST_VAAPI_RATECONTROL_MB:
+ return VA_RC_MB;
+#endif
}
GST_ERROR ("unsupported GstVaapiRateControl value %u", value);
return VA_RC_NONE;
case VA_RC_VBR_CONSTRAINED:
return GST_VAAPI_RATECONTROL_VBR_CONSTRAINED;
#endif
+#ifdef VA_RC_MB
+ case VA_RC_MB:
+ return GST_VAAPI_RATECONTROL_MB;
+#endif
}
GST_ERROR ("unsupported VA-API Rate Control value %u", value);
return GST_VAAPI_RATECONTROL_NONE;
"Variable bitrate", "vbr"},
{GST_VAAPI_RATECONTROL_VBR_CONSTRAINED,
"Variable bitrate - Constrained", "vbr_constrained"},
+ {GST_VAAPI_RATECONTROL_MB,
+ "Macroblock based rate control", "mb"},
{0, NULL, NULL},
};