canvas.c File Reference

Include dependency graph for canvas.c:


Data Structures

struct  filter_sys_t
 filter_sys_t: chroma method descriptor More...

Defines

#define WIDTH_TEXT   N_( "Output width" )
#define WIDTH_LONGTEXT
#define HEIGHT_TEXT   N_( "Output height" )
#define HEIGHT_LONGTEXT
#define ASPECT_TEXT   N_( "Output picture aspect ratio" )
#define ASPECT_LONGTEXT
#define PADD_TEXT   N_( "Pad video" )
#define PADD_LONGTEXT
#define CANVAS_HELP   N_( "Automatically resize and pad a video" )
#define CFG_PREFIX   "canvas-"

Functions

static int Activate (vlc_object_t *)
static void Destroy (vlc_object_t *)
static picture_tFilter (filter_t *, picture_t *)
static int alloc_init (filter_t *, void *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static picture_tvideo_new (filter_t *p_filter)
static void video_del (filter_t *p_filter, picture_t *p_pic)

Variables

static const char *const ppsz_filter_options []

Define Documentation

#define ASPECT_LONGTEXT

Value:

N_( \
    "Set the canvas' picture aspect ratio. " \
    "If omitted, the canvas is assumed to have the same SAR as the input." )

#define ASPECT_TEXT   N_( "Output picture aspect ratio" )

#define CANVAS_HELP   N_( "Automatically resize and pad a video" )

#define CFG_PREFIX   "canvas-"

#define HEIGHT_LONGTEXT

Value:

N_( \
    "Output (canvas) image height" )

#define HEIGHT_TEXT   N_( "Output height" )

#define PADD_LONGTEXT

Value:

N_( \
    "If enabled, video will be padded to fit in canvas after scaling. " \
    "Otherwise, video will be cropped to fix in canvas after scaling." )

#define PADD_TEXT   N_( "Pad video" )

#define WIDTH_LONGTEXT

Value:

N_( \
    "Output (canvas) image width" )

#define WIDTH_TEXT   N_( "Output width" )


Function Documentation

static int Activate ( vlc_object_t p_this  )  [static]

static int alloc_init ( filter_t p_filter,
void *  p_data 
) [static]

References filter_t::p_owner, video_del(), video_new(), and VLC_SUCCESS.

Referenced by Activate().

static void Destroy ( vlc_object_t p_this  )  [static]

static picture_t * Filter ( filter_t p_filter,
picture_t p_pic 
) [static]

static void video_del ( filter_t p_filter,
picture_t p_pic 
) [static]

References filter_DeletePicture(), and filter_t::p_owner.

Referenced by alloc_init().

static picture_t* video_new ( filter_t p_filter  )  [static]

References filter_NewPicture(), and filter_t::p_owner.

Referenced by alloc_init().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const char* const ppsz_filter_options[] [static]

Initial value:

 {
    "width", "height", "aspect", "padd", NULL
}


Generated on Tue May 25 08:05:30 2010 for VLC by  doxygen 1.5.6