FFmpeg
|
#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 [] |
static const AVFilterPad | noise_outputs [] |
const 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.
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 148 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 165 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 178 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 190 of file vf_noise.c.
Referenced by ff_line_noise_c(), filter_slice(), and init_noise().
|
static |
Definition at line 224 of file vf_noise.c.
Referenced by filter_frame().
|
static |
Definition at line 242 of file vf_noise.c.
|
static |
Definition at line 284 of file vf_noise.c.
|
static |
Definition at line 314 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 filter_frame(), get_rdelta(), and init_noise().
|
static |
Definition at line 323 of file vf_noise.c.
|
static |
Definition at line 332 of file vf_noise.c.
const AVFilter ff_vf_noise |
Definition at line 339 of file vf_noise.c.