Searched refs:foreground_alpha (Results 1 – 1 of 1) sorted by relevance
1131 uint8_t foreground_alpha, background_alpha, output_alpha; in handle_p_frame_apng() local1140 foreground_alpha = foreground[3]; in handle_p_frame_apng()1145 foreground_alpha = foreground[1]; in handle_p_frame_apng()1150 foreground_alpha = s->palette[foreground[0]] >> 24; in handle_p_frame_apng()1155 if (foreground_alpha == 255) in handle_p_frame_apng()1158 if (foreground_alpha == 0) { in handle_p_frame_apng()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()1179 …output[b] = (255 * foreground_alpha * foreground[b] + (255 - foreground_alpha) * background_alpha … in handle_p_frame_apng()