libavfilter/vf_mp.c File Reference

#include "avfilter.h"
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "libmpcodecs/vf.h"
#include "libmpcodecs/img_format.h"
#include "libmpcodecs/cpudetect.h"
#include "libmpcodecs/vd_ffmpeg.h"
#include "libmpcodecs/vf_scale.h"
#include "libmpcodecs/libvo/fastmemcpy.h"
#include "libswscale/swscale.h"

Go to the source code of this file.

Data Structures

struct  MPContext

Defines

#define CLEAR_PACKEDYUV_PATTERN   0x80008000
#define CLEAR_PACKEDYUV_PATTERN_SWAPPED   0x00800080

Functions

static void sws_getFlagsAndFilterFromCmdLine (int *flags, SwsFilter **srcFilterParam, SwsFilter **dstFilterParam)
struct SwsContextsws_getContextFromCmdLine (int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat)
void mp_msg (int mod, int lev, const char *format,...)
int mp_msg_test (int mod, int lev)
void init_avcodec (void)
void vf_clone_mpi_attributes (mp_image_t *dst, mp_image_t *src)
void vf_next_draw_slice (struct vf_instance *vf, unsigned char **src, int *stride, int w, int h, int x, int y)
void vf_mpi_clear (mp_image_t *mpi, int x0, int y0, int w, int h)
int vf_next_query_format (struct vf_instance *vf, unsigned int fmt)
unsigned int vf_match_csp (vf_instance_t **vfp, const unsigned int *list, unsigned int preferred)
mp_image_tvf_get_image (vf_instance_t *vf, unsigned int outfmt, int mp_imgtype, int mp_imgflag, int w, int h)
int vf_next_put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
int vf_next_config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int voflags, unsigned int outfmt)
int vf_next_control (struct vf_instance *vf, int request, void *data)
static int vf_default_query_format (struct vf_instance *vf, unsigned int fmt)
static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
static int query_formats (AVFilterContext *ctx)
static int config_inprops (AVFilterLink *inlink)
static int config_outprops (AVFilterLink *outlink)
static int request_frame (AVFilterLink *outlink)
static void start_frame (AVFilterLink *inlink, AVFilterBufferRef *picref)
static void null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)
static void end_frame (AVFilterLink *inlink)

Variables

struct {
   int   fmt
   enum PixelFormat   pix_fmt
conversion_map []
const vf_info_t vf_info_vo
const vf_info_t vf_info_rectangle
const vf_info_t vf_info_bmovl
const vf_info_t vf_info_crop
const vf_info_t vf_info_expand
const vf_info_t vf_info_pp
const vf_info_t vf_info_scale
const vf_info_t vf_info_format
const vf_info_t vf_info_noformat
const vf_info_t vf_info_flip
const vf_info_t vf_info_rotate
const vf_info_t vf_info_mirror
const vf_info_t vf_info_palette
const vf_info_t vf_info_lavc
const vf_info_t vf_info_zrmjpeg
const vf_info_t vf_info_dvbscale
const vf_info_t vf_info_cropdetect
const vf_info_t vf_info_test
const vf_info_t vf_info_noise
const vf_info_t vf_info_yvu9
const vf_info_t vf_info_lavcdeint
const vf_info_t vf_info_eq
const vf_info_t vf_info_eq2
const vf_info_t vf_info_gradfun
const vf_info_t vf_info_halfpack
const vf_info_t vf_info_dint
const vf_info_t vf_info_1bpp
const vf_info_t vf_info_2xsai
const vf_info_t vf_info_unsharp
const vf_info_t vf_info_swapuv
const vf_info_t vf_info_il
const vf_info_t vf_info_fil
const vf_info_t vf_info_boxblur
const vf_info_t vf_info_sab
const vf_info_t vf_info_smartblur
const vf_info_t vf_info_perspective
const vf_info_t vf_info_down3dright
const vf_info_t vf_info_field
const vf_info_t vf_info_denoise3d
const vf_info_t vf_info_hqdn3d
const vf_info_t vf_info_detc
const vf_info_t vf_info_telecine
const vf_info_t vf_info_tinterlace
const vf_info_t vf_info_tfields
const vf_info_t vf_info_ivtc
const vf_info_t vf_info_ilpack
const vf_info_t vf_info_dsize
const vf_info_t vf_info_decimate
const vf_info_t vf_info_softpulldown
const vf_info_t vf_info_pullup
const vf_info_t vf_info_filmdint
const vf_info_t vf_info_framestep
const vf_info_t vf_info_tile
const vf_info_t vf_info_delogo
const vf_info_t vf_info_remove_logo
 Meta data about our filter.
const vf_info_t vf_info_hue
const vf_info_t vf_info_spp
const vf_info_t vf_info_uspp
const vf_info_t vf_info_fspp
const vf_info_t vf_info_pp7
const vf_info_t vf_info_yuvcsp
const vf_info_t vf_info_kerndeint
const vf_info_t vf_info_rgbtest
const vf_info_t vf_info_qp
const vf_info_t vf_info_phase
const vf_info_t vf_info_divtc
const vf_info_t vf_info_harddup
const vf_info_t vf_info_softskip
const vf_info_t vf_info_screenshot
const vf_info_t vf_info_ass
const vf_info_t vf_info_mcdeint
const vf_info_t vf_info_yadif
const vf_info_t vf_info_blackframe
const vf_info_t vf_info_geq
const vf_info_t vf_info_ow
const vf_info_t vf_info_fixpts
const vf_info_t vf_info_stereo3d
static const vf_info_t *const filters []
CpuCaps gCpuCaps
AVFilter avfilter_vf_mp


Detailed Description

Definition in file vf_mp.c.


Define Documentation

#define CLEAR_PACKEDYUV_PATTERN   0x80008000

Referenced by vf_mpi_clear().

#define CLEAR_PACKEDYUV_PATTERN_SWAPPED   0x00800080

Referenced by vf_mpi_clear().


Function Documentation

static int config_inprops ( AVFilterLink inlink  )  [static]

Definition at line 808 of file vf_mp.c.

static int config_outprops ( AVFilterLink outlink  )  [static]

Definition at line 827 of file vf_mp.c.

static void end_frame ( AVFilterLink inlink  )  [static]

Definition at line 862 of file vf_mp.c.

static av_cold int init ( AVFilterContext ctx,
const char *  args,
void *  opaque 
) [static]

Definition at line 721 of file vf_mp.c.

void init_avcodec ( void   ) 

Definition at line 365 of file vf_mp.c.

Referenced by vf_open().

void mp_msg ( int  mod,
int  lev,
const char *  format,
  ... 
)

int mp_msg_test ( int  mod,
int  lev 
)

Definition at line 361 of file vf_mp.c.

Referenced by analyze_plane(), sws_getFlagsAndFilterFromCmdLine(), and vf_open().

static void null_draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
) [static]

Definition at line 858 of file vf_mp.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 785 of file vf_mp.c.

static int request_frame ( AVFilterLink outlink  )  [static]

Definition at line 837 of file vf_mp.c.

static void start_frame ( AVFilterLink inlink,
AVFilterBufferRef picref 
) [static]

Definition at line 854 of file vf_mp.c.

struct SwsContext* sws_getContextFromCmdLine ( int  srcW,
int  srcH,
int  srcFormat,
int  dstW,
int  dstH,
int  dstFormat 
) [read]

Definition at line 329 of file vf_mp.c.

Referenced by config().

static void sws_getFlagsAndFilterFromCmdLine ( int *  flags,
SwsFilter **  srcFilterParam,
SwsFilter **  dstFilterParam 
) [static]

Definition at line 291 of file vf_mp.c.

Referenced by sws_getContextFromCmdLine().

void vf_clone_mpi_attributes ( mp_image_t dst,
mp_image_t src 
)

Definition at line 371 of file vf_mp.c.

Referenced by put_image().

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

Definition at line 708 of file vf_mp.c.

Referenced by init().

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

Definition at line 458 of file vf_mp.c.

Referenced by config(), get_image(), put_image(), and start_slice().

unsigned int vf_match_csp ( vf_instance_t **  vfp,
const unsigned int *  list,
unsigned int  preferred 
)

Definition at line 454 of file vf_mp.c.

Referenced by vf_open().

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

Definition at line 405 of file vf_mp.c.

Referenced by put_image(), and vf_get_image().

int vf_next_config ( struct vf_instance vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  voflags,
unsigned int  outfmt 
)

Definition at line 673 of file vf_mp.c.

Referenced by config(), and init().

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

Definition at line 702 of file vf_mp.c.

Referenced by control(), and init().

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

Definition at line 382 of file vf_mp.c.

Referenced by config(), draw_slice(), and vf_open().

int vf_next_put_image ( struct vf_instance vf,
mp_image_t mpi,
double  pts 
)

Definition at line 616 of file vf_mp.c.

Referenced by config(), do_put_image(), init(), and put_image().

int vf_next_query_format ( struct vf_instance vf,
unsigned int  fmt 
)

Definition at line 449 of file vf_mp.c.

Referenced by config(), find_best(), and query_format().


Variable Documentation

Initial value:

 {
    .name      = "mp",
    .description = NULL_IF_CONFIG_SMALL("libmpcodecs wrapper."),
    .init = init,
    .priv_size = sizeof(MPContext),
    .query_formats = query_formats,

    .inputs    = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO,
                                    .start_frame     = start_frame,
                                    .draw_slice      = null_draw_slice,
                                    .end_frame       = end_frame,
                                    .config_props    = config_inprops,
                                    .min_perms       = AV_PERM_READ, },
                                  { .name = NULL}},
    .outputs   = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO,
                                    .request_frame   = request_frame,
                                    .config_props    = config_outprops, },
                                  { .name = NULL}},
}

Definition at line 893 of file vf_mp.c.

struct { ... } conversion_map[] [static]

const vf_info_t* const filters[] [static]

Definition at line 202 of file vf_mp.c.

Referenced by avfilter_graph_add_filter().

int fmt

Definition at line 288 of file vf_mp.c.

Referenced by check_values(), init_pullup(), put_image(), and vf_open().

Definition at line 47 of file vf_mp.c.

Definition at line 327 of file vf_2xsai.c.

Definition at line 141 of file vf_blackframe.c.

Definition at line 205 of file vf_boxblur.c.

Definition at line 192 of file vf_cropdetect.c.

Definition at line 191 of file vf_decimate.c.

Definition at line 244 of file vf_delogo.c.

Definition at line 259 of file vf_denoise3d.c.

Definition at line 446 of file vf_detc.c.

Definition at line 207 of file vf_dint.c.

Definition at line 37 of file vf_divtc.c.

Definition at line 159 of file vf_down3dright.c.

Definition at line 116 of file vf_dsize.c.

Definition at line 234 of file vf_eq.c.

Definition at line 512 of file vf_eq2.c.

Definition at line 80 of file vf_field.c.

Definition at line 107 of file vf_fil.c.

Definition at line 1454 of file vf_filmdint.c.

Definition at line 130 of file vf_fixpts.c.

Definition at line 198 of file vf_framestep.c.

Definition at line 682 of file vf_fspp.c.

Definition at line 190 of file vf_geq.c.

Definition at line 404 of file vf_gradfun.c.

Definition at line 85 of file vf_harddup.c.

Definition at line 364 of file vf_hqdn3d.c.

Definition at line 175 of file vf_hue.c.

Definition at line 139 of file vf_il.c.

Definition at line 449 of file vf_ilpack.c.

Definition at line 543 of file vf_ivtc.c.

Definition at line 336 of file vf_kerndeint.c.

Definition at line 331 of file vf_mcdeint.c.

Definition at line 122 of file vf_mirror.c.

Definition at line 465 of file vf_noise.c.

Definition at line 315 of file vf_ow.c.

Definition at line 227 of file vf_palette.c.

Definition at line 334 of file vf_perspective.c.

Definition at line 293 of file vf_phase.c.

Definition at line 484 of file vf_pp7.c.

Definition at line 307 of file vf_pullup.c.

Definition at line 170 of file vf_qp.c.

Definition at line 174 of file vf_rectangle.c.

Meta data about our filter.

Definition at line 897 of file vf_remove_logo.c.

Definition at line 162 of file vf_rgbtest.c.

Definition at line 143 of file vf_rotate.c.

Definition at line 312 of file vf_sab.c.

Definition at line 313 of file vf_screenshot.c.

Definition at line 253 of file vf_smartblur.c.

Definition at line 157 of file vf_softpulldown.c.

Definition at line 95 of file vf_softskip.c.

Definition at line 613 of file vf_spp.c.

Definition at line 97 of file vf_swapuv.c.

Definition at line 148 of file vf_telecine.c.

Definition at line 324 of file vf_test.c.

Definition at line 323 of file vf_tile.c.

Definition at line 228 of file vf_tinterlace.c.

Definition at line 315 of file vf_unsharp.c.

Definition at line 378 of file vf_uspp.c.

Definition at line 111 of file vf_yuvcsp.c.

Definition at line 96 of file vf_yvu9.c.


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