libavfilter/libmpcodecs/vf_phase.c File Reference

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

Defines

#define fixed_mode(p)   ((p)<=BOTTOM_FIRST)
#define diff(a, as, b, bs)   (t=((*a-b[bs])<<2)+a[as<<1]-b[-bs], t*t)

Enumerations

enum  mode {
  PROGRESSIVE, TOP_FIRST, BOTTOM_FIRST, TOP_FIRST_ANALYZE,
  BOTTOM_FIRST_ANALYZE, ANALYZE, FULL_ANALYZE, AUTO,
  AUTO_ANALYZE
}

Functions

static void do_plane (unsigned char *to, unsigned char *from, int w, int h, int ts, int fs, unsigned char **bufp, enum mode mode)
static enum mode analyze_plane (unsigned char *old, unsigned char *new, int w, int h, int os, int ns, enum mode mode, int verbose, int fields)
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

const vf_info_t vf_info_phase


Define Documentation

#define diff ( a,
as,
b,
bs   )     (t=((*a-b[bs])<<2)+a[as<<1]-b[-bs], t*t)

#define fixed_mode (  )     ((p)<=BOTTOM_FIRST)

Definition at line 37 of file vf_phase.c.

Referenced by analyze_plane().


Enumeration Type Documentation

enum mode

Enumerator:
PROGRESSIVE 
TOP_FIRST 
BOTTOM_FIRST 
TOP_FIRST_ANALYZE 
BOTTOM_FIRST_ANALYZE 
ANALYZE 
FULL_ANALYZE 
AUTO 
AUTO_ANALYZE 

Definition at line 33 of file vf_phase.c.


Function Documentation

static enum mode analyze_plane ( unsigned char *  old,
unsigned char *  new,
int  w,
int  h,
int  os,
int  ns,
enum mode  mode,
int  verbose,
int  fields 
) [static]

Definition at line 87 of file vf_phase.c.

Referenced by put_image().

static void do_plane ( unsigned char *  to,
unsigned char *  from,
int  w,
int  h,
int  ts,
int  fs,
unsigned char **  bufp,
enum mode  mode 
) [static]

Definition at line 51 of file vf_phase.c.

Referenced by put_image().

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

Definition at line 199 of file vf_phase.c.

static void uninit ( struct vf_instance vf  )  [static]

Definition at line 243 of file vf_phase.c.

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

Definition at line 251 of file vf_phase.c.


Variable Documentation

Initial value:

   {
   "phase shift fields",
   "phase",
   "Ville Saari",
   "",
   vf_open,
   NULL
   }

Definition at line 293 of file vf_phase.c.


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