DODGE 315 libavfilter/vf_blend.c DEFINE_BLEND8(dodge, DODGE(A, B)) DODGE 326 libavfilter/vf_blend.c DEFINE_BLEND8(vividlight, (A < 128) ? BURN(2 * A, B) : DODGE(2 * (A - 128), B)) DODGE 332 libavfilter/vf_blend.c #undef DODGE DODGE 337 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 65535) ? (a) : FFMIN(65535, (((b) << 16) / (65535 - (a))))) DODGE 358 libavfilter/vf_blend.c DEFINE_BLEND16(dodge, DODGE(A, B), 16) DODGE 369 libavfilter/vf_blend.c DEFINE_BLEND16(vividlight, (A < 32768) ? BURN(2 * A, B) : DODGE(2 * (A - 32768), B), 16) DODGE 375 libavfilter/vf_blend.c #undef DODGE DODGE 380 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 1023) ? (a) : FFMIN(1023, (((b) << 10) / (1023 - (a))))) DODGE 401 libavfilter/vf_blend.c DEFINE_BLEND16(dodge, DODGE(A, B), 10) DODGE 412 libavfilter/vf_blend.c DEFINE_BLEND16(vividlight, (A < 512) ? BURN(2 * A, B) : DODGE(2 * (A - 512), B), 10) DODGE 418 libavfilter/vf_blend.c #undef DODGE DODGE 423 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 4095) ? (a) : FFMIN(4095, (((b) << 12) / (4095 - (a))))) DODGE 444 libavfilter/vf_blend.c DEFINE_BLEND16(dodge, DODGE(A, B), 12) DODGE 455 libavfilter/vf_blend.c DEFINE_BLEND16(vividlight, (A < 2048) ? BURN(2 * A, B) : DODGE(2 * (A - 2048), B), 12) DODGE 461 libavfilter/vf_blend.c #undef DODGE DODGE 466 libavfilter/vf_blend.c #define DODGE(a, b) (((a) == 511) ? (a) : FFMIN(511, (((b) << 9) / (511 - (a))))) DODGE 487 libavfilter/vf_blend.c DEFINE_BLEND16(dodge, DODGE(A, B), 9) DODGE 498 libavfilter/vf_blend.c DEFINE_BLEND16(vividlight, (A < 256) ? BURN(2 * A, B) : DODGE(2 * (A - 256), B), 9) DODGE 504 libavfilter/vf_blend.c #undef DODGE DODGE 509 libavfilter/vf_blend.c #define DODGE(a, b) (((a) >= 1.0) ? (a) : FFMIN(1.0, ((b) / (1.0 - (a))))) DODGE 530 libavfilter/vf_blend.c DEFINE_BLEND32(dodge, DODGE(A, B), 32) DODGE 541 libavfilter/vf_blend.c DEFINE_BLEND32(vividlight, (A < 0.5) ? BURN(2 * A, B) : DODGE(2 * (A - 0.5), B), 32)