G_OBJECT_CLASS (gst_vaapi_encoder_vp8_parent_class)->finalize (object);
}
-static GstVaapiEncoderStatus
-_gst_vaapi_encoder_vp8_set_property (GstVaapiEncoder * base_encoder,
- gint prop_id, const GValue * value)
-{
- GstVaapiEncoderVP8 *const encoder = GST_VAAPI_ENCODER_VP8 (base_encoder);
-
- switch (prop_id) {
- case GST_VAAPI_ENCODER_VP8_PROP_LOOP_FILTER_LEVEL:
- encoder->loop_filter_level = g_value_get_uint (value);
- break;
- case GST_VAAPI_ENCODER_VP8_PROP_SHARPNESS_LEVEL:
- encoder->sharpness_level = g_value_get_uint (value);
- break;
- case GST_VAAPI_ENCODER_VP8_PROP_YAC_Q_INDEX:
- encoder->yac_qi = g_value_get_uint (value);
- break;
- default:
- return GST_VAAPI_ENCODER_STATUS_ERROR_INVALID_PARAMETER;
- }
- return GST_VAAPI_ENCODER_STATUS_SUCCESS;
-}
-
/**
* @ENCODER_VP8_PROP_RATECONTROL: Rate control (#GstVaapiRateControl).
* @ENCODER_VP8_PROP_TUNE: The tuning options (#GstVaapiEncoderTune).
encoder_class->reordering = gst_vaapi_encoder_vp8_reordering;
encoder_class->encode = gst_vaapi_encoder_vp8_encode;
encoder_class->flush = gst_vaapi_encoder_vp8_flush;
- encoder_class->set_property = _gst_vaapi_encoder_vp8_set_property;
object_class->set_property = gst_vaapi_encoder_vp8_set_property;
object_class->get_property = gst_vaapi_encoder_vp8_get_property;
typedef struct _GstVaapiEncoderVP8 GstVaapiEncoderVP8;
typedef struct _GstVaapiEncoderVP8Class GstVaapiEncoderVP8Class;
-/**
- * GstVaapiEncoderVP8Prop:
- * @GST_VAAPI_ENCODER_VP8_PROP_LOOP_FILTER_LEVEL: Loop Filter Level(uint).
- * @GST_VAAPI_ENCODER_VP8_PROP_LOOP_SHARPNESS_LEVEL: Sharpness Level(uint).
- * @GST_VAAPI_ENCODER_VP8_PROP_YAC_Q_INDEX: Quantization table index for luma AC(uint).
- *
- * The set of VP8 encoder specific configurable properties.
- */
-typedef enum {
- GST_VAAPI_ENCODER_VP8_PROP_LOOP_FILTER_LEVEL = -1,
- GST_VAAPI_ENCODER_VP8_PROP_SHARPNESS_LEVEL = -2,
- GST_VAAPI_ENCODER_VP8_PROP_YAC_Q_INDEX = -3
-} GstVaapiEncoderVP8Prop;
-
GType
gst_vaapi_encoder_vp8_get_type (void) G_GNUC_CONST;