libs: encoder: delete get_default_properties of JPEG

This commit is contained in:
He Junyan 2019-08-29 15:03:19 +08:00
parent 0ce9f6e637
commit 665a121b51
2 changed files with 0 additions and 35 deletions

View file

@ -856,8 +856,6 @@ gst_vaapi_encoder_jpeg_class_init (GstVaapiEncoderJpegClass * klass)
encoder_class->class_data = &g_class_data;
encoder_class->reconfigure = gst_vaapi_encoder_jpeg_reconfigure;
encoder_class->get_default_properties =
gst_vaapi_encoder_jpeg_get_default_properties;
encoder_class->reordering = gst_vaapi_encoder_jpeg_reordering;
encoder_class->encode = gst_vaapi_encoder_jpeg_encode;
encoder_class->flush = gst_vaapi_encoder_jpeg_flush;
@ -907,33 +905,3 @@ gst_vaapi_encoder_jpeg_new (GstVaapiDisplay * display)
{
return g_object_new (GST_TYPE_VAAPI_ENCODER_JPEG, "display", display, NULL);
}
/**
* gst_vaapi_encoder_jpeg_get_default_properties:
*
* Determines the set of common and jpeg 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 #GstVaapiEncoderJpeg,
* or %NULL if an error occurred.
*/
GPtrArray *
gst_vaapi_encoder_jpeg_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_JPEG_PROP_QUALITY,
g_param_spec_uint ("quality",
"Quality factor",
"Quality factor",
0, 100, 50, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
return props;
}

View file

@ -53,8 +53,5 @@ gst_vaapi_encoder_jpeg_get_type (void) G_GNUC_CONST;
GstVaapiEncoder *
gst_vaapi_encoder_jpeg_new (GstVaapiDisplay * display);
GPtrArray *
gst_vaapi_encoder_jpeg_get_default_properties (void);
G_END_DECLS
#endif /*GST_VAAPI_ENCODER_JPEG_H */