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

index 76c91c6..77830de 100644 (file)
@@ -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;
index a43373c..b798edb 100644 (file)
@@ -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;