FFmpeg
Loading...
Searching...
No Matches
blend_modes.c File Reference
#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)
 
#define MULTIPLY(x, a, b)
 
#define SCREEN(x, a, b)
 
#define BURN(a, b)
 
#define DODGE(a, b)
 
#define GEOMETRIC(a, b)
 
#define INT2FLOAT(x)
 
#define FLOAT2INT(x)
 
#define MDIV   (0.125f * (1 << DEPTH))
 
#define LRINTF(x)
 
#define A   top[j]
 
#define B   bottom[j]
 
#define fn2(a, b)
 
#define fn1(name, depth)
 
#define fn0(name)
 
#define fn(NAME, EXPR)
 

Macro Definition Documentation

◆ PIXEL

#define PIXEL   uint16_t

Definition at line 45 of file blend_modes.c.

◆ MAX

#define MAX   ((1 << DEPTH) - 1)

Definition at line 46 of file blend_modes.c.

Referenced by checkasm_check_sw_ops().

◆ HALF

#define HALF   (1 << (DEPTH - 1))

Definition at line 47 of file blend_modes.c.

◆ CLIP

#define CLIP ( x)
Value:
#define av_clip_uintp2
Definition common.h:124
#define DEPTH
Definition v210enc.c:33

Definition at line 48 of file blend_modes.c.

◆ MULTIPLY

#define MULTIPLY ( x,
a,
b )
Value:
((x) * (((a) * (b)) / MAX))
#define MAX
Definition blend_modes.c:46
int a
#define b
Definition input.c:43

Definition at line 65 of file blend_modes.c.

◆ SCREEN

#define SCREEN ( x,
a,
b )
Value:
(MAX - (x) * ((MAX - (a)) * (MAX - (b)) / MAX))

Definition at line 66 of file blend_modes.c.

◆ BURN

#define BURN ( a,
b )
Value:
(((a) == 0) ? (a) : FFMAX(0, MAX - ((MAX - (b)) << DEPTH) / (a)))
#define FFMAX(a, b)
Definition macros.h:47

Definition at line 67 of file blend_modes.c.

◆ DODGE

#define DODGE ( a,
b )
Value:
(((a) == MAX) ? (a) : FFMIN(MAX, (((b) << DEPTH) / (MAX - (a)))))
#define FFMIN(a, b)
Definition macros.h:49

Definition at line 68 of file blend_modes.c.

◆ GEOMETRIC

#define GEOMETRIC ( a,
b )
Value:
(lrintf(sqrtf((unsigned)A * B)))
#define A(x)
Definition vpx_arith.h:28
static __device__ float sqrtf(float a)
#define B
Definition huffyuv.h:42
#define lrintf(x)
Definition libm_mips.h:74

Definition at line 69 of file blend_modes.c.

◆ INT2FLOAT

#define INT2FLOAT ( x)
Value:
(x)

Definition at line 70 of file blend_modes.c.

◆ FLOAT2INT

#define FLOAT2INT ( x)
Value:
(x)

Definition at line 71 of file blend_modes.c.

◆ MDIV

#define MDIV   (0.125f * (1 << DEPTH))

Definition at line 72 of file blend_modes.c.

◆ LRINTF