From 1ca6a42e27109dfb5049aba14fc10cc98528559c Mon Sep 17 00:00:00 2001 From: He Junyan Date: Thu, 29 Aug 2019 15:03:52 +0800 Subject: [PATCH] libs: encoder: delete get_default_properties of MPEG2 --- gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c | 39 ------------------------------ gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h | 3 --- 2 files changed, 42 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c index 44c0bac..98cc5f9 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c @@ -889,8 +889,6 @@ gst_vaapi_encoder_mpeg2_class_init (GstVaapiEncoderMpeg2Class * klass) encoder_class->class_data = &g_class_data; encoder_class->reconfigure = gst_vaapi_encoder_mpeg2_reconfigure; - encoder_class->get_default_properties = - gst_vaapi_encoder_mpeg2_get_default_properties; encoder_class->reordering = gst_vaapi_encoder_mpeg2_reordering; encoder_class->encode = gst_vaapi_encoder_mpeg2_encode; encoder_class->flush = gst_vaapi_encoder_mpeg2_flush; @@ -958,43 +956,6 @@ gst_vaapi_encoder_mpeg2_new (GstVaapiDisplay * display) return g_object_new (GST_TYPE_VAAPI_ENCODER_MPEG2, "display", display, NULL); } -/** - * gst_vaapi_encoder_mpeg2_get_default_properties: - * - * Determines the set of common and MPEG-2 specific encoder properties. - * The caller owns an extra reference to the resulting array of - * #GstVaapiEncoderPropInfo elements, so it shall be released with - * g_ptr_array_unref() after usage. - * - * Return value: the set of encoder properties for #GstVaapiEncoderMpeg2, - * or %NULL if an error occurred. - */ -GPtrArray * -gst_vaapi_encoder_mpeg2_get_default_properties (void) -{ - const GstVaapiEncoderClassData *class_data = &g_class_data; - GPtrArray *props; - - props = gst_vaapi_encoder_properties_get_default (class_data); - if (!props) - return NULL; - - GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, - GST_VAAPI_ENCODER_MPEG2_PROP_QUANTIZER, - g_param_spec_uint ("quantizer", - "Constant Quantizer", - "Constant quantizer (if rate-control mode is CQP)", - 2, 62, 8, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - - GST_VAAPI_ENCODER_PROPERTIES_APPEND (props, - GST_VAAPI_ENCODER_MPEG2_PROP_MAX_BFRAMES, - g_param_spec_uint ("max-bframes", "Max B-Frames", - "Number of B-frames between I and P", - 0, 16, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - - return props; -} - static struct { int code; diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h index af61698..dbd1f01 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h +++ b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h @@ -57,9 +57,6 @@ gst_vaapi_encoder_mpeg2_get_type (void) G_GNUC_CONST; GstVaapiEncoder * gst_vaapi_encoder_mpeg2_new (GstVaapiDisplay * display); -GPtrArray * -gst_vaapi_encoder_mpeg2_get_default_properties (void); - G_END_DECLS #endif /* GST_VAAPI_ENCODER_MPEG2_H */ -- 2.7.4