Answer the question
In order to leave comments, you need to log in
How to load JPG file into pixel array using libjpeg library (C++)?
I have a jpg file with a resolution of x by y pixels. There is also a vector std::vector<int>
of size in xy . You need to write a function that will load a jpg file into this vector. Tried to google on this topic - found nothing. Thanks in advance.
PS If anyone has a solution that works through another library, then it will be great too. The main thing is that the solution should be cross-platform (at least run on Windows and Linux ), and also work with all versions of jpg (at least the latest ones).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question