libavfilter/libmpcodecs/vf_decimate.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.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"

Go to the source code of this file.

Data Structures

struct  vf_priv_s
 Stores persistant variables. More...

Functions

static int diff_C (unsigned char *old, unsigned char *new, int os, int ns)
static int diff_to_drop_plane (int hi, int lo, float frac, unsigned char *old, unsigned char *new, int w, int h, int os, int ns)
static int diff_to_drop (int hi, int lo, float frac, mp_image_t *old, mp_image_t *new)
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
static void uninit (struct vf_instance *vf)
static int vf_open (vf_instance_t *vf, char *args)

Variables

static int(* diff )(unsigned char *, unsigned char *, int, int)
const vf_info_t vf_info_decimate


Function Documentation

static int diff_C ( unsigned char *  old,
unsigned char *  new,
int  os,
int  ns 
) [static]

Definition at line 82 of file vf_decimate.c.

Referenced by vf_open().

static int diff_to_drop ( int  hi,
int  lo,
float  frac,
mp_image_t old,
mp_image_t new 
) [static]

Definition at line 115 of file vf_decimate.c.

Referenced by put_image().

static int diff_to_drop_plane ( int  hi,
int  lo,
float  frac,
unsigned char *  old,
unsigned char *  new,
int  w,
int  h,
int  os,
int  ns 
) [static]

Definition at line 97 of file vf_decimate.c.

Referenced by diff_to_drop().

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

Definition at line 131 of file vf_decimate.c.

static void uninit ( struct vf_instance vf  )  [static]

Definition at line 167 of file vf_decimate.c.

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

Definition at line 172 of file vf_decimate.c.


Variable Documentation

int(* diff)(unsigned char *, unsigned char *, int, int) [static]

Initial value:

 {
    "near-duplicate frame remover",
    "decimate",
    "Rich Felker",
    "",
    vf_open,
    NULL
}

Definition at line 191 of file vf_decimate.c.


Generated on Fri Oct 26 02:43:51 2012 for FFmpeg by  doxygen 1.5.8