FFmpeg
|
#include "libavutil/emms.h"
#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 |
Used for passing data between threads. More... | |
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 [] |
const AVFilter | ff_vf_noise |
noise generator
Definition in file vf_noise.c.
#define OFFSET | ( | x | ) | offsetof(NoiseContext, x) |
Definition at line 43 of file vf_noise.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 44 of file vf_noise.c.
#define NOISE_PARAMS | ( | name, | |
x, | |||
param | |||
) |
Definition at line 46 of file vf_noise.c.
#define RAND_N | ( | range | ) | ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0))) |
Definition at line 70 of file vf_noise.c.
AVFILTER_DEFINE_CLASS | ( | noise | ) |
|
static |
Definition at line 71 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 134 of file vf_noise.c.
|
static |
Definition at line 149 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 166 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 179 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 191 of file vf_noise.c.
Referenced by ff_line_noise_c(), filter_slice(), and init_noise().
|
static |
Definition at line 225 of file vf_noise.c.
Referenced by filter_frame().
|
static |
Definition at line 243 of file vf_noise.c.
|
static |
Definition at line 285 of file vf_noise.c.
|
static |
Definition at line 316 of file vf_noise.c.
|
static |
Definition at line 57 of file vf_noise.c.
|
static |
Definition at line 68 of file vf_noise.c.
Referenced by filter_frame(), get_rdelta(), and init_noise().
|
static |
Definition at line 325 of file vf_noise.c.
const AVFilter ff_vf_noise |
Definition at line 334 of file vf_noise.c.