vf_ilpack.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "config.h"
#include "mp_msg.h"
#include "cpudetect.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libavutil/attributes.h"
#include "libavutil/x86/asm.h"
Include dependency graph for vf_ilpack.c:

Go to the source code of this file.

Data Structures

struct  vf_priv_s
 

Typedefs

typedef voidpack_func_t) (unsigned char *dst, unsigned char *y, unsigned char *u, unsigned char *v, int w, int us, int vs)
 

Functions

static void pack_nn_C (unsigned char *dst, unsigned char *y, unsigned char *u, unsigned char *v, int w, int av_unused us, int av_unused vs)
 
static void pack_li_0_C (unsigned char *dst, unsigned char *y, unsigned char *u, unsigned char *v, int w, int us, int vs)
 
static void pack_li_1_C (unsigned char *dst, unsigned char *y, unsigned char *u, unsigned char *v, int w, int us, int vs)
 
static void ilpack (unsigned char *dst, unsigned char *src[3], int dststride, int srcstride[3], int w, int h, pack_func_t *pack[2])
 
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
 
static int config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
 
static int query_format (struct vf_instance *vf, unsigned int fmt)
 
static int vf_open (vf_instance_t *vf, char *args)
 

Variables

static pack_func_tpack_nn
 
static pack_func_tpack_li_0
 
static pack_func_tpack_li_1
 
const vf_info_t ff_vf_info_ilpack
 

Typedef Documentation

typedef void( pack_func_t) (unsigned char *dst, unsigned char *y, unsigned char *u, unsigned char *v, int w, int us, int vs)

Definition at line 34 of file vf_ilpack.c.

Function Documentation

static int config ( struct vf_instance vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
)
static

Definition at line 390 of file vf_ilpack.c.

Referenced by vf_open().

static void ilpack ( unsigned char *  dst,
unsigned char *  src[3],
int  dststride,
int  srcstride[3],
int  w,
int  h,
pack_func_t pack[2] 
)
static

Definition at line 340 of file vf_ilpack.c.

Referenced by put_image().

static void pack_li_0_C ( unsigned char *  dst,
unsigned char *  y,
unsigned char *  u,
unsigned char *  v,
int  w,
int  us,
int  vs 
)
static

Definition at line 55 of file vf_ilpack.c.

Referenced by pack_li_1_C(), and vf_open().

static void pack_li_1_C ( unsigned char *  dst,
unsigned char *  y,
unsigned char *  u,
unsigned char *  v,
int  w,
int  us,
int  vs 
)
static

Definition at line 68 of file vf_ilpack.c.

Referenced by vf_open().

static void pack_nn_C ( unsigned char *  dst,
unsigned char *  y,
unsigned char *  u,
unsigned char *  v,
int  w,
int av_unused  us,
int av_unused  vs 
)
static

Definition at line 42 of file vf_ilpack.c.

Referenced by pack_li_1_C(), and vf_open().

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

Definition at line 376 of file vf_ilpack.c.

Referenced by vf_open().

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

Definition at line 399 of file vf_ilpack.c.

Referenced by vf_open().

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

Definition at line 411 of file vf_ilpack.c.

Variable Documentation

const vf_info_t ff_vf_info_ilpack
Initial value:
= {
"4:2:0 planar -> 4:2:2 packed reinterlacer",
"ilpack",
"Richard Felker",
"",
}
static int vf_open(vf_instance_t *vf, char *args)
Definition: vf_ilpack.c:411
NULL
Definition: eval.c:55

Definition at line 451 of file vf_ilpack.c.

pack_func_t* pack_li_0
static

Definition at line 337 of file vf_ilpack.c.

Referenced by vf_open().

pack_func_t* pack_li_1
static

Definition at line 338 of file vf_ilpack.c.

Referenced by vf_open().

pack_func_t* pack_nn
static

Definition at line 336 of file vf_ilpack.c.

Referenced by ilpack(), and vf_open().