FFmpeg
|
#include "libavutil/common.h"
#include "libavutil/intfloat.h"
#include "avfilter.h"
#include "video.h"
#include "blend.h"
Go to the source code of this file.
Macros | |
#define | PIXEL uint16_t |
#define | MAX ((1 << DEPTH) - 1) |
#define | HALF (1 << (DEPTH - 1)) |
#define | CLIP(x) ((int)av_clip_uintp2(x, DEPTH)) |
#define | MULTIPLY(x, a, b) ((x) * (((a) * (b)) / MAX)) |
#define | SCREEN(x, a, b) (MAX - (x) * ((MAX - (a)) * (MAX - (b)) / MAX)) |
#define | BURN(a, b) (((a) == 0) ? (a) : FFMAX(0, MAX - ((MAX - (b)) << DEPTH) / (a))) |
#define | DODGE(a, b) (((a) == MAX) ? (a) : FFMIN(MAX, (((b) << DEPTH) / (MAX - (a))))) |
#define | GEOMETRIC(a, b) (lrintf(sqrtf((unsigned)A * B))) |
#define | INT2FLOAT(x) (x) |
#define | FLOAT2INT(x) (x) |
#define | MDIV (0.125f * (1 << DEPTH)) |
#define | LRINTF(x) lrintf(x) |
#define | A top[j] |
#define | B bottom[j] |
#define | fn2(a, b) blend_##a##_##b##bit |
#define | fn1(name, depth) fn2(name, depth) |
#define | fn0(name) fn1(name, DEPTH) |
#define | fn(NAME, EXPR) |
#define PIXEL uint16_t |
Definition at line 43 of file blend_modes.c.
#define MAX ((1 << DEPTH) - 1) |
Definition at line 44 of file blend_modes.c.
#define HALF (1 << (DEPTH - 1)) |
Definition at line 45 of file blend_modes.c.
#define CLIP | ( | x | ) | ((int)av_clip_uintp2(x, DEPTH)) |
Definition at line 46 of file blend_modes.c.
Definition at line 60 of file blend_modes.c.
Definition at line 61 of file blend_modes.c.
Definition at line 62 of file blend_modes.c.
Definition at line 63 of file blend_modes.c.
Definition at line 64 of file blend_modes.c.
#define INT2FLOAT | ( | x | ) | (x) |
Definition at line 65 of file blend_modes.c.
#define FLOAT2INT | ( | x | ) | (x) |
Definition at line 66 of file blend_modes.c.
Definition at line 67 of file blend_modes.c.
#define LRINTF | ( | x | ) | lrintf(x) |
Definition at line 68 of file blend_modes.c.
#define A top[j] |
Definition at line 81 of file blend_modes.c.
#define B bottom[j] |
Definition at line 82 of file blend_modes.c.
Definition at line 85 of file blend_modes.c.
#define fn | ( | NAME, | |
EXPR | |||
) |
Definition at line 88 of file blend_modes.c.