VLC  3.0.15
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. More...
 
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

◆ BinaryLog()

static int BinaryLog ( uint32_t  i)
static

Referenced by MaskToShift().

◆ 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 
)

< No error

< Not enough memory

< Not enough memory

< Not enough memory

< Not enough memory

< Not enough memory

< Not enough memory

Referenced by CreateFilter(), DecoderUpdateFormatLocked(), EsOutControlLocked(), filter_chain_AppendInner(), filter_chain_Reset(), input_item_UpdateTracksInfo(), LoadDecoder(), and ReloadDecoder().

◆ 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 
)

This function will initialize a es_format_t structure from a video_format_t.

Referenced by CreateDecoder(), and CreateEncoder().

◆ es_format_IsSimilar()

bool es_format_IsSimilar ( const es_format_t ,
const es_format_t  
)

This function will check if the first ES format is similar to the second one.

All descriptive fields are ignored.

Referenced by DecoderProcess().

◆ MaskToShift()

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().

◆ transform_FromBasicOps()

static video_transform_t transform_FromBasicOps ( unsigned  angle,
bool  hflip 
)
static

◆ transform_GetBasicOps()

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

◆ 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 
)

It will copy the crop properties from a video_format_t to another.

Referenced by picture_NewFromResource().

◆ video_format_FixRgb()

void video_format_FixRgb ( video_format_t p_fmt)

This function will fill all RGB shift from RGB masks.

Referenced by BitMapFormatIsSimilar().

◆ 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.

◆ video_format_IsSimilar()

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.

Referenced by subpicture_Update().

◆ video_format_Print()

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.

◆ video_format_ScaleCropAr()

void video_format_ScaleCropAr ( video_format_t p_dst,
const video_format_t p_src 
)

It will compute the crop/ar properties when scaling.

◆ 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 
)

It will fill up a video_format_t using the given arguments.

Note that the video_format_t must already be initialized.

Referenced by picture_NewFromResource().

◆ video_format_TransformBy()

void video_format_TransformBy ( video_format_t fmt,
video_transform_t  transform 
)

This function applies the transform operation to fmt.

◆ video_format_TransformTo()

void video_format_TransformTo ( video_format_t *restrict  fmt,
video_orientation_t  dst_orientation 
)