FFmpeg
Macros | Functions
phase_template.c File Reference
#include "libavutil/avassert.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Macros

#define pixel   uint16_t
 
#define accumulator   int64_t
 
#define fn3(a, b)   a##_##b
 
#define fn2(a, b)   fn3(a,b)
 
#define fn(a)   fn2(a, DEPTH)
 
#define DIFF(a, as, b, bs)   ((t) = ((*(a) - (b)[bs]) * 4) + (a)[(as) * 2] - (b)[-(bs)], (t) * (t))
 

Functions

static enum PhaseMode fn() analyze_plane (void *ctx, enum PhaseMode mode, AVFrame *old, AVFrame *new)
 

Macro Definition Documentation

◆ pixel

#define pixel   uint16_t

Definition at line 32 of file phase_template.c.

◆ accumulator

#define accumulator   int64_t

Definition at line 33 of file phase_template.c.

◆ fn3

#define fn3 (   a,
  b 
)    a##_##b

Definition at line 36 of file phase_template.c.

◆ fn2

#define fn2 (   a,
  b 
)    fn3(a,b)

Definition at line 37 of file phase_template.c.

◆ fn

#define fn (   a)    fn2(a, DEPTH)

Definition at line 38 of file phase_template.c.

◆ DIFF

#define DIFF (   a,
  as,
  b,
  bs 
)    ((t) = ((*(a) - (b)[bs]) * 4) + (a)[(as) * 2] - (b)[-(bs)], (t) * (t))

Definition at line 48 of file phase_template.c.

Function Documentation

◆ analyze_plane()

static enum PhaseMode fn() analyze_plane ( void *  ctx,
enum PhaseMode  mode,
AVFrame old,
AVFrame new 
)
static

Definition at line 54 of file phase_template.c.