mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
[MOVED FROM BAD 058/134] vp8: Remove dead assignments
This commit is contained in:
parent
49d0bcce24
commit
785bf960dd
2 changed files with 0 additions and 32 deletions
|
@ -91,7 +91,6 @@ gst_vp8_dec_post_processing_flags_get_type (void)
|
||||||
|
|
||||||
#undef C_FLAGS
|
#undef C_FLAGS
|
||||||
|
|
||||||
static void gst_vp8_dec_finalize (GObject * object);
|
|
||||||
static void gst_vp8_dec_set_property (GObject * object, guint prop_id,
|
static void gst_vp8_dec_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec);
|
const GValue * value, GParamSpec * pspec);
|
||||||
static void gst_vp8_dec_get_property (GObject * object, guint prop_id,
|
static void gst_vp8_dec_get_property (GObject * object, guint prop_id,
|
||||||
|
@ -142,16 +141,13 @@ static void
|
||||||
gst_vp8_dec_class_init (GstVP8DecClass * klass)
|
gst_vp8_dec_class_init (GstVP8DecClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *element_class;
|
|
||||||
GstBaseVideoDecoderClass *base_video_decoder_class;
|
GstBaseVideoDecoderClass *base_video_decoder_class;
|
||||||
|
|
||||||
gobject_class = G_OBJECT_CLASS (klass);
|
gobject_class = G_OBJECT_CLASS (klass);
|
||||||
element_class = GST_ELEMENT_CLASS (klass);
|
|
||||||
base_video_decoder_class = GST_BASE_VIDEO_DECODER_CLASS (klass);
|
base_video_decoder_class = GST_BASE_VIDEO_DECODER_CLASS (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_vp8_dec_set_property;
|
gobject_class->set_property = gst_vp8_dec_set_property;
|
||||||
gobject_class->get_property = gst_vp8_dec_get_property;
|
gobject_class->get_property = gst_vp8_dec_get_property;
|
||||||
gobject_class->finalize = gst_vp8_dec_finalize;
|
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class, PROP_POST_PROCESSING,
|
g_object_class_install_property (gobject_class, PROP_POST_PROCESSING,
|
||||||
g_param_spec_boolean ("post-processing", "Post Processing",
|
g_param_spec_boolean ("post-processing", "Post Processing",
|
||||||
|
@ -198,19 +194,6 @@ gst_vp8_dec_init (GstVP8Dec * gst_vp8_dec, GstVP8DecClass * klass)
|
||||||
gst_vp8_dec->noise_level = DEFAULT_NOISE_LEVEL;
|
gst_vp8_dec->noise_level = DEFAULT_NOISE_LEVEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_vp8_dec_finalize (GObject * object)
|
|
||||||
{
|
|
||||||
GstVP8Dec *gst_vp8_dec;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (object, "finalize");
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_VP8_DEC (object));
|
|
||||||
gst_vp8_dec = GST_VP8_DEC (object);
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_vp8_dec_set_property (GObject * object, guint prop_id,
|
gst_vp8_dec_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec)
|
const GValue * value, GParamSpec * pspec)
|
||||||
|
|
|
@ -210,11 +210,9 @@ static void
|
||||||
gst_vp8_enc_class_init (GstVP8EncClass * klass)
|
gst_vp8_enc_class_init (GstVP8EncClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *element_class;
|
|
||||||
GstBaseVideoEncoderClass *base_video_encoder_class;
|
GstBaseVideoEncoderClass *base_video_encoder_class;
|
||||||
|
|
||||||
gobject_class = G_OBJECT_CLASS (klass);
|
gobject_class = G_OBJECT_CLASS (klass);
|
||||||
element_class = GST_ELEMENT_CLASS (klass);
|
|
||||||
base_video_encoder_class = GST_BASE_VIDEO_ENCODER_CLASS (klass);
|
base_video_encoder_class = GST_BASE_VIDEO_ENCODER_CLASS (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_vp8_enc_set_property;
|
gobject_class->set_property = gst_vp8_enc_set_property;
|
||||||
|
@ -442,12 +440,8 @@ gst_vp8_enc_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_vp8_enc_start (GstBaseVideoEncoder * base_video_encoder)
|
gst_vp8_enc_start (GstBaseVideoEncoder * base_video_encoder)
|
||||||
{
|
{
|
||||||
GstVP8Enc *encoder;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (base_video_encoder, "start");
|
GST_DEBUG_OBJECT (base_video_encoder, "start");
|
||||||
|
|
||||||
encoder = GST_VP8_ENC (base_video_encoder);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -485,12 +479,8 @@ static gboolean
|
||||||
gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
|
gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
|
||||||
GstVideoState * state)
|
GstVideoState * state)
|
||||||
{
|
{
|
||||||
GstVP8Enc *encoder;
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (base_video_encoder, "set_format");
|
GST_DEBUG_OBJECT (base_video_encoder, "set_format");
|
||||||
|
|
||||||
encoder = GST_VP8_ENC (base_video_encoder);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -499,7 +489,6 @@ gst_vp8_enc_get_caps (GstBaseVideoEncoder * base_video_encoder)
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
const GstVideoState *state;
|
const GstVideoState *state;
|
||||||
GstVP8Enc *encoder;
|
|
||||||
GstTagList *tags = NULL;
|
GstTagList *tags = NULL;
|
||||||
const GstTagList *iface_tags;
|
const GstTagList *iface_tags;
|
||||||
GstBuffer *stream_hdr, *vorbiscomment;
|
GstBuffer *stream_hdr, *vorbiscomment;
|
||||||
|
@ -508,8 +497,6 @@ gst_vp8_enc_get_caps (GstBaseVideoEncoder * base_video_encoder)
|
||||||
GValue array = { 0 };
|
GValue array = { 0 };
|
||||||
GValue value = { 0 };
|
GValue value = { 0 };
|
||||||
|
|
||||||
encoder = GST_VP8_ENC (base_video_encoder);
|
|
||||||
|
|
||||||
state = gst_base_video_encoder_get_state (base_video_encoder);
|
state = gst_base_video_encoder_get_state (base_video_encoder);
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("video/x-vp8",
|
caps = gst_caps_new_simple ("video/x-vp8",
|
||||||
|
@ -713,7 +700,6 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
|
||||||
{
|
{
|
||||||
GstVP8Enc *encoder;
|
GstVP8Enc *encoder;
|
||||||
const GstVideoState *state;
|
const GstVideoState *state;
|
||||||
guint8 *src;
|
|
||||||
vpx_codec_err_t status;
|
vpx_codec_err_t status;
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
vpx_codec_iter_t iter = NULL;
|
vpx_codec_iter_t iter = NULL;
|
||||||
|
@ -724,7 +710,6 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
|
||||||
GST_DEBUG_OBJECT (base_video_encoder, "handle_frame");
|
GST_DEBUG_OBJECT (base_video_encoder, "handle_frame");
|
||||||
|
|
||||||
encoder = GST_VP8_ENC (base_video_encoder);
|
encoder = GST_VP8_ENC (base_video_encoder);
|
||||||
src = GST_BUFFER_DATA (frame->sink_buffer);
|
|
||||||
|
|
||||||
state = gst_base_video_encoder_get_state (base_video_encoder);
|
state = gst_base_video_encoder_get_state (base_video_encoder);
|
||||||
encoder->n_frames++;
|
encoder->n_frames++;
|
||||||
|
|
Loading…
Reference in a new issue