From b383ae0fbdaa9d71c7e2ba003711c333d045fce3 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 24 Feb 2015 18:50:03 +0000 Subject: jpegparse: interlaced doesn't mean progressive scan Removing interlaced variable since it is meant to mean progressive scan and that isn't used. --- gst/jpegformat/gstjpegparse.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gst/jpegformat') diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c index 4a792d4af..d55b84f8d 100644 --- a/gst/jpegformat/gstjpegparse.c +++ b/gst/jpegformat/gstjpegparse.c @@ -62,7 +62,6 @@ GST_STATIC_PAD_TEMPLATE ("src", "format = (string) { I420, Y41B, UYVY, YV12 }, " "width = (int) [ 0, MAX ]," "height = (int) [ 0, MAX ], " - "interlaced = (boolean) { true, false }, " "framerate = (fraction) [ 0/1, MAX ], " "parsed = (boolean) true") ); @@ -90,9 +89,6 @@ struct _GstJpegParsePrivate /* the parsed frame size */ guint16 width, height; - /* TRUE if the image is interlaced */ - gboolean interlaced; - /* format color space */ const gchar *format; @@ -672,9 +668,6 @@ gst_jpeg_parse_read_header (GstJpegParse * parse, GstMapInfo * map, gint len) goto error; break; - case SOF2: - parse->priv->interlaced = TRUE; - /* fall through */ case SOF0: /* parse Start Of Frame */ if (!gst_jpeg_parse_sof (parse, &reader)) @@ -731,7 +724,6 @@ gst_jpeg_parse_set_new_caps (GstJpegParse * parse, gboolean header_ok) if (header_ok == TRUE) { gst_caps_set_simple (caps, "format", G_TYPE_STRING, parse->priv->format, - "interlaced", G_TYPE_BOOLEAN, parse->priv->interlaced, "width", G_TYPE_INT, parse->priv->width, "height", G_TYPE_INT, parse->priv->height, NULL); } @@ -912,7 +904,6 @@ gst_jpeg_parse_start (GstBaseParse * bparse) parse->priv->has_fps = FALSE; - parse->priv->interlaced = FALSE; parse->priv->width = parse->priv->height = 0; parse->priv->framerate_numerator = 0; parse->priv->framerate_denominator = 1; -- cgit v1.2.1