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 "libavutil/x86/asm.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | FilterParams |
filter data More... | |
struct | NoiseContext |
struct | ThreadData |
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 |
#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))) |
#define | ASMALIGN(ZEROBITS) ".p2align " #ZEROBITS "\n\t" |
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) |
static void | line_noise_c (uint8_t *dst, const uint8_t *src, int8_t *noise, int len, int shift) |
static void | line_noise_mmx (uint8_t *dst, const uint8_t *src, int8_t *noise, int len, int shift) |
static void | line_noise_mmxext (uint8_t *dst, const uint8_t *src, int8_t *noise, int len, int shift) |
static void | line_noise_avg_c (uint8_t *dst, const uint8_t *src, int len, int8_t **shift) |
static void | line_noise_avg_mmx (uint8_t *dst, const uint8_t *src, int len, int8_t **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 | avfilter_vf_noise |
noise generator
Definition in file vf_noise.c.
#define MAX_NOISE 5120 |
Definition at line 38 of file vf_noise.c.
Referenced by init_noise().
#define MAX_SHIFT 1024 |
Definition at line 39 of file vf_noise.c.
Referenced by init_noise(), and noise().
Definition at line 40 of file vf_noise.c.
Referenced by init_noise(), and noise().
#define NOISE_UNIFORM 1 |
Definition at line 42 of file vf_noise.c.
Referenced by init_noise().
#define NOISE_TEMPORAL 2 |
Definition at line 43 of file vf_noise.c.
Referenced by noise().
#define NOISE_AVERAGED 8 |
Definition at line 44 of file vf_noise.c.
Referenced by init_noise(), and noise().
#define NOISE_PATTERN 16 |
Definition at line 45 of file vf_noise.c.
Referenced by init_noise().
#define OFFSET | ( | x | ) | offsetof(NoiseContext, x) |
Definition at line 73 of file vf_noise.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 74 of file vf_noise.c.
#define NOISE_PARAMS | ( | name, | |
x, | |||
param | |||
) |
Definition at line 76 of file vf_noise.c.
#define RAND_N | ( | range | ) | ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0))) |
Definition at line 100 of file vf_noise.c.
Referenced by init_noise().
#define ASMALIGN | ( | ZEROBITS | ) | ".p2align " #ZEROBITS "\n\t" |
Definition at line 215 of file vf_noise.c.
Referenced by line_noise_avg_mmx(), line_noise_mmx(), and line_noise_mmxext().
AVFILTER_DEFINE_CLASS | ( | noise | ) |
|
static |
Definition at line 101 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 170 of file vf_noise.c.
|
static |
Definition at line 185 of file vf_noise.c.
|
inlinestatic |
Definition at line 202 of file vf_noise.c.
Referenced by init(), line_noise_mmx(), and line_noise_mmxext().
|
static |
Definition at line 217 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 247 of file vf_noise.c.
Referenced by init().
|
inlinestatic |
Definition at line 277 of file vf_noise.c.
Referenced by init(), and line_noise_avg_mmx().
|
inlinestatic |
Definition at line 289 of file vf_noise.c.
Referenced by init().
|
static |
Definition at line 333 of file vf_noise.c.
Referenced by filter_slice(), and init_noise().
|
static |
Definition at line 367 of file vf_noise.c.
Referenced by filter_frame().
|
static |
Definition at line 385 of file vf_noise.c.
|
static |
Definition at line 413 of file vf_noise.c.
|
static |
Definition at line 450 of file vf_noise.c.
|
static |
Definition at line 87 of file vf_noise.c.
|
static |
Definition at line 98 of file vf_noise.c.
Referenced by init_noise().
|
static |
Definition at line 459 of file vf_noise.c.
|
static |
Definition at line 469 of file vf_noise.c.
AVFilter avfilter_vf_noise |
Definition at line 477 of file vf_noise.c.