Parsing JPEG SOS Marker

后端 未结 2 739
渐次进展
渐次进展 2021-02-13 22:46

There is a question with the same title but unfortunatly it doesn\'t help me.

I am trying to parse the data of a SOS marker. All documentations I can find say that afte

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-13 22:59

    The SOS marker contains the compressed data; the most complex part of the JPEG stream. The SOFn marker indicates the format of the data. SOF0 and SOF1 are processed identically. SOF2 (progressive) is quite a bit different. (The read of the SOFn markers are not in common use or commonly supported).

    The length is that of the SOS header, not the compressed data. Most of the header is only applicable to progressive scans (SOF2).

    The compressed data follows the header. The compressed data has no length. You have to scan through the data to find the next marker.

提交回复
热议问题