FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
vf.h File Reference
#include "mp_image.h"
#include "mpc_info.h"
#include "vfcap.h"

Go to the source code of this file.

Data Structures

struct  vf_info_t
 
struct  vf_image_context_t
 
struct  vf_format_context_t
 
struct  vf_instance_t
 
struct  vf_equalizer_t
 

Macros

#define NUM_NUMBERED_MPI   50
 
#define VFCTRL_QUERY_MAX_PP_LEVEL   4 /* test for postprocessing support (max level) */
 
#define VFCTRL_SET_PP_LEVEL   5 /* set postprocessing level */
 
#define VFCTRL_SET_EQUALIZER   6 /* set color options (brightness,contrast etc) */
 
#define VFCTRL_GET_EQUALIZER   8 /* gset color options (brightness,contrast etc) */
 
#define VFCTRL_DRAW_OSD   7
 
#define VFCTRL_CHANGE_RECTANGLE   9 /* Change the rectangle boundaries */
 
#define VFCTRL_FLIP_PAGE   10 /* Tell the vo to flip pages */
 
#define VFCTRL_DUPLICATE_FRAME   11 /* For encoding - encode zero-change frame */
 
#define VFCTRL_SKIP_NEXT_FRAME   12 /* For encoding - drop the next frame that passes through */
 
#define VFCTRL_FLUSH_FRAMES   13 /* For encoding - flush delayed frames */
 
#define VFCTRL_SCREENSHOT   14 /* Make a screenshot */
 
#define VFCTRL_INIT_EOSD   15 /* Select EOSD renderer */
 
#define VFCTRL_DRAW_EOSD   16 /* Render EOSD */
 
#define VFCTRL_GET_PTS   17 /* Return last pts value that reached vf_vo*/
 
#define VFCTRL_SET_DEINTERLACE   18 /* Set deinterlacing status */
 
#define VFCTRL_GET_DEINTERLACE   19 /* Get deinterlacing status */
 
#define MP_NOPTS_VALUE   (-1LL<<63)
 

Functions

void ff_vf_mpi_clear (mp_image_t *mpi, int x0, int y0, int w, int h)
 
mp_image_tff_vf_get_image (vf_instance_t *vf, unsigned int outfmt, int mp_imgtype, int mp_imgflag, int w, int h)
 
vf_instance_tvf_open_plugin (const vf_info_t *const *filter_list, vf_instance_t *next, const char *name, char **args)
 
vf_instance_tvf_open_filter (vf_instance_t *next, const char *name, char **args)
 
vf_instance_tff_vf_add_before_vo (vf_instance_t **vf, char *name, char **args)
 
vf_instance_tvf_open_encoder (vf_instance_t *next, const char *name, char *args)
 
unsigned int ff_vf_match_csp (vf_instance_t **vfp, const unsigned int *list, unsigned int preferred)
 
void ff_vf_clone_mpi_attributes (mp_image_t *dst, mp_image_t *src)
 
void ff_vf_queue_frame (vf_instance_t *vf, int(*)(vf_instance_t *))
 
int ff_vf_output_queued_frame (vf_instance_t *vf)
 
int ff_vf_next_config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
 
int ff_vf_next_control (struct vf_instance *vf, int request, void *data)
 
void ff_vf_extra_flip (struct vf_instance *vf)
 
int ff_vf_next_query_format (struct vf_instance *vf, unsigned int fmt)
 
int ff_vf_next_put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
 
void ff_vf_next_draw_slice (struct vf_instance *vf, unsigned char **src, int *stride, int w, int h, int x, int y)
 
vf_instance_tff_append_filters (vf_instance_t *last)
 
void ff_vf_uninit_filter (vf_instance_t *vf)
 
void ff_vf_uninit_filter_chain (vf_instance_t *vf)
 
int ff_vf_config_wrapper (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
 
static int norm_qscale (int qscale, int type)
 

Macro Definition Documentation

#define NUM_NUMBERED_MPI   50

Definition at line 41 of file vf.h.

Referenced by ff_vf_get_image().

#define VFCTRL_QUERY_MAX_PP_LEVEL   4 /* test for postprocessing support (max level) */

Definition at line 98 of file vf.h.

Referenced by control().

#define VFCTRL_SET_PP_LEVEL   5 /* set postprocessing level */

Definition at line 99 of file vf.h.

Referenced by control().

#define VFCTRL_SET_EQUALIZER   6 /* set color options (brightness,contrast etc) */

Definition at line 100 of file vf.h.

Referenced by control().

#define VFCTRL_GET_EQUALIZER   8 /* gset color options (brightness,contrast etc) */

Definition at line 101 of file vf.h.

Referenced by control().

#define VFCTRL_DRAW_OSD   7

Definition at line 102 of file vf.h.

#define VFCTRL_CHANGE_RECTANGLE   9 /* Change the rectangle boundaries */

Definition at line 103 of file vf.h.

#define VFCTRL_FLIP_PAGE   10 /* Tell the vo to flip pages */

Definition at line 104 of file vf.h.

#define VFCTRL_DUPLICATE_FRAME   11 /* For encoding - encode zero-change frame */

Definition at line 105 of file vf.h.

#define VFCTRL_SKIP_NEXT_FRAME   12 /* For encoding - drop the next frame that passes through */

Definition at line 106 of file vf.h.

#define VFCTRL_FLUSH_FRAMES   13 /* For encoding - flush delayed frames */

Definition at line 107 of file vf.h.

#define VFCTRL_SCREENSHOT   14 /* Make a screenshot */

Definition at line 108 of file vf.h.

#define VFCTRL_INIT_EOSD   15 /* Select EOSD renderer */

Definition at line 109 of file vf.h.

#define VFCTRL_DRAW_EOSD   16 /* Render EOSD */

Definition at line 110 of file vf.h.

#define VFCTRL_GET_PTS   17 /* Return last pts value that reached vf_vo*/

Definition at line 111 of file vf.h.

#define VFCTRL_SET_DEINTERLACE   18 /* Set deinterlacing status */

Definition at line 112 of file vf.h.

#define VFCTRL_GET_DEINTERLACE   19 /* Get deinterlacing status */

Definition at line 113 of file vf.h.

#define MP_NOPTS_VALUE   (-1LL<<63)

Definition at line 118 of file vf.h.

Referenced by ff_vf_next_put_image(), filter_frame(), and put_image().

Function Documentation

void ff_vf_mpi_clear ( mp_image_t mpi,
int  x0,
int  y0,
int  w,
int  h 
)

Definition at line 251 of file vf_mp.c.

Referenced by ff_vf_get_image().

mp_image_t* ff_vf_get_image ( vf_instance_t vf,
unsigned int  outfmt,
int  mp_imgtype,
int  mp_imgflag,
int  w,
int  h 
)

Definition at line 304 of file vf_mp.c.

Referenced by get_image(), and put_image().

vf_instance_t* vf_open_plugin ( const vf_info_t *const *  filter_list,
vf_instance_t next,
const char *  name,
char **  args 
)
vf_instance_t* vf_open_filter ( vf_instance_t next,
const char *  name,
char **  args 
)

Referenced by ff_vf_next_config().

vf_instance_t* ff_vf_add_before_vo ( vf_instance_t **  vf,
char *  name,
char **  args 
)
vf_instance_t* vf_open_encoder ( vf_instance_t next,
const char *  name,
char *  args 
)
unsigned int ff_vf_match_csp ( vf_instance_t **  vfp,
const unsigned int *  list,
unsigned int  preferred 
)

Definition at line 300 of file vf_mp.c.

void ff_vf_clone_mpi_attributes ( mp_image_t dst,
mp_image_t src 
)

Definition at line 217 of file vf_mp.c.

Referenced by put_image().

void ff_vf_queue_frame ( vf_instance_t vf,
int(*)(vf_instance_t *)   
)
int ff_vf_output_queued_frame ( vf_instance_t vf)
int ff_vf_next_config ( struct vf_instance *  vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
)

Definition at line 508 of file vf_mp.c.

Referenced by config(), and init().

int ff_vf_next_control ( struct vf_instance *  vf,
int  request,
void data 
)

Definition at line 537 of file vf_mp.c.

Referenced by control(), and init().

void ff_vf_extra_flip ( struct vf_instance *  vf)
int ff_vf_next_query_format ( struct vf_instance *  vf,
unsigned int  fmt 
)

Definition at line 295 of file vf_mp.c.

Referenced by query_format().

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

Definition at line 461 of file vf_mp.c.

Referenced by init(), and put_image().

void ff_vf_next_draw_slice ( struct vf_instance *  vf,
unsigned char **  src,
int *  stride,
int  w,
int  h,
int  x,
int  y 
)

Definition at line 228 of file vf_mp.c.

vf_instance_t* ff_append_filters ( vf_instance_t last)
void ff_vf_uninit_filter ( vf_instance_t vf)
void ff_vf_uninit_filter_chain ( vf_instance_t vf)
int ff_vf_config_wrapper ( struct vf_instance *  vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
)
static int norm_qscale ( int  qscale,
int  type 
)
inlinestatic

Definition at line 154 of file vf.h.

Referenced by filter().