"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")
);
/* the parsed frame size */
guint16 width, height;
- /* TRUE if the image is interlaced */
- gboolean interlaced;
-
/* format color space */
const gchar *format;
goto error;
break;
- case SOF2:
- parse->priv->interlaced = TRUE;
- /* fall through */
case SOF0:
/* parse Start Of Frame */
if (!gst_jpeg_parse_sof (parse, &reader))
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);
}
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;
};
guint8 test_data_sof0[] = {
- 0xff, 0xc0,
+ 0xff, 0xc0, /* baseline dct-based */
0x00, 0x11, /* size */
0x08, /* precision */
0x00, 0x3c, /* width */
caps_out = gst_caps_new_simple ("image/jpeg", "parsed", G_TYPE_BOOLEAN, TRUE,
"framerate", GST_TYPE_FRACTION, 1, 1, "format", G_TYPE_STRING,
- "I420", "interlaced", G_TYPE_BOOLEAN, FALSE,
- "width", G_TYPE_INT, 80, "height", G_TYPE_INT, 60, NULL);
+ "I420", "width", G_TYPE_INT, 80, "height", G_TYPE_INT, 60, NULL);
buffer_in = make_my_input_buffer (test_data_app1_exif,
sizeof (test_data_app1_exif));
caps_out = gst_caps_new_simple ("image/jpeg", "parsed", G_TYPE_BOOLEAN, TRUE,
"framerate", GST_TYPE_FRACTION, 1, 1, "format", G_TYPE_STRING,
- "I420", "interlaced", G_TYPE_BOOLEAN, FALSE,
- "width", G_TYPE_INT, 80, "height", G_TYPE_INT, 60, NULL);
+ "I420", "width", G_TYPE_INT, 80, "height", G_TYPE_INT, 60, NULL);
buffer_in = make_my_input_buffer (test_data_comment,
sizeof (test_data_comment));