[FFmpeg-devel] Changing the color of the pixel

Sisir Koppaka sisir.koppaka
Sun Apr 6 05:09:46 CEST 2008

> About your original question about the AVFrame struct, there are two
> ways data can be set. Either YUV or RGB. The most common case is planar
> YUV (if you don't know what YUV is, ask wikipedia). If you want the
> pixel line x, column y
> Y = data[0][x + y*linesize[0]]
> U = data[1][x + y*linesize[1]]
> V = data[2][x + y*linesize[2]]
Is RGB similar to this or just using data[0] will suffice?
Sisir Koppaka

More information about the ffmpeg-devel mailing list