got it CODEC_ID_MJPEG<http://cekirdek.uludag.org.tr/~ismail/ffmpeg-docs/avcodec_8h.html#0c33394cb3458990f80b53c83ebe25f4e71e49f03f05a2e3495c8e7db5c4c210>
<http://cekirdek.uludag.org.tr/~ismail/ffmpeg-docs/avcodec_8h.html#0c33394cb3458990f80b53c83ebe25f4e71e49f03f05a2e3495c8e7db5c4c210>you also can more decoder id in avcodec.h On Tue, Nov 16, 2010 at 8:28 PM, Mark Kenna < [email protected]> wrote: > > > On 16/11/2010 12:24, sq.cheng wrote: > >> use the video decode to do it >> just like decoding mpeg4 or h.264, with the JPEG codec id(I don't remember >> what's name, something like MJPEG) >> then decode one frame, it will output one yuv frame, >> and it seems I once met the output is yuyv, according to the input image. >> >> >> On Tue, Nov 16, 2010 at 8:11 PM, Mark Kenna< >> [email protected]> wrote: >> >> Hi Guys >>> >>> Does anyone know if it's possible to convert a JPEG to YUV frame simply >>> using LibAv*? Currently I am converting to a Bitmap and converting the >>> RGB >>> data to a YUV frame using sws. If there is a simpler (and more efficient) >>> method I would love to know about it. >>> >>> Thanks, >>> Mark. >>> >>> _______________________________________________ >>> 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-useriewsystems.com/support >> > Interesting - I will give it a try. If someone could specify the exact > codec to use I would appreciate it. > > > Thanks, > Mark. > > _______________________________________________ > 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
