Home
last modified time | relevance | path

Searched refs:FAST_DIV255 (Results 1 – 3 of 3) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvf_overlay.c337 #define FAST_DIV255(x) ((((x) + 128) * 257) >> 16) macro
409 d[dr] = is_straight ? FAST_DIV255(d[dr] * (255 - alpha) + S[sr] * alpha) : in blend_slice_packed_rgb()
410 FFMIN(FAST_DIV255(d[dr] * (255 - alpha)) + S[sr], 255); in blend_slice_packed_rgb()
411 d[dg] = is_straight ? FAST_DIV255(d[dg] * (255 - alpha) + S[sg] * alpha) : in blend_slice_packed_rgb()
412 FFMIN(FAST_DIV255(d[dg] * (255 - alpha)) + S[sg], 255); in blend_slice_packed_rgb()
413 d[db] = is_straight ? FAST_DIV255(d[db] * (255 - alpha) + S[sb] * alpha) : in blend_slice_packed_rgb()
414 FFMIN(FAST_DIV255(d[db] * (255 - alpha)) + S[sb], 255); in blend_slice_packed_rgb()
425 d[da] += FAST_DIV255((255 - d[da]) * S[sa]); in blend_slice_packed_rgb()
535 … *d = FAST_DIV255(*d * (255 - alpha) + *s * alpha); \
544 … *d = av_clip(FAST_DIV255((*d - mid) * (max - alpha)) + *s - mid, -mid, mid) + mid; \
[all …]
Dvsrc_life.c369 #define FAST_DIV255(x) ((((x) + 128) * 257) >> 16) macro
386 *p++ = FAST_DIV255((c2[0] << 8) + ((int)c1[0] - (int)c2[0]) * death_age); in fill_picture_rgb()
387 *p++ = FAST_DIV255((c2[1] << 8) + ((int)c1[1] - (int)c2[1]) * death_age); in fill_picture_rgb()
388 *p++ = FAST_DIV255((c2[2] << 8) + ((int)c1[2] - (int)c2[2]) * death_age); in fill_picture_rgb()
/third_party/ffmpeg/libavcodec/
Dpngdec.c1072 #define FAST_DIV255(x) ((((x) + 128) * 257) >> 16) macro
1169 … output_alpha = foreground_alpha + FAST_DIV255((255 - foreground_alpha) * background_alpha); in handle_p_frame_apng()
1177 …output[b] = FAST_DIV255(foreground_alpha * foreground[b] + (255 - foreground_alpha) * background[b… in handle_p_frame_apng()