jpeg: make gst_jpeg_parse() support multiple scans.
authorWind Yuan <feng.yuan@intel.com>
Mon, 4 Jun 2012 07:52:19 +0000 (15:52 +0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 21 Jun 2012 13:30:53 +0000 (15:30 +0200)
commit4c5cc7eff9137e9f0a4421f53e1bf4f02f42aebc
treeaf1c96f29ae7c4318fd222bc7c6896347cc38e29
parent53cbdcc1e6df3f71a4c43c25d3e5bf0b8d9cae7d
jpeg: make gst_jpeg_parse() support multiple scans.

gst_jpeg_parse() now gathers all scans available in the supplied
buffer. A scan comprises of the scan header and any entropy-coded
segments or restart marker following it. The size and offset to
the associated data (ECS + RST segments) are append to a new
GstJpegScanOffsetSize structure.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/codecparsers/gstjpegparser.c
gst-libs/gst/codecparsers/gstjpegparser.h
gst-libs/gst/vaapi/gstvaapidecoder_jpeg.c