[FFmpeg-devel] [PATCH]v308 and yuv4 encoders and decoders
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Fri Dec 30 02:05:01 CET 2011
On 30 Dec 2011, at 01:38, Derek Buitenhuis <derek.buitenhuis at gmail.com> wrote:
>
>> + u[j] = *src++ ^ 0x80;
>> + v[j] = *src++ ^ 0x80;
>
> Where does the xor with 0x80 come from? Something to do with
> signed-ness?
Should be, QuickTime has a few formats using signed chroma.
Also: in one of the decode functions, it is a bit silly to first use shifts to build an int from separate 8-bit values and then use AV_WB24 which just has to pick it apart again....
More information about the ffmpeg-devel
mailing list