Hi,

Thanks, I eventually found a usable example, then I found the codec
does not support all the JPEG types I need, so I am using libjpeg to
decode the jpegs into an RGB buffer, then swscale to convert to
YUV420P, for the next bit.

Cheers,
Keean.

2008/6/30 Michel Bardiaux <[EMAIL PROTECTED]>:
> Keean Schupke wrote:
>> Hi,
>>
>> Can anyone show me an example of how to use libavcodec to decode a
>> JPEG image from a memory buffer?
>>
>
> Simply call avcodec_decode_video, using an AVCodecContext for the MJPEG
> codec.
>
> Greetings,
> --
> Michel Bardiaux
> http://www.mediaxim.com/
> _______________________________________________
> 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