libavfilter/libmpcodecs/vf_denoise3d.c File Reference

#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

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 Documentation

#define ABS (  )     ( (A) > 0 ? (A) : -(A) )

Definition at line 166 of file vf_denoise3d.c.

#define LowPass ( Prev,
Curr,
Coef   )     (Curr + Coef[Prev - Curr])

Definition at line 66 of file vf_denoise3d.c.

Referenced by deNoise().

#define PARAM1_DEFAULT   4.0

Definition at line 32 of file vf_denoise3d.c.

Referenced by init(), and vf_open().

#define PARAM2_DEFAULT   3.0

Definition at line 33 of file vf_denoise3d.c.

Referenced by init(), and vf_open().

#define PARAM3_DEFAULT   6.0

Definition at line 34 of file vf_denoise3d.c.

Referenced by init(), and vf_open().


Function Documentation

static int config ( struct vf_instance vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
) [static]

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]

Definition at line 68 of file vf_denoise3d.c.

Referenced by put_image().

static void PrecalcCoefs ( int Ct,
double  Dist25 
) [static]

Definition at line 168 of file vf_denoise3d.c.

Referenced by vf_open().

static int put_image ( struct vf_instance vf,
mp_image_t mpi,
double  pts 
) [static]

Definition at line 112 of file vf_denoise3d.c.

Referenced by control(), open(), and vf_open().

static int query_format ( struct vf_instance vf,
unsigned int  fmt 
) [static]

Definition at line 150 of file vf_denoise3d.c.

Referenced by vf_open().

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.


Variable Documentation

Initial value:

 {
    "3D Denoiser (variable lowpass filter)",
    "denoise3d",
    "Daniel Moreno",
    "",
    vf_open,
    NULL
}

Definition at line 259 of file vf_denoise3d.c.


Generated on Fri Oct 26 02:50:09 2012 for FFmpeg by  doxygen 1.5.8