|
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_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. | |
| typedef enum video_orientation_t | video_orientation_t |
| Picture orientation. | |
| 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. | |
| typedef enum video_color_primaries_t | video_color_primaries_t |
| Video color primaries (a.k.a. | |
| typedef enum video_transfer_func_t | video_transfer_func_t |
| Video transfer functions. | |
| typedef enum video_color_space_t | video_color_space_t |
| Video color space (i.e. | |
| typedef enum video_chroma_location_t | video_chroma_location_t |
| Video chroma location. | |
| typedef enum video_color_range_t | video_color_range_t |
| typedef struct extra_languages_t | extra_languages_t |
| ES language definition. | |
Functions | |
| void | vlc_viewpoint_from_orientation (vlc_viewpoint_t *vp, video_orientation_t orient) |
| 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'. | |
| static int | video_format_Copy (video_format_t *p_dst, const video_format_t *p_src) |
| Copy video_format_t including the palette. | |
| 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. | |
| 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. | |
| void | video_format_CopyCrop (video_format_t *, const video_format_t *) |
| It will copy the crop properties from a video_format_t to another. | |
| 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. | |
| 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. | |
| 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 *fmt, video_orientation_t dst_orientation) |
| This function applies the transforms necessary to fmt so that the resulting fmt has the dst_orientation. | |
| 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 *, const video_format_t *) |
| This function will check if the first video format is similar to the second one. | |
| bool | video_format_IsSameChroma (const video_format_t *, const video_format_t *) |
| Checks whether the video formats have the same chroma and mask. | |
| void | video_format_Print (vlc_object_t *, const char *, const video_format_t *) |
| It prints details about the given video_format_t. | |
| static video_transform_t | transform_Inverse (video_transform_t transform) |
| void | es_format_Init (es_format_t *, int i_cat, vlc_fourcc_t i_codec) |
| This function will initialize a es_format_t structure. | |
| 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. | |
| 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_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 *, const es_format_t *) |
| This function will check if the first ES format is similar to the second one. | |
| void | es_format_LogDifferences (struct vlc_logger *, const char *name_a, const es_format_t *a, const char *name_b, const es_format_t *b) |
| Log differences between 2 ES format. | |
| void | video_format_LogDifferences (struct vlc_logger *log, const char *name_a, const video_format_t *a, const char *name_b, const video_format_t *b) |
| Log differences between 2 video format. | |
| 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. | |
| vlc_es_id_t * | vlc_es_id_Hold (vlc_es_id_t *es) |
| Increase the ES track id reference count. | |
| void | vlc_es_id_Release (vlc_es_id_t *id) |
| Decrease the ES track id reference count. | |
| int | vlc_es_id_GetInputId (vlc_es_id_t *id) |
| Get the ES track input id. | |
| bool | vlc_es_id_IsStrIdStable (vlc_es_id_t *id) |
| Return whether the ES track identifier is stable. | |
| const char * | vlc_es_id_GetStrId (vlc_es_id_t *id) |
| Get the unique string identifier. | |
| enum es_format_category_e | vlc_es_id_GetCat (vlc_es_id_t *id) |
| Get the ES category. | |
| static int | vlc_RGBChromaToMask (vlc_fourcc_t fcc, uint32_t *rmask, uint32_t *gmask, uint32_t *bmask, uint32_t *amask) |
| Get the native endianness mask for a RGB fourcc. | |
| static bool | es_format_HasVpxAlpha (const es_format_t *es) |
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 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 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_CLUT_COUNT 16 |
| #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(), DecoderSendSubstream(), DecoderThread_Reload(), DecoderUpdateFormatLocked(), DeleteConverter(), DeleteDecoder(), demux_PacketizerDestroy(), demux_PacketizerNew(), es_format_Change(), EsOutAddLocked(), 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(), vlc_subdec_desc_Clean(), and VoutSetupConverter().
| int es_format_Copy | ( | es_format_t * | p_dst, |
| const es_format_t * | p_src | ||
| ) |
This functions will copy a es_format_t.
|
inlinestatic |
References es_format_t::i_level.
| 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(), DecoderSendSubstream(), demux_PacketizerNew(), es_format_Change(), es_format_Clean(), es_format_InitFromVideo(), EsOutAddLocked(), filter_chain_NewInner(), filter_NewBlend(), GetCCDescLocked(), gsm_init(), ImageConvert(), ImageReadUrl(), ImageWrite(), qcelp_init(), rtp_ac3_begin(), rtp_g722_init(), rtp_g726_init(), rtp_h264_init(), rtp_h265_init(), rtp_mpa_init(), rtp_mpeg4a_init(), rtp_mpeg4v_init(), rtp_mpv_init(), rtp_opus_init(), rtp_pcm_init(), rtp_raw_begin(), SpuRenderCreateAndLoadScale(), SpuRenderCreateAndLoadText(), 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 VoutSetupConverter().
| 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().
| void es_format_LogDifferences | ( | struct vlc_logger * | log, |
| const char * | name_a, | ||
| const es_format_t * | a, | ||
| const char * | name_b, | ||
| const es_format_t * | b | ||
| ) |
Log differences between 2 ES format.
The difference checks the same fields as es_format_IsSimilar
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, es_format_t::video, VIDEO_ES, video_format_LogDifferences(), vlc_debug, 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(), and decoder_UpdateVideoOutput().
| 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(), picture_Destroy(), picture_InitPrivate(), picture_NewFromFormat(), PreparePicture(), spu_Cleanup(), spu_PrerenderWake(), subpicture_Delete(), subpicture_region_cache_Invalidate(), subpicture_region_Delete(), subpicture_region_ForPicture(), subpicture_region_New(), 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(), picture_InitPrivate(), PreparePicture(), spu_PrerenderWake(), subpicture_region_cache_Assign(), subpicture_region_ForPicture(), subpicture_region_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().
| 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(), picture_New(), spu_Create(), subpicture_New(), subpicture_region_cache_Invalidate(), subpicture_region_NewText(), vout_Create(), vout_display_window_New(), vout_OSDBackground(), vout_OSDEpgSlider(), and vout_OSDImage().
| bool video_format_IsSameChroma | ( | const video_format_t * | f1, |
| const video_format_t * | f2 | ||
| ) |
Checks whether the video formats have the same chroma and mask.
References video_format_t::i_chroma.
Referenced by filter_chain_GetVideoCtxOut(), filter_ConfigureBlend(), ImageConvert(), ImageRead(), ImageWrite(), PrerenderPicture(), SourceConverterBuffer(), and 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.
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, video_format_t::multiview_mode, video_format_t::orientation, and video_format_IsSameChroma().
Referenced by es_format_IsSimilar(), OSDEpgUpdate(), OSDTextUpdate(), spu_PrerenderWake(), and vout_ChangeSource().
| void video_format_LogDifferences | ( | struct vlc_logger * | log, |
| const char * | name_a, | ||
| const video_format_t * | a, | ||
| const char * | name_b, | ||
| const video_format_t * | b | ||
| ) |
Log differences between 2 video format.
The difference checks the same fields as video_format_IsSimilar
References 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_format_t::multiview_mode, video_format_t::orientation, and vlc_debug.
Referenced by es_format_LogDifferences(), 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_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, 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_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, ORIENT_NORMAL, video_format_t::orientation, VIDEO_ES, 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_UpdateTimerSmpteSource().
| 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().
|
inlinestatic |
Get the native endianness mask for a RGB fourcc.
References VLC_CODEC_ABGR, VLC_CODEC_ARGB, VLC_CODEC_BGRA, VLC_CODEC_BGRX, VLC_CODEC_RGBA, VLC_CODEC_RGBX, VLC_CODEC_XBGR, VLC_CODEC_XRGB, VLC_EINVAL, and VLC_SUCCESS.
| void vlc_viewpoint_from_orientation | ( | vlc_viewpoint_t * | vp, |
| video_orientation_t | orient | ||
| ) |
|
static |