libavfilter/libmpcodecs/vf_ivtc.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  metrics
struct  frameinfo
struct  vf_priv_s

Defines

#define MAG(a)   (((a)^((a)>>31))-((a)>>31))
#define LOWPASS(s)   ((s)[0])
#define MAXUP(a, b)   ((a) = ((a)>(b)) ? (a) : (b))

Enumerations

enum  { F_DROP, F_MERGE, F_NEXT, F_SHOW }

Functions

static void block_diffs_C (struct metrics *m, unsigned char *old, unsigned char *new, int os, int ns)
static void diff_planes (struct frameinfo *fi, unsigned char *old, unsigned char *new, int w, int h, int os, int ns)
static void diff_fields (struct frameinfo *fi, mp_image_t *old, mp_image_t *new)
static void stats (struct frameinfo *f)
static int foo (struct vf_priv_s *p, mp_image_t *new, mp_image_t *cur)
static void copy_image (mp_image_t *dmpi, mp_image_t *mpi, int field)
static int do_put_image (struct vf_instance *vf, mp_image_t *dmpi)
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 uninit (struct vf_instance *vf)
static int vf_open (vf_instance_t *vf, char *args)

Variables

static void(* block_diffs )(struct metrics *, unsigned char *, unsigned char *, int, int)
const vf_info_t vf_info_ivtc


Define Documentation

#define LOWPASS (  )     ((s)[0])

Definition at line 249 of file vf_ivtc.c.

#define MAG (  )     (((a)^((a)>>31))-((a)>>31))

Definition at line 245 of file vf_ivtc.c.

Referenced by block_diffs_C().

#define MAXUP ( a,
 )     ((a) = ((a)>(b)) ? (a) : (b))

Definition at line 281 of file vf_ivtc.c.

Referenced by diff_planes().


Enumeration Type Documentation

anonymous enum

Enumerator:
F_DROP 
F_MERGE 
F_NEXT 
F_SHOW 

Definition at line 54 of file vf_ivtc.c.


Function Documentation

static void block_diffs_C ( struct metrics m,
unsigned char *  old,
unsigned char *  new,
int  os,
int  ns 
) [static]

Definition at line 252 of file vf_ivtc.c.

Referenced by vf_open().

static void copy_image ( mp_image_t dmpi,
mp_image_t mpi,
int  field 
) [static]

Definition at line 384 of file vf_ivtc.c.

static void diff_fields ( struct frameinfo fi,
mp_image_t old,
mp_image_t new 
) [static]

Definition at line 324 of file vf_ivtc.c.

static void diff_planes ( struct frameinfo fi,
unsigned char *  old,
unsigned char *  new,
int  w,
int  h,
int  os,
int  ns 
) [static]

Definition at line 283 of file vf_ivtc.c.

static int do_put_image ( struct vf_instance vf,
mp_image_t dmpi 
) [static]

Definition at line 429 of file vf_ivtc.c.

static int foo ( struct vf_priv_s p,
mp_image_t new,
mp_image_t cur 
) [static]

Definition at line 336 of file vf_ivtc.c.

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

Definition at line 458 of file vf_ivtc.c.

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

Definition at line 509 of file vf_ivtc.c.

static void stats ( struct frameinfo f  )  [static]

Definition at line 330 of file vf_ivtc.c.

Referenced by ff_rtp_check_and_send_back_rr(), foo(), queue_frames(), and X264_init().

static void uninit ( struct vf_instance vf  )  [static]

Definition at line 520 of file vf_ivtc.c.

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

Definition at line 525 of file vf_ivtc.c.


Variable Documentation

void(* block_diffs)(struct metrics *, unsigned char *, unsigned char *, int, int) [static]

Referenced by diff_planes(), and vf_open().

Initial value:

 {
    "inverse telecine, take 2",
    "ivtc",
    "Rich Felker",
    "",
    vf_open,
    NULL
}

Definition at line 543 of file vf_ivtc.c.


Generated on Fri Oct 26 02:48:01 2012 for FFmpeg by  doxygen 1.5.8