diff options
author | He Junyan <junyan.he@hotmail.com> | 2019-08-29 18:34:57 +0800 |
---|---|---|
committer | He Junyan <junyan.he@hotmail.com> | 2019-08-30 21:21:04 +0800 |
commit | 1b85ce488213901fb3f7379745b3f9ccf7e3af9f (patch) | |
tree | 5cd840cfa949df9333c874a23bcc4dcf1dbee355 /gst-libs | |
parent | c70dbb0b794a321a6accae77990e895df7d6850e (diff) |
libs: encoder: delete old set_property and property enum in jpeg
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c | 17 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_jpeg.h | 10 |
2 files changed, 0 insertions, 27 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c b/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c index 816ae066..bb920b6e 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c @@ -762,22 +762,6 @@ gst_vaapi_encoder_jpeg_init (GstVaapiEncoderJpeg * encoder) memset (&encoder->huff_tables, 0, sizeof (encoder->huff_tables)); } -static GstVaapiEncoderStatus -_gst_vaapi_encoder_jpeg_set_property (GstVaapiEncoder * base_encoder, - gint prop_id, const GValue * value) -{ - GstVaapiEncoderJpeg *const encoder = GST_VAAPI_ENCODER_JPEG (base_encoder); - - switch (prop_id) { - case GST_VAAPI_ENCODER_JPEG_PROP_QUALITY: - encoder->quality = g_value_get_uint (value); - break; - default: - return GST_VAAPI_ENCODER_STATUS_ERROR_INVALID_PARAMETER; - } - return GST_VAAPI_ENCODER_STATUS_SUCCESS; -} - /** * @ENCODER_JPEG_PROP_RATECONTROL: Rate control (#GstVaapiRateControl). * @ENCODER_JPEG_PROP_TUNE: The tuning options (#GstVaapiEncoderTune). @@ -859,7 +843,6 @@ gst_vaapi_encoder_jpeg_class_init (GstVaapiEncoderJpegClass * klass) encoder_class->reordering = gst_vaapi_encoder_jpeg_reordering; encoder_class->encode = gst_vaapi_encoder_jpeg_encode; encoder_class->flush = gst_vaapi_encoder_jpeg_flush; - encoder_class->set_property = _gst_vaapi_encoder_jpeg_set_property; object_class->set_property = gst_vaapi_encoder_jpeg_set_property; object_class->get_property = gst_vaapi_encoder_jpeg_get_property; diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.h b/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.h index ba082f90..37565821 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.h +++ b/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.h @@ -37,16 +37,6 @@ G_BEGIN_DECLS typedef struct _GstVaapiEncoderJpeg GstVaapiEncoderJpeg; typedef struct _GstVaapiEncoderJpegClass GstVaapiEncoderJpegClass; -/** - * GstVaapiEncoderJpegProp: - * @GST_VAAPI_ENCODER_JPEG_PROP_QUALITY: Quality Factor value (uint). - * - * The set of JPEG encoder specific configurable properties. - */ -typedef enum { - GST_VAAPI_ENCODER_JPEG_PROP_QUALITY = -1 -} GstVaapiEncoderJpegProp; - GType gst_vaapi_encoder_jpeg_get_type (void) G_GNUC_CONST; |