From 3dcd79e439c70b1f7745f6c463921e1b1edb5e0c Mon Sep 17 00:00:00 2001 From: He Junyan Date: Thu, 29 Aug 2019 18:35:59 +0800 Subject: [PATCH] libs: encoder: delete old set_property and property enum in mpeg2 --- gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c | 21 --------------------- gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h | 13 ------------- 2 files changed, 34 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c index 98cc5f9df4..e5e66c62a7 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c @@ -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; diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h index dbd1f012c6..6306bfd4b2 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h +++ b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h @@ -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;