VLC  4.0.0-dev
es_format.c File Reference
Include dependency graph for es_format.c:


void video_format_FixRgb (video_format_t *p_fmt)
 This function will fill all RGB shift from RGB masks. More...
void video_format_Setup (video_format_t *p_fmt, vlc_fourcc_t i_chroma, int i_width, int i_height, int i_visible_width, int i_visible_height, int i_sar_num, int i_sar_den)
 It will fill up a video_format_t using the given arguments. More...
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. More...
void video_format_ScaleCropAr (video_format_t *p_dst, const video_format_t *p_src)
 It will compute the crop/ar properties when scaling. More...
static void transform_GetBasicOps (video_transform_t transform, unsigned *restrict angle, bool *restrict hflip)
static video_transform_t transform_FromBasicOps (unsigned angle, bool hflip)
video_transform_t video_format_GetTransform (video_orientation_t src, video_orientation_t dst)
 Returns the operation required to transform src into dst. More...
void video_format_TransformBy (video_format_t *fmt, video_transform_t transform)
 This function applies the transform operation to fmt. More...
void video_format_TransformTo (video_format_t *restrict fmt, video_orientation_t dst_orientation)
void video_format_ApplyRotation (video_format_t *restrict out, const video_format_t *restrict in)
bool video_format_IsSimilar (const video_format_t *f1, const video_format_t *f2)
 This function will check if the first video format is similar to the second one. More...
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. More...
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. More...
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. More...
int es_format_Copy (es_format_t *restrict dst, const es_format_t *src)
void es_format_Clean (es_format_t *fmt)
 This function will clean up a es_format_t and release all associated resources. More...
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. More...

Function Documentation

◆ es_format_Clean()

void es_format_Clean ( es_format_t fmt)

◆ es_format_Copy()

int es_format_Copy ( es_format_t *restrict  dst,
const es_format_t src 

◆ es_format_Init()

void es_format_Init ( es_format_t fmt,
int  i_cat,
vlc_fourcc_t  i_codec 

◆ es_format_InitFromVideo()

void es_format_InitFromVideo ( es_format_t p_es,
const video_format_t p_fmt 

◆ es_format_IsSimilar()

bool es_format_IsSimilar ( const es_format_t ,
const es_format_t  

◆ transform_FromBasicOps()

static video_transform_t transform_FromBasicOps ( unsigned  angle,
bool  hflip 

◆ transform_GetBasicOps()

static void transform_GetBasicOps ( video_transform_t  transform,
unsigned *restrict  angle,
bool *restrict  hflip 

◆ video_format_ApplyRotation()

void video_format_ApplyRotation ( video_format_t *restrict  out,
const video_format_t *restrict  in 

◆ video_format_CopyCrop()

void video_format_CopyCrop ( video_format_t p_dst,
const video_format_t p_src 

◆ video_format_FixRgb()

void video_format_FixRgb ( video_format_t p_fmt)

◆ video_format_GetTransform()

video_transform_t video_format_GetTransform ( video_orientation_t  src,
video_orientation_t  dst 

Returns the operation required to transform src into dst.

References transform_FromBasicOps(), transform_GetBasicOps(), and transform_Inverse().

Referenced by video_format_CopyCropAr(), and video_format_TransformTo().

◆ video_format_IsSimilar()

bool video_format_IsSimilar ( const video_format_t f1,
const video_format_t f2 

◆ video_format_Print()

void video_format_Print ( vlc_object_t p_this,
const char *  psz_text,
const video_format_t fmt 

◆ video_format_ScaleCropAr()

void video_format_ScaleCropAr ( video_format_t p_dst,
const video_format_t p_src 

◆ video_format_Setup()

void video_format_Setup ( video_format_t ,
vlc_fourcc_t  i_chroma,
int  i_width,
int  i_height,
int  i_visible_width,
int  i_visible_height,
int  i_sar_num,
int  i_sar_den 

◆ video_format_TransformBy()

void video_format_TransformBy ( video_format_t fmt,
video_transform_t  transform 

◆ video_format_TransformTo()

void video_format_TransformTo ( video_format_t *restrict  fmt,
video_orientation_t  dst_orientation