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

#define pixel   uint16_t

Definition at line 33 of file median_template.c.

Referenced by filter_plane().

#define htype   uint16_t

Definition at line 37 of file median_template.c.

Referenced by filter_plane(), and smjpeg_read_header().

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

Definition at line 42 of file median_template.c.

#define BINS   (1 << SHIFT)

Definition at line 43 of file median_template.c.

Referenced by filter_plane().

#define MASK   (BINS - 1)

Definition at line 44 of file median_template.c.

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

Definition at line 45 of file median_template.c.

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

Definition at line 46 of file median_template.c.

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

Definition at line 47 of file median_template.c.

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

Definition at line 49 of file median_template.c.

Referenced by filter_plane().

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

Definition at line 50 of file median_template.c.

Referenced by filter_plane().

Function Documentation

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.