FFmpeg
Macros | Functions
median_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 htype   uint16_t
 
#define SHIFT   ((DEPTH + 1) / 2)
 
#define BINS   (1 << SHIFT)
 
#define MASK   (BINS - 1)
 
#define fn3(a, b)   a##_##b
 
#define fn2(a, b)   fn3(a,b)
 
#define fn(a)   fn2(a, DEPTH)
 
#define PICK_COARSE_BIN(x, y)   (BINS * (x) + ((y) >> SHIFT))
 
#define PICK_FINE_BIN(x, y, z)   (BINS * ((x) * ((y) >> SHIFT) + (z)) + ((y) & MASK))
 

Functions

static void fn() filter_plane (AVFilterContext *ctx, const uint8_t *ssrc, int src_linesize, uint8_t *ddst, int dst_linesize, int width, int height, int slice_h_start, int slice_h_end, int jobnr)
 

Macro Definition Documentation

◆ pixel

#define pixel   uint16_t

Definition at line 33 of file median_template.c.

◆ htype

#define htype   uint16_t

Definition at line 37 of file median_template.c.

◆ SHIFT

#define SHIFT   ((DEPTH + 1) / 2)

Definition at line 42 of file median_template.c.

◆ BINS

#define BINS   (1 << SHIFT)

Definition at line 43 of file median_template.c.

◆ MASK

#define MASK   (BINS - 1)

Definition at line 44 of file median_template.c.

◆ fn3

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

Definition at line 45 of file median_template.c.

◆ fn2

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

Definition at line 46 of file median_template.c.

◆ fn

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

Definition at line 47 of file median_template.c.

◆ PICK_COARSE_BIN

#define PICK_COARSE_BIN (   x,
 
)    (BINS * (x) + ((y) >> SHIFT))

Definition at line 49 of file median_template.c.

◆ PICK_FINE_BIN

#define PICK_FINE_BIN (   x,
  y,
 
)    (BINS * ((x) * ((y) >> SHIFT) + (z)) + ((y) & MASK))

Definition at line 50 of file median_template.c.

Function Documentation

◆ filter_plane()

static void fn() filter_plane ( AVFilterContext ctx,
const uint8_t ssrc,
int  src_linesize,
uint8_t ddst,
int  dst_linesize,
int  width,
int  height,
int  slice_h_start,
int  slice_h_end,
int  jobnr 
)
static

Definition at line 52 of file median_template.c.