Lines Matching refs:DEFINE_BLEND
159 #define DEFINE_BLEND(name, expr) \
187 DEFINE_BLEND(addition, FFMIN(255, A + B))
188 DEFINE_BLEND(average, (A + B) / 2)
189 DEFINE_BLEND(subtract, FFMAX(0, A - B))
190 DEFINE_BLEND(multiply, MULTIPLY(1, A, B))
191 DEFINE_BLEND(negation, 255 - FFABS(255 - A - B))
192 DEFINE_BLEND(difference, FFABS(A - B))
193 DEFINE_BLEND(screen, SCREEN(1, A, B))
194 DEFINE_BLEND(overlay, (A < 128) ? MULTIPLY(2, A, B) : SCREEN(2, A, B))
195 DEFINE_BLEND(hardlight, (B < 128) ? MULTIPLY(2, B, A) : SCREEN(2, B, A))
196 DEFINE_BLEND(darken, FFMIN(A, B))
197 DEFINE_BLEND(lighten, FFMAX(A, B))
198 DEFINE_BLEND(divide, ((float)A / ((float)B) * 255))
199 DEFINE_BLEND(dodge, DODGE(A, B))
200 DEFINE_BLEND(burn, BURN(A, B))
201 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))
202 DEFINE_BLEND(exclusion, A + B - 2 * A * B / 255)
203 DEFINE_BLEND(pinlight, (B < 128) ? FFMIN(A, 2 * B) : FFMAX(A, 2 * (B - 128)))
204 DEFINE_BLEND(phoenix, FFMIN(A, B) - FFMAX(A, B) + 255)
205 DEFINE_BLEND(reflect, (B == 255) ? B : FFMIN(255, (A * A / (255 - B))))
206 DEFINE_BLEND(and, A & B)
207 DEFINE_BLEND(or, A | B)
208 DEFINE_BLEND(xor, A ^ B)
209 DEFINE_BLEND(vividlight, (B < 128) ? BURN(A, 2 * B) : DODGE(A, 2 * (B - 128)))