libavfilter/libmpcodecs/vf_hqdn3d.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
 Stores persistant variables. More...

Defines

#define PARAM1_DEFAULT   4.0
#define PARAM2_DEFAULT   3.0
#define PARAM3_DEFAULT   6.0
#define ABS(A)   ( (A) > 0 ? (A) : -(A) )

Functions

static void uninit (struct vf_instance *vf)
static int config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
static unsigned int LowPassMul (unsigned int PrevMul, unsigned int CurrMul, int *Coef)
static void deNoiseTemporal (unsigned char *Frame, unsigned char *FrameDest, unsigned short *FrameAnt, int W, int H, int sStride, int dStride, int *Temporal)
static void deNoiseSpacial (unsigned char *Frame, unsigned char *FrameDest, unsigned int *LineAnt, int W, int H, int sStride, int dStride, int *Horizontal, int *Vertical)
static void deNoise (unsigned char *Frame, unsigned char *FrameDest, unsigned int *LineAnt, unsigned short **FrameAntPtr, int W, int H, int sStride, 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_hqdn3d


Define Documentation

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

Definition at line 262 of file vf_hqdn3d.c.

#define PARAM1_DEFAULT   4.0

Definition at line 32 of file vf_hqdn3d.c.

#define PARAM2_DEFAULT   3.0

Definition at line 33 of file vf_hqdn3d.c.

#define PARAM3_DEFAULT   6.0

Definition at line 34 of file vf_hqdn3d.c.


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]

Definition at line 60 of file vf_hqdn3d.c.

static void deNoise ( unsigned char *  Frame,
unsigned char *  FrameDest,
unsigned int *  LineAnt,
unsigned short **  FrameAntPtr,
int  W,
int  H,
int  sStride,
int  dStride,
int *  Horizontal,
int *  Vertical,
int *  Temporal 
) [static]

Definition at line 139 of file vf_hqdn3d.c.

static void deNoiseSpacial ( unsigned char *  Frame,
unsigned char *  FrameDest,
unsigned int *  LineAnt,
int  W,
int  H,
int  sStride,
int  dStride,
int *  Horizontal,
int *  Vertical 
) [static]

Definition at line 99 of file vf_hqdn3d.c.

Referenced by deNoise().

static void deNoiseTemporal ( unsigned char *  Frame,
unsigned char *  FrameDest,
unsigned short *  FrameAnt,
int  W,
int  H,
int  sStride,
int  dStride,
int *  Temporal 
) [static]

Definition at line 77 of file vf_hqdn3d.c.

Referenced by deNoise().

static unsigned int LowPassMul ( unsigned int  PrevMul,
unsigned int  CurrMul,
int *  Coef 
) [inline, static]

Definition at line 70 of file vf_hqdn3d.c.

Referenced by deNoise(), deNoiseSpacial(), and deNoiseTemporal().

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

Definition at line 264 of file vf_hqdn3d.c.

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

Definition at line 211 of file vf_hqdn3d.c.

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

Definition at line 246 of file vf_hqdn3d.c.

static void uninit ( struct vf_instance vf  )  [static]

Definition at line 47 of file vf_hqdn3d.c.

static int vf_open ( vf_instance_t vf,
char *  args 
) [static]

Definition at line 282 of file vf_hqdn3d.c.


Variable Documentation

Initial value:

 {
    "High Quality 3D Denoiser",
    "hqdn3d",
    "Daniel Moreno & A'rpi",
    "",
    vf_open,
    NULL
}

Definition at line 364 of file vf_hqdn3d.c.


Generated on Fri Oct 26 02:46:12 2012 for FFmpeg by  doxygen 1.5.8