VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
es_format.c File Reference
Include dependency graph for es_format.c:

Functions

static int BinaryLog (uint32_t i)
static void MaskToShift (int *pi_left, int *pi_right, uint32_t i_mask)
 It transforms a color mask into right and left shifts FIXME copied from video_output.c.
void video_format_FixRgb (video_format_t *p_fmt)
 This function will fill all RGB shift from RGB masks.
void video_format_Setup (video_format_t *p_fmt, vlc_fourcc_t i_chroma, int i_width, int i_height, int i_sar_num, int i_sar_den)
 It will fill up a video_format_t using the given arguments.
void video_format_CopyCrop (video_format_t *p_dst, const video_format_t *p_src)
 It will copy the crop properties from a video_format_t to another.
void video_format_ScaleCropAr (video_format_t *p_dst, const video_format_t *p_src)
 It will compute the crop/ar properties when scaling.
bool video_format_IsSimilar (const video_format_t *p_fmt1, const video_format_t *p_fmt2)
 This function will check if the first video format is similar to the second one.
void video_format_Print (vlc_object_t *p_this, const char *psz_text, const video_format_t *fmt)
 It prints details about the given video_format_t.
void es_format_Init (es_format_t *fmt, int i_cat, vlc_fourcc_t i_codec)
 This function will initialize a es_format_t structure.
void es_format_InitFromVideo (es_format_t *p_es, const video_format_t *p_fmt)
 This function will initialize a es_format_t structure from a video_format_t.
int es_format_Copy (es_format_t *dst, const es_format_t *src)
 This functions will copy a es_format_t.
void es_format_Clean (es_format_t *fmt)
 This function will clean up a es_format_t and release all associated resources.
bool es_format_IsSimilar (const es_format_t *p_fmt1, const es_format_t *p_fmt2)
 This function will check if the first ES format is similar to the second one.

Function Documentation

static int BinaryLog ( uint32_t  i)
static

Referenced by MaskToShift().

void es_format_Clean ( es_format_t fmt)
int es_format_Copy ( es_format_t dst,
const es_format_t src 
)
void es_format_Init ( es_format_t fmt,
int  i_cat,
vlc_fourcc_t  i_codec 
)
void es_format_InitFromVideo ( es_format_t p_es,
const video_format_t p_fmt 
)
bool es_format_IsSimilar ( const es_format_t ,
const es_format_t  
)
static void MaskToShift ( int *  pi_left,
int *  pi_right,
uint32_t  i_mask 
)
static

It transforms a color mask into right and left shifts FIXME copied from video_output.c.

References BinaryLog().

Referenced by video_format_FixRgb().

void video_format_CopyCrop ( video_format_t p_dst,
const video_format_t p_src 
)
void video_format_FixRgb ( video_format_t p_fmt)
bool video_format_IsSimilar ( const video_format_t p_fmt1,
const video_format_t p_fmt2 
)
void video_format_Print ( vlc_object_t p_this,
const char *  psz_text,
const video_format_t fmt 
)
void video_format_ScaleCropAr ( video_format_t p_dst,
const video_format_t p_src 
)
void video_format_Setup ( video_format_t ,
vlc_fourcc_t  i_chroma,
int  i_width,
int  i_height,
int  i_sar_num,
int  i_sar_den 
)