VLC 4.0.0-dev
|
This file defines the elementary streams format types. More...
Go to the source code of this file.
Data Structures | |
struct | video_palette_t |
struct | audio_replay_gain_t |
struct | audio_format_t |
audio format description More... | |
struct | video_format_t |
video format description More... | |
struct | subs_format_t |
subtitles format description More... | |
struct | extra_languages_t |
ES language definition. More... | |
struct | es_format_t |
Typedefs | |
typedef enum audio_channel_type_t | audio_channel_type_t |
Audio channel type. More... | |
typedef enum video_orientation_t | video_orientation_t |
Picture orientation. More... | |
typedef enum video_transform_t | video_transform_t |
typedef enum video_multiview_mode_t | video_multiview_mode_t |
typedef enum video_projection_mode_t | video_projection_mode_t |
Video projection mode. More... | |
typedef enum video_color_primaries_t | video_color_primaries_t |
Video color primaries (a.k.a. More... | |
typedef enum video_transfer_func_t | video_transfer_func_t |
Video transfer functions. More... | |
typedef enum video_color_space_t | video_color_space_t |
Video color space (i.e. More... | |
typedef enum video_chroma_location_t | video_chroma_location_t |
Video chroma location. More... | |
typedef enum video_color_range_t | video_color_range_t |
typedef struct extra_languages_t | extra_languages_t |
ES language definition. More... | |
Functions | |
static void | video_format_Init (video_format_t *p_src, vlc_fourcc_t i_chroma) |
Initialize a video_format_t structure with chroma 'i_chroma'. More... | |
static int | video_format_Copy (video_format_t *p_dst, const video_format_t *p_src) |
Copy video_format_t including the palette. More... | |
static void | video_format_AdjustColorSpace (video_format_t *p_fmt) |
static void | video_format_Clean (video_format_t *p_src) |
Cleanup and free palette of this video_format_t. More... | |
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. More... | |
void | video_format_CopyCrop (video_format_t *, const video_format_t *) |
It will copy the crop properties from a video_format_t to another. More... | |
static void | video_format_CopyCropAr (video_format_t *dst, const video_format_t *src) |
void | video_format_ScaleCropAr (video_format_t *, const video_format_t *) |
It will compute the crop/ar properties when scaling. More... | |
void | video_format_ApplyRotation (video_format_t *out, const video_format_t *in) |
This function "normalizes" the formats orientation, by switching the a/r according to the orientation, producing a format whose orientation is ORIENT_NORMAL. 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 *fmt, video_orientation_t dst_orientation) |
This function applies the transforms necessary to fmt so that the resulting fmt has the dst_orientation. More... | |
video_transform_t | video_format_GetTransform (video_orientation_t src, video_orientation_t dst) |
Returns the operation required to transform src into dst. More... | |
bool | video_format_IsSimilar (const video_format_t *, const video_format_t *) |
This function will check if the first video format is similar to the second one. More... | |
void | video_format_Print (vlc_object_t *, const char *, const video_format_t *) |
It prints details about the given video_format_t. More... | |
static video_transform_t | transform_Inverse (video_transform_t transform) |
void | video_format_FixRgb (video_format_t *) |
This function will fill all RGB shift from RGB masks. More... | |
void | es_format_Init (es_format_t *, 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 *, const video_format_t *) |
This function will initialize a es_format_t structure from a video_format_t. More... | |
int | es_format_Copy (es_format_t *p_dst, const es_format_t *p_src) |
This functions will copy a es_format_t. More... | |
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 *, const es_format_t *) |
This function will check if the first ES format is similar to the second one. More... | |
static void | es_format_Change (es_format_t *fmt, int i_cat, vlc_fourcc_t i_codec) |
Changes ES format to another category Format must have been properly initialized. More... | |
vlc_es_id_t * | vlc_es_id_Hold (vlc_es_id_t *es) |
Increase the ES track id reference count. More... | |
void | vlc_es_id_Release (vlc_es_id_t *id) |
Decrease the ES track id reference count. More... | |
int | vlc_es_id_GetInputId (vlc_es_id_t *id) |
Get the ES track input id. More... | |
bool | vlc_es_id_IsStrIdStable (vlc_es_id_t *id) |
Return whether the ES track identifier is stable. More... | |
const char * | vlc_es_id_GetStrId (vlc_es_id_t *id) |
Get the unique string identifier. More... | |
enum es_format_category_e | vlc_es_id_GetCat (vlc_es_id_t *id) |
Get the ES category. More... | |
Variables | |
static const uint16_t | vlc_chan_maps [] |
This file defines the elementary streams format types.
#define AOUT_CHAN_CENTER 0x1 |
#define AOUT_CHAN_LEFT 0x2 |
#define AOUT_CHAN_LFE 0x1000 |
#define AOUT_CHAN_MAX 9 |
#define AOUT_CHAN_MIDDLELEFT 0x100 |
#define AOUT_CHAN_MIDDLERIGHT 0x200 |
#define AOUT_CHAN_REARCENTER 0x10 |
#define AOUT_CHAN_REARLEFT 0x20 |
#define AOUT_CHAN_REARRIGHT 0x40 |
#define AOUT_CHAN_RIGHT 0x4 |
#define AOUT_CHANMODE_BINAURAL 0x4 |
#define AOUT_CHANMODE_DOLBYSTEREO 0x2 |
#define AOUT_CHANMODE_DUALMONO 0x1 |
#define AOUT_CHANS_2_0 (AOUT_CHANS_FRONT) |
#define AOUT_CHANS_2_1 (AOUT_CHANS_FRONT | AOUT_CHAN_LFE) |
#define AOUT_CHANS_3_0 (AOUT_CHANS_FRONT | AOUT_CHAN_CENTER) |
#define AOUT_CHANS_3_1 (AOUT_CHANS_3_0 | AOUT_CHAN_LFE) |
#define AOUT_CHANS_4_0 (AOUT_CHANS_FRONT | AOUT_CHANS_REAR) |
#define AOUT_CHANS_4_0_MIDDLE (AOUT_CHANS_FRONT | AOUT_CHANS_MIDDLE) |
#define AOUT_CHANS_4_1 (AOUT_CHANS_4_0 | AOUT_CHAN_LFE) |
#define AOUT_CHANS_4_CENTER_REAR (AOUT_CHANS_FRONT | AOUT_CHANS_CENTER) |
#define AOUT_CHANS_5_0 (AOUT_CHANS_4_0 | AOUT_CHAN_CENTER) |
#define AOUT_CHANS_5_0_MIDDLE (AOUT_CHANS_4_0_MIDDLE | AOUT_CHAN_CENTER) |
#define AOUT_CHANS_5_1 (AOUT_CHANS_5_0 | AOUT_CHAN_LFE) |
#define AOUT_CHANS_6_0 (AOUT_CHANS_4_0 | AOUT_CHANS_MIDDLE) |
#define AOUT_CHANS_6_1_MIDDLE (AOUT_CHANS_5_0_MIDDLE | AOUT_CHAN_REARCENTER | AOUT_CHAN_LFE) |
#define AOUT_CHANS_7_0 (AOUT_CHANS_6_0 | AOUT_CHAN_CENTER) |
#define AOUT_CHANS_7_1 (AOUT_CHANS_5_1 | AOUT_CHANS_MIDDLE) |
#define AOUT_CHANS_8_1 (AOUT_CHANS_7_1 | AOUT_CHAN_REARCENTER) |
#define AOUT_CHANS_CENTER (AOUT_CHAN_CENTER | AOUT_CHAN_REARCENTER) |
#define AOUT_CHANS_FRONT (AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT) |
#define AOUT_CHANS_MIDDLE (AOUT_CHAN_MIDDLELEFT | AOUT_CHAN_MIDDLERIGHT) |
#define AOUT_CHANS_REAR (AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT) |
#define AOUT_CHANS_STEREO AOUT_CHANS_2_0 |
#define AUDIO_REPLAY_GAIN_ALBUM (1) |
#define AUDIO_REPLAY_GAIN_MAX (2) |
audio replay gain description
#define AUDIO_REPLAY_GAIN_TRACK (0) |
#define CHROMA_LOCATION_MAX CHROMA_LOCATION_BOTTOM_CENTER |
#define COLOR_PRIMARIES_BT470_BG COLOR_PRIMARIES_BT601_625 |
#define COLOR_PRIMARIES_BT470_M COLOR_PRIMARIES_FCC1953 |
#define COLOR_PRIMARIES_EBU_3213 COLOR_PRIMARIES_BT601_625 |
#define COLOR_PRIMARIES_MAX COLOR_PRIMARIES_FCC1953 |
#define COLOR_PRIMARIES_SMTPE_170 COLOR_PRIMARIES_BT601_525 |
#define COLOR_PRIMARIES_SMTPE_240 COLOR_PRIMARIES_BT601_525 /* Only differs from 1e10-4 in white Y */ |
#define COLOR_PRIMARIES_SMTPE_RP145 COLOR_PRIMARIES_BT601_525 |
#define COLOR_PRIMARIES_SRGB COLOR_PRIMARIES_BT709 |
#define COLOR_RANGE_MAX COLOR_RANGE_LIMITED |
#define COLOR_RANGE_STUDIO COLOR_RANGE_LIMITED |
#define COLOR_SPACE_MAX COLOR_SPACE_BT2020 |
#define COLOR_SPACE_SMPTE_170 COLOR_SPACE_BT601 |
#define COLOR_SPACE_SMPTE_240 COLOR_SPACE_SMPTE_170 |
#define COLOR_SPACE_SRGB COLOR_SPACE_BT709 |
#define ES_CATEGORY_COUNT (DATA_ES + 1) |
#define ES_PRIORITY_MIN ES_PRIORITY_NOT_SELECTABLE |
#define ES_PRIORITY_NOT_DEFAULTABLE -1 |
#define ES_PRIORITY_NOT_SELECTABLE -2 |
ES format definition.
#define ES_PRIORITY_SELECTABLE_MIN 0 |
#define INPUT_CHAN_MAX 64 |
#define MULTIVIEW_STEREO_MAX MULTIVIEW_STEREO_CHECKERBOARD |
#define ORIENT_FROM_EXIF | ( | exif | ) | ((0x57642310U >> (4 * ((exif) - 1))) & 7) |
Convert EXIF orientation to enum video_orientation_t.
#define ORIENT_HFLIP | ( | orient | ) | ((orient) ^ 1) |
Applies horizontal flip to an orientation.
#define ORIENT_IS_MIRROR | ( | orient | ) | vlc_parity(orient) |
If the orientation is natural or mirrored.
#define ORIENT_IS_SWAP | ( | orient | ) | (((orient) & 4) != 0) |
If the orientation swaps dimensions.
#define ORIENT_MAX ((size_t)ORIENT_RIGHT_BOTTOM) |
#define ORIENT_ROTATE_180 | ( | orient | ) | ((orient) ^ 3) |
Applies 180 degree rotation to an orientation.
#define ORIENT_TO_EXIF | ( | orient | ) | ((0x76853421U >> (4 * (orient))) & 15) |
Convert enum video_orientation_t to EXIF.
#define ORIENT_VFLIP | ( | orient | ) | ((orient) ^ 2) |
Applies vertical flip to an orientation.
#define SPU_PALETTE_DEFINED 0xbeefbeef |
#define TRANSFER_FUNC_ARIB_B67 TRANSFER_FUNC_HLG |
#define TRANSFER_FUNC_BT2020 TRANSFER_FUNC_BT709 |
#define TRANSFER_FUNC_MAX TRANSFER_FUNC_HLG |
#define TRANSFER_FUNC_SMPTE_170 TRANSFER_FUNC_BT709 |
#define TRANSFER_FUNC_SMPTE_274 TRANSFER_FUNC_BT709 |
#define TRANSFER_FUNC_SMPTE_293 TRANSFER_FUNC_BT709 |
#define TRANSFER_FUNC_SMPTE_296 TRANSFER_FUNC_BT709 |
#define VIDEO_PALETTE_COLORS_MAX 256 |
video palette data
typedef enum audio_channel_type_t audio_channel_type_t |
Audio channel type.
typedef struct extra_languages_t extra_languages_t |
ES language definition.
typedef enum video_chroma_location_t video_chroma_location_t |
Video chroma location.
typedef enum video_color_primaries_t video_color_primaries_t |
Video color primaries (a.k.a.
chromacities)
typedef enum video_color_range_t video_color_range_t |
typedef enum video_color_space_t video_color_space_t |
Video color space (i.e.
YCbCr matrices)
typedef enum video_multiview_mode_t video_multiview_mode_t |
typedef enum video_orientation_t video_orientation_t |
Picture orientation.
typedef enum video_projection_mode_t video_projection_mode_t |
Video projection mode.
typedef enum video_transfer_func_t video_transfer_func_t |
Video transfer functions.
typedef enum video_transform_t video_transform_t |
enum audio_channel_type_t |
enum es_format_category_e |
enum video_color_range_t |
enum video_color_space_t |
enum video_orientation_t |
Picture orientation.
enum video_transform_t |
|
inlinestatic |
Changes ES format to another category Format must have been properly initialized.
References es_format_Clean(), es_format_Init(), and i_codec.
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.
References es_format_Init(), es_format_t::i_cat, es_format_t::i_extra, es_format_t::i_extra_languages, es_format_t::p_extra, es_format_t::p_extra_languages, extra_languages_t::psz_description, es_format_t::psz_description, subs_format_t::psz_encoding, extra_languages_t::psz_language, es_format_t::psz_language, SPU_ES, es_format_t::subs, UNKNOWN_ES, es_format_t::video, VIDEO_ES, and video_format_Clean().
Referenced by ChangeFilters(), CmdCleanAdd(), CmdCleanControl(), CreateDecoder(), decoder_Clean(), DecoderThread_Reload(), DecoderUpdateFormatLocked(), DeleteConverter(), DeleteDecoder(), demux_PacketizerDestroy(), demux_PacketizerNew(), es_format_Change(), EsOutAddLocked(), EsOutCreateCCChannels(), EsOutDestroyDecoder(), EsOutEsUpdateFmt(), EsOutSend(), EsOutVaControlLocked(), EsRelease(), filter_chain_AppendInner(), filter_chain_Delete(), filter_chain_DeleteFilter(), filter_chain_Reset(), image_HandlerDelete(), ImageConvert(), ImageRead(), ImageReadUrl(), ImageWrite(), input_item_Release(), input_item_UpdateTracksInfo(), LoadDecoder(), ModuleThread_UpdateVideoFormat(), rtp_opus_init(), sout_MuxAddStream(), sout_MuxDeleteStream(), vlc_encoder_Destroy(), vlc_player_track_priv_Delete(), vlc_player_track_priv_Update(), and VoutDisplayCreateRender().
int es_format_Copy | ( | es_format_t * | p_dst, |
const es_format_t * | p_src | ||
) |
This functions will copy a es_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.
References es_format_t::b_packetized, ES_PRIORITY_SELECTABLE_MIN, es_format_t::i_cat, es_format_t::i_codec, i_codec, es_format_t::i_id, es_format_t::i_level, es_format_t::i_priority, es_format_t::i_profile, es_format_t::p_extra, es_format_t::p_extra_languages, es_format_t::psz_description, es_format_t::psz_language, es_format_t::video, VIDEO_ES, and video_format_Init().
Referenced by CreateDecoder(), decoder_Init(), demux_PacketizerNew(), es_format_Change(), es_format_Clean(), es_format_InitFromVideo(), EsOutAddLocked(), EsOutCreateCCChannels(), filter_chain_NewInner(), filter_NewBlend(), gsm_init(), ImageConvert(), ImageReadUrl(), ImageWrite(), qcelp_init(), rtp_ac3_begin(), rtp_g722_init(), rtp_g726_init(), rtp_h264_init(), rtp_mpa_init(), rtp_mpv_init(), rtp_opus_init(), rtp_pcm_init(), rtp_raw_begin(), SpuRenderCreateAndLoadScale(), SpuRenderCreateAndLoadText(), vlc_input_decoder_SetCcState(), and xiph_decode().
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.
References es_format_Init(), video_format_t::i_chroma, es_format_t::video, VIDEO_ES, and video_format_Copy().
Referenced by ChangeFilters(), CreateEncoder(), ImageConvert(), ImageWrite(), and VoutDisplayCreateRender().
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.
All descriptive fields are ignored.
References es_format_t::audio, AUDIO_ES, audio_format_t::channel_type, es_format_t::i_cat, audio_format_t::i_chan_mode, audio_format_t::i_channels, video_format_t::i_chroma, es_format_t::i_codec, audio_format_t::i_format, audio_format_t::i_physical_channels, es_format_t::i_profile, audio_format_t::i_rate, SPU_ES, es_format_t::video, VIDEO_ES, video_format_IsSimilar(), and vlc_fourcc_GetCodec().
Referenced by ChangeFilters(), and DecoderThread_ProcessInput().
|
inlinestatic |
References transform(), TRANSFORM_R270, and TRANSFORM_R90.
Referenced by video_format_GetTransform().
|
inlinestatic |
References COLOR_PRIMARIES_BT601_525, COLOR_PRIMARIES_BT601_625, COLOR_PRIMARIES_BT709, COLOR_PRIMARIES_UNDEF, video_format_t::color_range, COLOR_RANGE_FULL, COLOR_RANGE_LIMITED, COLOR_RANGE_UNDEF, COLOR_SPACE_BT601, COLOR_SPACE_BT709, COLOR_SPACE_UNDEF, video_format_t::i_chroma, video_format_t::i_visible_height, video_format_t::primaries, video_format_t::space, video_format_t::transfer, TRANSFER_FUNC_BT709, TRANSFER_FUNC_SRGB, TRANSFER_FUNC_UNDEF, and vlc_fourcc_IsYUV().
Referenced by aout_filter_GetVout(), decoder_UpdateVideoOutput(), and SpuRenderRegion().
void video_format_ApplyRotation | ( | video_format_t * | out, |
const video_format_t * | in | ||
) |
This function "normalizes" the formats orientation, by switching the a/r according to the orientation, producing a format whose orientation is ORIENT_NORMAL.
It makes a shallow copy (palette is not alloc'ed).
|
inlinestatic |
Cleanup and free palette of this video_format_t.
p_src | video_format_t structure to clean |
References video_format_t::p_palette.
Referenced by es_format_Clean(), ImageRead(), PreparePicture(), spu_Cleanup(), spu_PrerenderThread(), spu_PrerenderWake(), subpicture_Delete(), subpicture_region_Delete(), subpicture_region_New(), subpicture_region_private_Delete(), subpicture_Update(), video_splitter_Delete(), vout_display_Delete(), vout_display_New(), vout_display_ResizeWindow(), vout_display_window_Delete(), vout_Release(), vout_ReleaseDisplay(), vout_Request(), vout_SetDisplayFormat(), and vout_Start().
|
inlinestatic |
Copy video_format_t including the palette.
p_dst | video_format_t to copy to |
p_src | video_format_t to copy from |
References video_format_t::p_palette, VLC_ENOMEM, and VLC_SUCCESS.
Referenced by CreateConverter(), es_format_Copy(), es_format_InitFromVideo(), ImageRead(), PreparePicture(), spu_PrerenderThread(), spu_PrerenderWake(), subpicture_region_NewInternal(), subpicture_region_private_New(), subpicture_Update(), video_splitter_New(), vout_display_New(), vout_display_ResizeWindow(), vout_Start(), and VoutFixFormat().
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.
References video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_x_offset, and video_format_t::i_y_offset.
Referenced by picture_Setup(), video_format_CopyCropAr(), vout_snapshot_Set(), and vout_UpdateDisplaySourceProperties().
|
inlinestatic |
References video_format_t::i_sar_den, video_format_t::i_sar_num, and video_format_CopyCrop().
Referenced by PrerenderPicture(), and VoutVideoFilterInteractiveNewPicture().
void video_format_FixRgb | ( | video_format_t * | p_fmt | ) |
This function will fill all RGB shift from RGB masks.
References video_format_t::i_bmask, video_format_t::i_chroma, video_format_t::i_gmask, video_format_t::i_rmask, VLC_CODEC_RGB15, VLC_CODEC_RGB16, VLC_CODEC_RGB24, and VLC_CODEC_RGB32.
Referenced by BitMapFormatIsSimilar(), ConvertRGB32AndBlend(), video_format_IsSimilar(), and VoutFixFormat().
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_TransformTo().
|
inlinestatic |
Initialize a video_format_t structure with chroma 'i_chroma'.
p_src | pointer to video_format_t structure |
i_chroma | chroma value to use |
References video_format_t::i_chroma, video_format_t::pose, and vlc_viewpoint_init().
Referenced by es_format_Init(), OSDRegion(), OSDTextUpdate(), picture_New(), spu_Create(), subpicture_New(), vout_Create(), vout_display_window_New(), vout_OSDBackground(), vout_OSDEpgSlider(), vout_OSDImage(), and vout_OSDTextRegion().
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.
References video_format_t::i_bmask, video_format_t::i_chroma, video_format_t::i_gmask, video_format_t::i_height, video_format_t::i_rmask, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, video_format_t::multiview_mode, video_format_t::orientation, video_format_FixRgb(), VLC_CODEC_RGB15, VLC_CODEC_RGB16, VLC_CODEC_RGB24, and VLC_CODEC_RGB32.
Referenced by es_format_IsSimilar(), spu_PrerenderWake(), subpicture_Update(), and vout_ChangeSource().
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.
References ARRAY_SIZE, video_format_t::i_bmask, video_format_t::i_chroma, video_format_t::i_gmask, video_format_t::i_height, video_format_t::i_rmask, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, msg_Dbg, orient_to_string, and video_format_t::orientation.
Referenced by vout_Start(), and vout_UpdateSourceCrop().
void video_format_ScaleCropAr | ( | video_format_t * | p_dst, |
const video_format_t * | p_src | ||
) |
It will compute the crop/ar properties when scaling.
References video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, and vlc_ureduce().
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.
Note that the video_format_t must already be initialized.
References video_format_t::i_bits_per_pixel, video_format_t::i_chroma, video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, VIDEO_ES, VLC_CODEC_ABGR, VLC_CODEC_ARGB, VLC_CODEC_BGRA, VLC_CODEC_GREY, VLC_CODEC_GREY_10B, VLC_CODEC_GREY_10L, VLC_CODEC_GREY_12B, VLC_CODEC_GREY_12L, VLC_CODEC_I410, VLC_CODEC_I411, VLC_CODEC_I420, VLC_CODEC_I422, VLC_CODEC_I440, VLC_CODEC_I444, VLC_CODEC_J420, VLC_CODEC_J422, VLC_CODEC_J440, VLC_CODEC_J444, VLC_CODEC_NV12, VLC_CODEC_P010, VLC_CODEC_P016, VLC_CODEC_RGB15, VLC_CODEC_RGB16, VLC_CODEC_RGB24, VLC_CODEC_RGB32, VLC_CODEC_RGB8, VLC_CODEC_RGBA, VLC_CODEC_RGBP, VLC_CODEC_UYVY, VLC_CODEC_VYUY, VLC_CODEC_XYZ12, VLC_CODEC_Y211, VLC_CODEC_YUV2, VLC_CODEC_YUV420A, VLC_CODEC_YUV422A, VLC_CODEC_YUVA, VLC_CODEC_YUVP, VLC_CODEC_YUYV, VLC_CODEC_YV12, VLC_CODEC_YV9, VLC_CODEC_YVYU, vlc_fourcc_GetCodec(), and vlc_ureduce().
Referenced by picture_New(), and picture_Setup().
void video_format_TransformBy | ( | video_format_t * | fmt, |
video_transform_t | transform | ||
) |
This function applies the transform operation to fmt.
References video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, ORIENT_ANTI_TRANSPOSED, ORIENT_HFLIPPED, ORIENT_IS_SWAP, ORIENT_NORMAL, ORIENT_ROTATED_180, ORIENT_ROTATED_270, ORIENT_ROTATED_90, ORIENT_TRANSPOSED, ORIENT_VFLIPPED, video_format_t::orientation, transform(), and transform_GetBasicOps().
Referenced by video_format_TransformTo().
void video_format_TransformTo | ( | video_format_t * | fmt, |
video_orientation_t | dst_orientation | ||
) |
This function applies the transforms necessary to fmt so that the resulting fmt has the dst_orientation.
enum es_format_category_e vlc_es_id_GetCat | ( | vlc_es_id_t * | id | ) |
Get the ES category.
id | pointer to the ES track id |
Referenced by vlc_player_GetPrivTrack(), vlc_player_input_FindTrackById(), vlc_player_osd_Track(), vlc_player_osd_Tracks(), vlc_player_SelectEsId(), vlc_player_SelectEsIdList(), vlc_player_UnselectEsId(), and vlc_player_UpdateTimer().
int vlc_es_id_GetInputId | ( | vlc_es_id_t * | id | ) |
Get the ES track input id.
id | pointer to the ES track id |
Referenced by Control(), and ControlSetEsList().
const char * vlc_es_id_GetStrId | ( | vlc_es_id_t * | id | ) |
Get the unique string identifier.
This id could be used to identify a track across different playback instances. For example, it can be used to store a track selection preference in a database.
id | pointer to the ES track id |
Referenced by vlc_player_input_GetSelectedTrackStringIds(), and vlc_player_osd_Tracks().
vlc_es_id_t * vlc_es_id_Hold | ( | vlc_es_id_t * | es | ) |
Increase the ES track id reference count.
Any held ES tracks must be released with vlc_es_id_Release().
es | pointer to the ES id |
References EsHold(), and vlc_es_id_get_out().
Referenced by EsOutVaPrivControlLocked(), input_ControlPushEsHelper(), vlc_player_SelectEsIdList(), and vlc_player_track_priv_New().
bool vlc_es_id_IsStrIdStable | ( | vlc_es_id_t * | id | ) |
Return whether the ES track identifier is stable.
An string identifier is stable when it is certified to be the same across different playback instances for the same ES track.
id | pointer to the ES track id |
Referenced by vlc_player_input_GetSelectedTrackStringIds().
void vlc_es_id_Release | ( | vlc_es_id_t * | id | ) |
Decrease the ES track id reference count.
id | pointer to the ES track id |
References EsRelease(), and vlc_es_id_get_out().
Referenced by ControlRelease(), EsOutVaPrivControlLocked(), and vlc_player_track_priv_Delete().
|
static |