#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include "mp_msg.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
Go to the source code of this file.
Data Structures | |
struct | vf_priv_s |
Stores persistant variables. More... | |
Defines | |
#define | PARAM1_DEFAULT 4.0 |
#define | PARAM2_DEFAULT 3.0 |
#define | PARAM3_DEFAULT 6.0 |
#define | LowPass(Prev, Curr, Coef) (Curr + Coef[Prev - Curr]) |
#define | ABS(A) ( (A) > 0 ? (A) : -(A) ) |
Functions | |
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 | uninit (struct vf_instance *vf) |
static void | deNoise (unsigned char *Frame, unsigned char *FramePrev, unsigned char *FrameDest, unsigned char *LineAnt, int W, int H, int sStride, int pStride, int dStride, int *Horizontal, int *Vertical, int *Temporal) |
static int | put_image (struct vf_instance *vf, mp_image_t *mpi, double pts) |
static int | query_format (struct vf_instance *vf, unsigned int fmt) |
static void | PrecalcCoefs (int *Ct, double Dist25) |
static int | vf_open (vf_instance_t *vf, char *args) |
Variables | |
const vf_info_t | vf_info_denoise3d |
#define ABS | ( | A | ) | ( (A) > 0 ? (A) : -(A) ) |
Definition at line 166 of file vf_denoise3d.c.
#define LowPass | ( | Prev, | |||
Curr, | |||||
Coef | ) | (Curr + Coef[Prev - Curr]) |
#define PARAM1_DEFAULT 4.0 |
#define PARAM2_DEFAULT 3.0 |
#define PARAM3_DEFAULT 6.0 |
static int config | ( | struct vf_instance * | vf, | |
int | width, | |||
int | height, | |||
int | d_width, | |||
int | d_height, | |||
unsigned int | flags, | |||
unsigned int | outfmt | |||
) | [static] |
Definition at line 48 of file vf_denoise3d.c.
static void deNoise | ( | unsigned char * | Frame, | |
unsigned char * | FramePrev, | |||
unsigned char * | FrameDest, | |||
unsigned char * | LineAnt, | |||
int | W, | |||
int | H, | |||
int | sStride, | |||
int | pStride, | |||
int | dStride, | |||
int * | Horizontal, | |||
int * | Vertical, | |||
int * | Temporal | |||
) | [static] |
static void PrecalcCoefs | ( | int * | Ct, | |
double | Dist25 | |||
) | [static] |
static int put_image | ( | struct vf_instance * | vf, | |
mp_image_t * | mpi, | |||
double | pts | |||
) | [static] |
Definition at line 112 of file vf_denoise3d.c.
static int query_format | ( | struct vf_instance * | vf, | |
unsigned int | fmt | |||
) | [static] |
Definition at line 150 of file vf_denoise3d.c.
static void uninit | ( | struct vf_instance * | vf | ) | [static] |
Definition at line 61 of file vf_denoise3d.c.
static int vf_open | ( | vf_instance_t * | vf, | |
char * | args | |||
) | [static] |
Definition at line 185 of file vf_denoise3d.c.
const vf_info_t vf_info_denoise3d |
Initial value:
Definition at line 259 of file vf_denoise3d.c.