FFmpeg
Loading...
Searching...
No Matches
phase_template.c File Reference
#include "libavutil/avassert.h"
#include "avfilter.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)
 
#define fn2(a, b)
 
#define fn(a)
 
#define DIFF(a, as, b, bs)
 

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 31 of file phase_template.c.

◆ accumulator

#define accumulator   int64_t

Definition at line 32 of file phase_template.c.

Referenced by analyze_plane(), and blur_pixel().

◆ fn3

#define fn3 ( a,
b )
Value:
a##_##b
#define _
int a
#define b
Definition input.c:43

Definition at line 35 of file phase_template.c.

◆ fn2

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

Definition at line 36 of file phase_template.c.

◆ fn

#define fn ( a)
Value:
#define fn2(a, b)
#define DEPTH
Definition v210enc.c:33

Definition at line 37 of file phase_template.c.

◆ DIFF

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

Definition at line 47 of file phase_template.c.

Referenced by analyze_plane().

Function Documentation

◆ analyze_plane()

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

Definition at line 53 of file phase_template.c.

Referenced by analyze_plane().