mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-08 23:55:55 +00:00
libs: encoder: delete old set_property and property enum in vp8
This commit is contained in:
parent
3dcd79e439
commit
c92b4f1bb7
|
@ -535,28 +535,6 @@ gst_vaapi_encoder_vp8_finalize (GObject * object)
|
|||
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).
|
||||
|
@ -654,7 +632,6 @@ gst_vaapi_encoder_vp8_class_init (GstVaapiEncoderVP8Class * klass)
|
|||
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;
|
||||
|
|
|
@ -37,20 +37,6 @@ G_BEGIN_DECLS
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue