FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
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 "libavutil/x86/asm.h"
#include "libvo/fastmemcpy.h"

Go to the source code of this file.

Data Structures

struct  metrics
 
struct  frameinfo
 
struct  vf_priv_s
 

Macros

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

Macro Definition Documentation

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

Definition at line 245 of file vf_ivtc.c.

Referenced by block_diffs_C().

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

Definition at line 249 of file vf_ivtc.c.

#define MAXUP (   a,
  b 
)    ((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 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.

Referenced by diff_fields().

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.

Referenced by foo().

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 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.

Referenced by put_image().

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

Definition at line 384 of file vf_ivtc.c.

Referenced by put_image().

static int do_put_image ( struct vf_instance *  vf,
mp_image_t dmpi 
)
static

Definition at line 429 of file vf_ivtc.c.

Referenced by put_image().

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

Definition at line 458 of file vf_ivtc.c.

Referenced by vf_open().

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

Definition at line 509 of file vf_ivtc.c.

Referenced by vf_open().

static void uninit ( struct vf_instance *  vf)
static

Definition at line 520 of file vf_ivtc.c.

Referenced by vf_open().

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

Definition at line 279 of file vf_ivtc.c.

Referenced by diff_planes(), and vf_open().

const vf_info_t ff_vf_info_ivtc
Initial value:
= {
"inverse telecine, take 2",
"ivtc",
"Rich Felker",
"",
}

Definition at line 543 of file vf_ivtc.c.