FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
vf_divtc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include "config.h"
#include "mp_msg.h"
#include "cpudetect.h"
#include "libavutil/common.h"
#include "mpbswap.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
 

Functions

static int diff_C (unsigned char *old, unsigned char *new, int os, int ns)
 
static int diff_plane (unsigned char *old, unsigned char *new, int w, int h, int os, int ns, int arg)
 
static unsigned int checksum_plane (unsigned char *p, unsigned char *z, int w, int h, int s, int zs, int arg)
 
static int deghost_plane (unsigned char *d, unsigned char *s, int w, int h, int ds, int ss, int threshold)
 
static int copyop (unsigned char *d, unsigned char *s, int bpl, int h, int dstride, int sstride, int dummy)
 
static int imgop (int(*planeop)(unsigned char *, unsigned char *, int, int, int, int, int), mp_image_t *dst, mp_image_t *src, int arg)
 
static int match (struct vf_priv_s *p, int *diffs, int phase1, int phase2, double *strength)
 
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
 
static int analyze (struct vf_priv_s *p)
 
static int query_format (struct vf_instance *vf, unsigned int fmt)
 
static void uninit (struct vf_instance *vf)
 
static int vf_open (vf_instance_t *vf, char *args)
 

Variables

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

Function Documentation

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

Definition at line 96 of file vf_divtc.c.

Referenced by vf_open().

static int diff_plane ( unsigned char *  old,
unsigned char *  new,
int  w,
int  h,
int  os,
int  ns,
int  arg 
)
static

Definition at line 109 of file vf_divtc.c.

Referenced by put_image().

static unsigned int checksum_plane ( unsigned char *  p,
unsigned char *  z,
int  w,
int  h,
int  s,
int  zs,
int  arg 
)
static

Definition at line 143 of file vf_divtc.c.

Referenced by put_image().

static int deghost_plane ( unsigned char *  d,
unsigned char *  s,
int  w,
int  h,
int  ds,
int  ss,
int  threshold 
)
static

Definition at line 177 of file vf_divtc.c.

Referenced by put_image().

static int copyop ( unsigned char *  d,
unsigned char *  s,
int  bpl,
int  h,
int  dstride,
int  sstride,
int  dummy 
)
static

Definition at line 191 of file vf_divtc.c.

Referenced by put_image().

static int imgop ( int(*)(unsigned char *, unsigned char *, int, int, int, int, int)  planeop,
mp_image_t dst,
mp_image_t src,
int  arg 
)
static

Definition at line 196 of file vf_divtc.c.

Referenced by put_image().

static int match ( struct vf_priv_s p,
int *  diffs,
int  phase1,
int  phase2,
double *  strength 
)
static
static int put_image ( struct vf_instance *  vf,
mp_image_t mpi,
double  pts 
)
static

Definition at line 260 of file vf_divtc.c.

Referenced by vf_open().

static int analyze ( struct vf_priv_s p)
static

Definition at line 383 of file vf_divtc.c.

Referenced by vf_open().

static int query_format ( struct vf_instance *  vf,
unsigned int  fmt 
)
static

Definition at line 571 of file vf_divtc.c.

Referenced by vf_open().

static void uninit ( struct vf_instance *  vf)
static

Definition at line 586 of file vf_divtc.c.

Referenced by vf_open().

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

Definition at line 598 of file vf_divtc.c.

Variable Documentation

const vf_info_t ff_vf_info_divtc
Initial value:
=
{
"inverse telecine for deinterlaced video",
"divtc",
"Ville Saari",
"",
}

Definition at line 37 of file vf_divtc.c.

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

Definition at line 107 of file vf_divtc.c.

Referenced by diff_plane(), and vf_open().