mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
fic: Simplify alpha blending
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
b0bdc2a712
commit
e299cb2cd3
@ -195,7 +195,7 @@ static av_always_inline void fic_alpha_blend(uint8_t *dst, uint8_t *src,
|
||||
int i;
|
||||
|
||||
for (i = 0; i < size; i++)
|
||||
dst[i] = (dst[i] * (256 - alpha[i]) + src[i] * alpha[i]) >> 8;
|
||||
dst[i] += ((src[i] - dst[i]) * alpha[i]) >> 8;
|
||||
}
|
||||
|
||||
static void fic_draw_cursor(AVCodecContext *avctx, int cur_x, int cur_y)
|
||||
|
Loading…
Reference in New Issue
Block a user