~ubuntu-branches/ubuntu/raring/gst-plugins-good0.10/raring-proposed

« back to all changes in this revision

Viewing changes to gst/jpegformat/gstjpegparse.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-02-09 16:44:53 UTC
  • mfrom: (40.2.38 experimental)
  • Revision ID: package-import@ubuntu.com-20120209164453-6hjokwrvdn42zopb
Tags: 0.10.30.3-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - 04_move_farsight_plugins_to_good.patch
    Import autoconvert, dtmf, liveadder, rptmux from -plugins-bad
  - 05_move_shm_to_good.patch
    Import shm from -plugins-bad.
  - 07_move-camerabin.patch
    Import camerabin, camerabin2, jpegformat and basecamerabinsrc
    from -plugins-bad.
  - control*:
    * Drop dependency from gstreamer0.10-plugins-good on
      gstreamer0.10-gconf. It pulls gconf and gtk3 onto the Kubuntu cd.
    * Use Breaks instead of Conflicts.
    * Add a 'Pre-Depends: ${misc:Pre-Depends}' to the plugin package,
      since we're shipping shared libraries in the package that Debian
      isn't.
* Update the patches by pulling new version of the code from
  -plugins-bad 0.10.22.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
{
140
140
  GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
141
141
 
142
 
  gst_element_class_add_pad_template (element_class,
143
 
      gst_static_pad_template_get (&gst_jpeg_parse_src_pad_template));
144
 
  gst_element_class_add_pad_template (element_class,
145
 
      gst_static_pad_template_get (&gst_jpeg_parse_sink_pad_template));
 
142
  gst_element_class_add_static_pad_template (element_class,
 
143
      &gst_jpeg_parse_src_pad_template);
 
144
  gst_element_class_add_static_pad_template (element_class,
 
145
      &gst_jpeg_parse_sink_pad_template);
146
146
  gst_element_class_set_details_simple (element_class,
147
147
      "JPEG stream parser",
148
148
      "Video/Parser",
438
438
  guint8 numcomps = 0;          /* Number of components in image
439
439
                                   (1 for gray, 3 for YUV, etc.) */
440
440
  guint8 precision;             /* precision (in bits) for the samples */
441
 
  guint8 compId[3];             /* unique value identifying each component */
442
 
  guint8 qtId[3];               /* quantization table ID to use for this comp */
 
441
  guint8 compId[3] G_GNUC_UNUSED;       /* unique value identifying each component */
 
442
  guint8 qtId[3] G_GNUC_UNUSED; /* quantization table ID to use for this comp */
443
443
  guint8 blockWidth[3];         /* Array[numComponents] giving the number of
444
444
                                   blocks (horiz) in this component */
445
445
  guint8 blockHeight[3];        /* Same for the vertical part of this component */
464
464
  if (!gst_byte_reader_get_uint8 (reader, &numcomps))
465
465
    return FALSE;
466
466
 
467
 
  if (numcomps > 3)
 
467
  if (numcomps > 3)             /* FIXME */
468
468
    return FALSE;
469
469
 
470
470
  /* Get decimation and quantization table id for each component */