mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
libs: encoder: delete old set_property and property enum in mpeg2
This commit is contained in:
parent
1b85ce4882
commit
3dcd79e439
2 changed files with 0 additions and 34 deletions
|
@ -782,26 +782,6 @@ gst_vaapi_encoder_mpeg2_finalize (GObject * object)
|
|||
G_OBJECT_CLASS (gst_vaapi_encoder_mpeg2_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static GstVaapiEncoderStatus
|
||||
_gst_vaapi_encoder_mpeg2_set_property (GstVaapiEncoder * base_encoder,
|
||||
gint prop_id, const GValue * value)
|
||||
{
|
||||
GstVaapiEncoderMpeg2 *const encoder =
|
||||
GST_VAAPI_ENCODER_MPEG2_CAST (base_encoder);
|
||||
|
||||
switch (prop_id) {
|
||||
case GST_VAAPI_ENCODER_MPEG2_PROP_QUANTIZER:
|
||||
encoder->cqp = g_value_get_uint (value);
|
||||
break;
|
||||
case GST_VAAPI_ENCODER_MPEG2_PROP_MAX_BFRAMES:
|
||||
encoder->ip_period = g_value_get_uint (value);
|
||||
break;
|
||||
default:
|
||||
return GST_VAAPI_ENCODER_STATUS_ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
return GST_VAAPI_ENCODER_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @ENCODER_MPEG2_PROP_RATECONTROL: Rate control (#GstVaapiRateControl).
|
||||
* @ENCODER_MPEG2_PROP_TUNE: The tuning options (#GstVaapiEncoderTune).
|
||||
|
@ -892,7 +872,6 @@ gst_vaapi_encoder_mpeg2_class_init (GstVaapiEncoderMpeg2Class * klass)
|
|||
encoder_class->reordering = gst_vaapi_encoder_mpeg2_reordering;
|
||||
encoder_class->encode = gst_vaapi_encoder_mpeg2_encode;
|
||||
encoder_class->flush = gst_vaapi_encoder_mpeg2_flush;
|
||||
encoder_class->set_property = _gst_vaapi_encoder_mpeg2_set_property;
|
||||
|
||||
object_class->set_property = gst_vaapi_encoder_mpeg2_set_property;
|
||||
object_class->get_property = gst_vaapi_encoder_mpeg2_get_property;
|
||||
|
|
|
@ -38,19 +38,6 @@ G_BEGIN_DECLS
|
|||
typedef struct _GstVaapiEncoderMpeg2 GstVaapiEncoderMpeg2;
|
||||
typedef struct _GstVaapiEncoderMpeg2Class GstVaapiEncoderMpeg2Class;
|
||||
|
||||
/**
|
||||
* GstVaapiEncoderMpeg2Prop:
|
||||
* @GST_VAAPI_ENCODER_MPEG2_PROP_QUANTIZER: Constant quantizer value (uint).
|
||||
* @GST_VAAPI_ENCODER_MPEG2_PROP_MAX_BFRAMES: Number of B-frames between I
|
||||
* and P (uint).
|
||||
*
|
||||
* The set of MPEG-2 encoder specific configurable properties.
|
||||
*/
|
||||
typedef enum {
|
||||
GST_VAAPI_ENCODER_MPEG2_PROP_QUANTIZER = -1,
|
||||
GST_VAAPI_ENCODER_MPEG2_PROP_MAX_BFRAMES = -2,
|
||||
} GstVaapiEncoderMpeg2Prop;
|
||||
|
||||
GType
|
||||
gst_vaapi_encoder_mpeg2_get_type (void) G_GNUC_CONST;
|
||||
|
||||
|
|
Loading…
Reference in a new issue