I have a container file which consists of a header (plain text data) and a bunch of JPGs, divided by few tenth of zeroes.
I currently have some code in Python, which do the following:
- skip zero and header on needed;
- seeks SOI (
0xFF,0xD8) marker; - seeks EOI (
0xFF,0xD9) marker; - using
feed, from Pillow library, function to read image itself and save to write it to file; - repeat until all images saved.
I want to rewrite it in C++, but stuck with reading JPG, I want complete analogue of feed function: C++ library that can read JPG between start and stop from fstream or FILE *.
Is there something like this in boost::GIL? Or any other suggestion.