FFmpeg
Macros | Functions
phase_template.c File Reference
#include "libavutil/avassert.h"
#include "avfilter.h"
#include "formats.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]) << 2) + (a)[(as) << 1] - (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 33 of file phase_template.c.

◆ accumulator

#define accumulator   int64_t

Definition at line 34 of file phase_template.c.

◆ fn3

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

Definition at line 37 of file phase_template.c.

◆ fn2

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

Definition at line 38 of file phase_template.c.

◆ fn

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

Definition at line 39 of file phase_template.c.

◆ DIFF

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

Definition at line 49 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 55 of file phase_template.c.