DEFINE_BLEND32 511 libavfilter/vf_blend.c DEFINE_BLEND32(addition, A + B, 32) DEFINE_BLEND32 512 libavfilter/vf_blend.c DEFINE_BLEND32(grainmerge, A + B - 0.5, 32) DEFINE_BLEND32 513 libavfilter/vf_blend.c DEFINE_BLEND32(average, (A + B) / 2, 32) DEFINE_BLEND32 514 libavfilter/vf_blend.c DEFINE_BLEND32(subtract, A - B, 32) DEFINE_BLEND32 515 libavfilter/vf_blend.c DEFINE_BLEND32(multiply, A * B, 32) DEFINE_BLEND32 516 libavfilter/vf_blend.c DEFINE_BLEND32(multiply128, (A - 0.5) * B / 0.125 + 0.5, 32) DEFINE_BLEND32 517 libavfilter/vf_blend.c DEFINE_BLEND32(negation, 1.0 - FFABS(1.0 - A - B), 32) DEFINE_BLEND32 518 libavfilter/vf_blend.c DEFINE_BLEND32(extremity, FFABS(1.0 - A - B), 32) DEFINE_BLEND32 519 libavfilter/vf_blend.c DEFINE_BLEND32(difference, FFABS(A - B), 32) DEFINE_BLEND32 520 libavfilter/vf_blend.c DEFINE_BLEND32(grainextract, 0.5 + A - B, 32) DEFINE_BLEND32 521 libavfilter/vf_blend.c DEFINE_BLEND32(screen, SCREEN(1, A, B), 32) DEFINE_BLEND32 522 libavfilter/vf_blend.c DEFINE_BLEND32(overlay, (A < 0.5) ? MULTIPLY(2, A, B) : SCREEN(2, A, B), 32) DEFINE_BLEND32 523 libavfilter/vf_blend.c DEFINE_BLEND32(hardlight, (B < 0.5) ? MULTIPLY(2, B, A) : SCREEN(2, B, A), 32) DEFINE_BLEND32 524 libavfilter/vf_blend.c DEFINE_BLEND32(hardmix, (A < (1.0 - B)) ? 0: 1.0, 32) DEFINE_BLEND32 525 libavfilter/vf_blend.c DEFINE_BLEND32(heat, (A == 0) ? 0 : 1.0 - FFMIN(((1.0 - B) * (1.0 - B)) / A, 1.0), 32) DEFINE_BLEND32 526 libavfilter/vf_blend.c DEFINE_BLEND32(freeze, (B == 0) ? 0 : 1.0 - FFMIN(((1.0 - A) * (1.0 - A)) / B, 1.0), 32) DEFINE_BLEND32 527 libavfilter/vf_blend.c DEFINE_BLEND32(darken, FFMIN(A, B), 32) DEFINE_BLEND32 528 libavfilter/vf_blend.c DEFINE_BLEND32(lighten, FFMAX(A, B), 32) DEFINE_BLEND32 529 libavfilter/vf_blend.c DEFINE_BLEND32(divide, B == 0 ? 1.0 : 1.0 * A / B, 32) DEFINE_BLEND32 530 libavfilter/vf_blend.c DEFINE_BLEND32(dodge, DODGE(A, B), 32) DEFINE_BLEND32 531 libavfilter/vf_blend.c DEFINE_BLEND32(burn, BURN(A, B), 32) DEFINE_BLEND32 532 libavfilter/vf_blend.c DEFINE_BLEND32(softlight, (A > 0.5) ? B + (1.0 - B) * (A - 0.5) / 0.5 * (0.5 - fabs(B - 0.5) / 1.0): B - B * ((0.5 - A) / 0.5) * (0.5 - fabs(B - 0.5)/1.0), 32) DEFINE_BLEND32 533 libavfilter/vf_blend.c DEFINE_BLEND32(exclusion, A + B - 2 * A * B / 1.0, 32) DEFINE_BLEND32 534 libavfilter/vf_blend.c DEFINE_BLEND32(pinlight, (B < 0.5) ? FFMIN(A, 2 * B) : FFMAX(A, 2 * (B - 0.5)), 32) DEFINE_BLEND32 535 libavfilter/vf_blend.c DEFINE_BLEND32(phoenix, FFMIN(A, B) - FFMAX(A, B) + 1.0, 32) DEFINE_BLEND32 536 libavfilter/vf_blend.c DEFINE_BLEND32(reflect, (B == 1.0) ? B : FFMIN(1.0, (A * A / (1.0 - B))), 32) DEFINE_BLEND32 538 libavfilter/vf_blend.c DEFINE_BLEND32(and, av_int2float(av_float2int(A) & av_float2int(B)), 32) DEFINE_BLEND32 539 libavfilter/vf_blend.c DEFINE_BLEND32(or, av_int2float(av_float2int(A) | av_float2int(B)), 32) DEFINE_BLEND32 540 libavfilter/vf_blend.c DEFINE_BLEND32(xor, av_int2float(av_float2int(A) ^ av_float2int(B)), 32) DEFINE_BLEND32 541 libavfilter/vf_blend.c DEFINE_BLEND32(vividlight, (A < 0.5) ? BURN(2 * A, B) : DODGE(2 * (A - 0.5), B), 32) DEFINE_BLEND32 542 libavfilter/vf_blend.c DEFINE_BLEND32(linearlight,(B < 0.5) ? B + 2 * A - 1.0 : B + 2 * (A - 0.5), 32)