FFmpeg
|
noise generator More...
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "libavutil/lfg.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "vf_noise.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | ThreadData |
Macros | |
#define | OFFSET(x) offsetof(NoiseContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | NOISE_PARAMS(name, x, param) |
#define | RAND_N(range) ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0))) |
Functions | |
AVFILTER_DEFINE_CLASS (noise) | |
static av_cold int | init_noise (NoiseContext *n, int comp) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
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) |
static void | noise (uint8_t *dst, const uint8_t *src, int dst_linesize, int src_linesize, int width, int start, int end, NoiseContext *n, int comp) |
static int | filter_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *inpicref) |
static av_cold int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | noise_options [] |
static const int8_t | patt [4] = { -1, 0, 1, 0 } |
static const AVFilterPad | noise_inputs [] |
static const AVFilterPad | noise_outputs [] |
AVFilter | ff_vf_noise |
noise generator
Definition in file vf_noise.c.
#define OFFSET | ( | x | ) | offsetof(NoiseContext, x) |
Definition at line 42 of file vf_noise.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 43 of file vf_noise.c.
#define NOISE_PARAMS | ( | name, | |
x, | |||
param | |||
) |
Definition at line 45 of file vf_noise.c.
#define RAND_N | ( | range | ) | ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0))) |
Definition at line 69 of file vf_noise.c.
Referenced by init_noise().
AVFILTER_DEFINE_CLASS | ( | noise | ) |
|
static |
Definition at line 70 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 133 of file vf_noise.c.
|
static |
Definition at line 147 of file vf_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 164 of file vf_noise.c.
Referenced by init().
void ff_line_noise_avg_c | ( | uint8_t * | dst, |
const uint8_t * | src, | ||
int | len, | ||
const int8_t *const * | shift | ||
) |
Definition at line 177 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 189 of file vf_noise.c.
Referenced by filter_slice(), and init_noise().
|
static |
Definition at line 223 of file vf_noise.c.
Referenced by filter_frame().
|
static |
Definition at line 241 of file vf_noise.c.
|
static |
Definition at line 282 of file vf_noise.c.
|
static |
Definition at line 312 of file vf_noise.c.
|
static |
Definition at line 56 of file vf_noise.c.
|
static |
Definition at line 67 of file vf_noise.c.
Referenced by init_noise().
|
static |
Definition at line 321 of file vf_noise.c.
|
static |
Definition at line 331 of file vf_noise.c.
AVFilter ff_vf_noise |
Definition at line 339 of file vf_noise.c.