libs: encoder: delete old set_property and property enum in jpeg

This commit is contained in:
He Junyan 2019-08-29 18:34:57 +08:00
parent c70dbb0b79
commit 1b85ce4882
2 changed files with 0 additions and 27 deletions

View file

@ -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;

View file

@ -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;