FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
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
 

Macros

#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 ff_vf_info_phase
 

Macro Definition Documentation

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

Definition at line 37 of file vf_phase.c.

Referenced by analyze_plane().

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

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 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 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 int put_image ( struct vf_instance *  vf,
mp_image_t mpi,
double  pts 
)
static

Definition at line 199 of file vf_phase.c.

Referenced by vf_open().

static void uninit ( struct vf_instance *  vf)
static

Definition at line 243 of file vf_phase.c.

Referenced by vf_open().

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

Definition at line 253 of file vf_phase.c.

Variable Documentation

const vf_info_t ff_vf_info_phase
Initial value:
=
{
"phase shift fields",
"phase",
"Ville Saari",
"",
}

Definition at line 295 of file vf_phase.c.