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-user
