FFmpeg
Loading...
Searching...
No Matches
vf_limiter_init.h File Reference
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "limiter.h"

Go to the source code of this file.

Macros

#define LIMITER(n, type)
 

Functions

static av_unused void ff_limiter_init (LimiterDSPContext *s, int depth)
 

Macro Definition Documentation

◆ LIMITER

#define LIMITER ( n,
type )
Value:
static void limiter##n(const uint8_t *src8, uint8_t *dst8, \
ptrdiff_t slinesize, ptrdiff_t dlinesize,\
int w, int h, int min, int max) \
{ \
for (int y = 0; y < h; y++) { \
const type *src = (const type *)src8; \
type *dst = (type *)dst8; \
for (int x = 0; x < w; x++) { \
dst[x] = av_clip(src[x], min, max); \
} \
\
dst8 += dlinesize; \
src8 += slinesize; \
} \
}
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:97
#define av_clip
Definition common.h:100
#define min(a, b)
#define max(a, b)
enum MPFType type
Definition jpegmpfenc.c:55
uint8_t w
Definition llvidencdsp.c:39
#define src
Definition vp8dsp.c:248

Definition at line 27 of file vf_limiter_init.h.

Function Documentation

◆ ff_limiter_init()

static av_unused void ff_limiter_init ( LimiterDSPContext * s,
int depth )
static

Definition at line 47 of file vf_limiter_init.h.

Referenced by check_limiter(), config_input(), and ff_limiter_init().