You ought to be able to decode and encode jpegs with libav's builtin jpeg codec. I've done both before with the "mjpeg" codec. I didn't need libjpeg. It's not C++ though. You'd have to either use C from within a C++ app, or find some other library. From the looks of things, libjpeg isn't C++ either...

Andy

On 7/21/2010 8:22 PM, Glen Ruedinger wrote:
Sounds like you need lipjpeg maybe?




On Jul 21, 2010, at 8:24 AM, Tomas Härdin<[email protected]>
wrote:

On Mon, 2010-07-19 at 17:27 +0200, Denis Gottardello wrote:
Have you got an example on how to convert a just in memory image
from yuv to
jpg in C++?

Thanks.



Check out libavformat/output-example.c and use "mjpeg" as your codec.

/Tomas
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user


_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to