Lines Matching refs:foreground
653 // output: background, input: foreground
654 // output the image such that when blended with the background, will produce the foreground
726 uint8_t *foreground = input->data[0] + input_linesize * y + bpp * leftmost_x;
729 for (x = leftmost_x; x < rightmost_x; ++x, foreground += bpp, background += bpp, output_data += bpp) {
730 if (!memcmp(foreground, background, bpp)) {
750 if (((uint16_t*)foreground)[3] == 0xffff ||
756 if (((uint16_t*)foreground)[1] == 0xffff ||
762 if (foreground[3] == 0xff || background[3] == 0)
767 if (foreground[1] == 0xff || background[1] == 0)
772 if (palette[*foreground] >> 24 == 0xff ||
778 memmove(output_data, foreground, bpp);