libs: encoder: delete old set_property and property enum in mpeg2
authorHe Junyan <junyan.he@hotmail.com>
Thu, 29 Aug 2019 10:35:59 +0000 (18:35 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Fri, 30 Aug 2019 13:21:04 +0000 (21:21 +0800)
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h

index 98cc5f9df4d73eeff0c3ecea08f7b597a97bb6a5..e5e66c62a75a2f5c1b5bc65485968f8f7502eecf 100644 (file)
@@ -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;
index dbd1f012c646b0e997ba3d33163205f022ed0767..6306bfd4b2c710e5d167d29423c23875564fa93b 100644 (file)
@@ -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;