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

#define pixel   uint16_t

Definition at line 33 of file phase_template.c.

Referenced by analyze_plane().

#define accumulator   int64_t

Definition at line 34 of file phase_template.c.

Referenced by analyze_plane(), and blur_pixel().

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

Definition at line 37 of file phase_template.c.

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

Definition at line 38 of file phase_template.c.

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

Definition at line 39 of file phase_template.c.

#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.

Referenced by analyze_plane().

Function Documentation

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.