[FFmpeg-devel] [PATCH 2/2] fic: Support rendering cursors
Derek Buitenhuis
derek.buitenhuis at gmail.com
Wed Apr 23 00:20:17 CEST 2014
On 4/22/2014 11:11 PM, Michael Niedermayer wrote:
> *ptr is uint8 so its value is something from 0 to 255
>
> 25 * ptr[0] + 129 * ptr[1] + 66 * ptr[2]
> can at lowest be 0 and at highest be (25+129+66)*255
> (25+129+66)*255 / 255 = 220
> and 220 + 16 is 236
> so i dont see how this could overflow or underflow
>
> similar with the other 2 equations
OK.
- Derek
More information about the ffmpeg-devel
mailing list