[Libav-user] Convert from YUYV to YUV420P

Kirill Gavrilov gavr.mail at gmail.com
Mon Apr 4 11:05:51 CEST 2011


I am trying to convert from YUYV to YUV420P. I haven't seen any function so
> I decided to do on my own. But I have the problem that it doesn't seem to
> work.

swscale library is intended for pixel format and image size conversions.
Look at the sws_getContext() and sws_scale() functions and only after that
(if swscale doesn't support something)
try to implement your own ;), because pixel format conversions are not easy

Sorry if you already tried this...
Kirill Gavrilov,
Software designer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110404/88c3225e/attachment.html>

More information about the Libav-user mailing list