[Libav-user] Convert from YUYV to YUV420P
Jeremy Mordkoff
jlm at zeevee.com
Mon Apr 4 15:03:10 CEST 2011
should be * 4 I think.
The suggestion to use swscale seems like a good one to me.
JLM
On Mon, 2011-04-04 at 14:53 +0200, Jorge wrote:
> Hi:
>
> First of all thank you for your answers.
>
> Could you tell me why is it wrong?
>
> count is used to read and write from/to the file so in YUY2 each pixel
> has 2 bytes (is YUYV) so I have to read for each pixel 2 bytes.
>
> What is wrong and how could I fix it?
>
> Regards
>
> Jorge
>
>
> 2011/4/4 Jeremy Mordkoff <jlm at zeevee.com>
>
> This looks wrong
>
>
>
> On Mon, 2011-04-04 at 10:45 +0200, Jorge wrote:
>
> > int count = width * height * 2;
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110404/cc27cb2c/attachment.html>
More information about the Libav-user
mailing list