[FFmpeg-devel] [PATCH] [SOCIS] [WIP] libavfilter: add vf_hue.c
nicolas.george at normalesup.org
Mon Aug 6 19:11:07 CEST 2012
Le decadi 20 thermidor, an CCXX, Stefano Sabatini a écrit :
> So the question is: should we rely on this behavior?
> The plain C variant would be:
> if (new_x & 0x300)
> new_x = av_clip_uint8(new_x);
Since we have better, there is clearly no need to keep the hack.
The test could become "new_x & ~0xFF". Or even go away completely, as
av_clip_uint8 does exactly that.
(As a side note, av_clip_uint8_c() is implemented exactly that way.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel