FFmpeg
Data Structures | Macros | Functions
vf_noise.h File Reference
#include "libavutil/lfg.h"
#include "avfilter.h"

Go to the source code of this file.

Data Structures

struct  FilterParams
 filter data More...
 
struct  NoiseContext
 

Macros

#define MAX_NOISE   5120
 
#define MAX_SHIFT   1024
 
#define MAX_RES   (MAX_NOISE-MAX_SHIFT)
 
#define NOISE_UNIFORM   1
 
#define NOISE_TEMPORAL   2
 
#define NOISE_AVERAGED   8
 
#define NOISE_PATTERN   16
 

Functions

void ff_line_noise_c (uint8_t *dst, const uint8_t *src, const int8_t *noise, int len, int shift)
 
void ff_line_noise_avg_c (uint8_t *dst, const uint8_t *src, int len, const int8_t *const *shift)
 
void ff_noise_init_x86 (NoiseContext *n)
 

Macro Definition Documentation

◆ MAX_NOISE

#define MAX_NOISE   5120

Definition at line 28 of file vf_noise.h.

◆ MAX_SHIFT

#define MAX_SHIFT   1024

Definition at line 29 of file vf_noise.h.

◆ MAX_RES

#define MAX_RES   (MAX_NOISE-MAX_SHIFT)

Definition at line 30 of file vf_noise.h.

◆ NOISE_UNIFORM

#define NOISE_UNIFORM   1

Definition at line 32 of file vf_noise.h.

◆ NOISE_TEMPORAL

#define NOISE_TEMPORAL   2

Definition at line 33 of file vf_noise.h.

◆ NOISE_AVERAGED

#define NOISE_AVERAGED   8

Definition at line 34 of file vf_noise.h.

◆ NOISE_PATTERN

#define NOISE_PATTERN   16

Definition at line 35 of file vf_noise.h.

Function Documentation

◆ ff_line_noise_c()

void ff_line_noise_c ( uint8_t *  dst,
const uint8_t *  src,
const int8_t *  noise,
int  len,
int  shift 
)

Definition at line 166 of file vf_noise.c.

Referenced by init().

◆ ff_line_noise_avg_c()

void ff_line_noise_avg_c ( uint8_t *  dst,
const uint8_t *  src,
int  len,
const int8_t *const *  shift 
)

Definition at line 179 of file vf_noise.c.

Referenced by init().

◆ ff_noise_init_x86()

void ff_noise_init_x86 ( NoiseContext n)

Definition at line 101 of file vf_noise.c.

Referenced by init().