FFmpeg
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include "config.h"
#include "mp_msg.h"
#include "cpudetect.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"
#include "libavutil/mem.h"
#include "libavutil/x86/asm.h"
Go to the source code of this file.
Data Structures | |
struct | FilterParam |
struct | vf_priv_s |
Macros | |
#define | MAX_NOISE 4096 |
#define | MAX_SHIFT 1024 |
#define | MAX_RES (MAX_NOISE-MAX_SHIFT) |
#define | RAND_N(range) ((int) ((double)range*rand()/(RAND_MAX+1.0))) |
Functions | |
static void | lineNoise_C (uint8_t *dst, uint8_t *src, int8_t *noise, int len, int shift) |
static void | lineNoiseAvg_C (uint8_t *dst, uint8_t *src, int len, int8_t **shift) |
static int8_t * | initNoise (FilterParam *fp) |
static void | lineNoise_MMX (uint8_t *dst, uint8_t *src, int8_t *noise, int len, int shift) |
static void | lineNoiseAvg_MMX (uint8_t *dst, uint8_t *src, int len, int8_t **shift) |
static void | noise (uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int width, int height, FilterParam *fp) |
static int | config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt) |
static void | get_image (struct vf_instance *vf, mp_image_t *mpi) |
static int | put_image (struct vf_instance *vf, mp_image_t *mpi, double pts) |
static void | uninit (struct vf_instance *vf) |
static int | query_format (struct vf_instance *vf, unsigned int fmt) |
static void | parse (FilterParam *fp, char *args) |
static int | vf_open (vf_instance_t *vf, char *args) |
Variables | |
static void(* | lineNoise )(uint8_t *dst, uint8_t *src, int8_t *noise, int len, int shift) = lineNoise_C |
static void(* | lineNoiseAvg )(uint8_t *dst, uint8_t *src, int len, int8_t **shift) = lineNoiseAvg_C |
static int | nonTempRandShift_init |
static int | nonTempRandShift [MAX_RES] |
static int | patt [4] |
static const unsigned int | fmt_list [] |
const vf_info_t | ff_vf_info_noise |
#define MAX_NOISE 4096 |
Definition at line 42 of file vf_noise.c.
Referenced by initNoise().
#define MAX_SHIFT 1024 |
Definition at line 43 of file vf_noise.c.
Referenced by initNoise(), and noise().
Definition at line 44 of file vf_noise.c.
Referenced by initNoise().
#define RAND_N | ( | range | ) | ((int) ((double)range*rand()/(RAND_MAX+1.0))) |
Definition at line 79 of file vf_noise.c.
Referenced by initNoise().
|
inlinestatic |
Definition at line 207 of file vf_noise.c.
Referenced by lineNoise_MMX().
Definition at line 263 of file vf_noise.c.
Referenced by lineNoiseAvg_MMX().
|
static |
Definition at line 80 of file vf_noise.c.
Referenced by parse().
|
inlinestatic |
Definition at line 151 of file vf_noise.c.
Referenced by vf_open().
|
inlinestatic |
Definition at line 222 of file vf_noise.c.
Referenced by vf_open().
|
static |
Definition at line 276 of file vf_noise.c.
Referenced by initNoise(), and put_image().
|
static |
Definition at line 317 of file vf_noise.c.
Referenced by vf_open().
|
static |
Definition at line 324 of file vf_noise.c.
Referenced by vf_open().
|
static |
Definition at line 342 of file vf_noise.c.
Referenced by vf_open().
|
static |
Definition at line 371 of file vf_noise.c.
Referenced by vf_open().
|
static |
Definition at line 386 of file vf_noise.c.
Referenced by vf_open().
|
static |
Definition at line 397 of file vf_noise.c.
Referenced by vf_open().
|
static |
Definition at line 428 of file vf_noise.c.
|
static |
Definition at line 51 of file vf_noise.c.
Definition at line 52 of file vf_noise.c.
|
static |
Definition at line 72 of file vf_noise.c.
Referenced by initNoise().
|
static |
Definition at line 73 of file vf_noise.c.
Referenced by initNoise(), and noise().
|
static |
|
static |
Definition at line 421 of file vf_noise.c.
const vf_info_t ff_vf_info_noise |
Definition at line 466 of file vf_noise.c.