DEFINE_BLEND 194 libavfilter/vf_blend.c DEFINE_BLEND(addition, FFMIN(255, A + B)) DEFINE_BLEND 195 libavfilter/vf_blend.c DEFINE_BLEND(average, (A + B) / 2) DEFINE_BLEND 196 libavfilter/vf_blend.c DEFINE_BLEND(subtract, FFMAX(0, A - B)) DEFINE_BLEND 197 libavfilter/vf_blend.c DEFINE_BLEND(multiply, MULTIPLY(1, A, B)) DEFINE_BLEND 198 libavfilter/vf_blend.c DEFINE_BLEND(negation, 255 - FFABS(255 - A - B)) DEFINE_BLEND 199 libavfilter/vf_blend.c DEFINE_BLEND(difference, FFABS(A - B)) DEFINE_BLEND 200 libavfilter/vf_blend.c DEFINE_BLEND(difference128, av_clip_uint8(128 + A - B)) DEFINE_BLEND 201 libavfilter/vf_blend.c DEFINE_BLEND(screen, SCREEN(1, A, B)) DEFINE_BLEND 202 libavfilter/vf_blend.c DEFINE_BLEND(overlay, (A < 128) ? MULTIPLY(2, A, B) : SCREEN(2, A, B)) DEFINE_BLEND 203 libavfilter/vf_blend.c DEFINE_BLEND(hardlight, (B < 128) ? MULTIPLY(2, B, A) : SCREEN(2, B, A)) DEFINE_BLEND 204 libavfilter/vf_blend.c DEFINE_BLEND(darken, FFMIN(A, B)) DEFINE_BLEND 205 libavfilter/vf_blend.c DEFINE_BLEND(lighten, FFMAX(A, B)) DEFINE_BLEND 206 libavfilter/vf_blend.c DEFINE_BLEND(divide, ((float)A / ((float)B) * 255)) DEFINE_BLEND 207 libavfilter/vf_blend.c DEFINE_BLEND(dodge, DODGE(A, B)) DEFINE_BLEND 208 libavfilter/vf_blend.c DEFINE_BLEND(burn, BURN(A, B)) DEFINE_BLEND 209 libavfilter/vf_blend.c DEFINE_BLEND(softlight, (A > 127) ? B + (255 - B) * (A - 127.5) / 127.5 * (0.5 - FFABS(B - 127.5) / 255): B - B * ((127.5 - A) / 127.5) * (0.5 - FFABS(B - 127.5)/255)) DEFINE_BLEND 210 libavfilter/vf_blend.c DEFINE_BLEND(exclusion, A + B - 2 * A * B / 255) DEFINE_BLEND 211 libavfilter/vf_blend.c DEFINE_BLEND(pinlight, (B < 128) ? FFMIN(A, 2 * B) : FFMAX(A, 2 * (B - 128))) DEFINE_BLEND 212 libavfilter/vf_blend.c DEFINE_BLEND(phoenix, FFMIN(A, B) - FFMAX(A, B) + 255) DEFINE_BLEND 213 libavfilter/vf_blend.c DEFINE_BLEND(reflect, (B == 255) ? B : FFMIN(255, (A * A / (255 - B)))) DEFINE_BLEND 214 libavfilter/vf_blend.c DEFINE_BLEND(and, A & B) DEFINE_BLEND 215 libavfilter/vf_blend.c DEFINE_BLEND(or, A | B) DEFINE_BLEND 216 libavfilter/vf_blend.c DEFINE_BLEND(xor, A ^ B) DEFINE_BLEND 217 libavfilter/vf_blend.c DEFINE_BLEND(vividlight, (B < 128) ? BURN(A, 2 * B) : DODGE(A, 2 * (B - 128)))