VLC
3.0.15
|
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... | |
|
static |
Referenced by MaskToShift().
void es_format_Clean | ( | es_format_t * | fmt | ) |
This function will clean up a es_format_t and release all associated resources.
You can call it multiple times on the same structure.
Referenced by CmdInitSend(), DecoderUpdateFormatLocked(), DeleteDecoder(), DeleteEncoder(), DeleteFilter(), es_format_Change(), EsOutControlLocked(), EsOutSend(), filter_chain_AppendInner(), filter_chain_Delete(), filter_chain_DeleteFilter(), filter_chain_Reset(), input_item_Release(), input_item_UpdateTracksInfo(), LoadDecoder(), ReloadDecoder(), and UnloadDecoder().
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().
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.
Referenced by CreateDecoder(), es_format_Change(), filter_chain_NewInner(), filter_NewBlend(), ImageConvert(), ImageWrite(), and LoadDecoder().
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().
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().
|
static |
It transforms a color mask into right and left shifts FIXME copied from video_output.c.
References BinaryLog().
|
static |
|
static |
void video_format_ApplyRotation | ( | video_format_t *restrict | out, |
const video_format_t *restrict | in | ||
) |
Referenced by vout_display_PlacePicture().
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().
void video_format_FixRgb | ( | video_format_t * | p_fmt | ) |
This function will fill all RGB shift from RGB masks.
Referenced by BitMapFormatIsSimilar().
video_transform_t video_format_GetTransform | ( | video_orientation_t | src, |
video_orientation_t | dst | ||
) |
Returns the operation required to transform src into dst.
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().
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 video_format_ScaleCropAr | ( | video_format_t * | p_dst, |
const video_format_t * | p_src | ||
) |
It will compute the crop/ar properties when scaling.
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().
void video_format_TransformBy | ( | video_format_t * | fmt, |
video_transform_t | transform | ||
) |
This function applies the transform operation to fmt.
void video_format_TransformTo | ( | video_format_t *restrict | fmt, |
video_orientation_t | dst_orientation | ||
) |