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... | |
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 |
Referenced by aout_FormatPrintChannels(), aout_OutputNew(), and aout_SetWavePhysicalChannels().
#define AOUT_CHAN_LEFT 0x2 |
Referenced by aout_FormatPrintChannels(), aout_SetWavePhysicalChannels(), and ModuleThread_UpdateAudioFormat().
#define AOUT_CHAN_LFE 0x1000 |
Referenced by aout_FormatPrintChannels(), and aout_SetWavePhysicalChannels().
#define AOUT_CHAN_MAX 9 |
#define AOUT_CHAN_MIDDLELEFT 0x100 |
Referenced by aout_FormatPrintChannels(), and aout_SetWavePhysicalChannels().
#define AOUT_CHAN_MIDDLERIGHT 0x200 |
Referenced by aout_FormatPrintChannels(), and aout_SetWavePhysicalChannels().
#define AOUT_CHAN_REARCENTER 0x10 |
Referenced by aout_FormatPrintChannels(), and aout_SetWavePhysicalChannels().
#define AOUT_CHAN_REARLEFT 0x20 |
Referenced by aout_FormatPrintChannels(), and aout_SetWavePhysicalChannels().
#define AOUT_CHAN_REARRIGHT 0x40 |
Referenced by aout_FormatPrintChannels(), and aout_SetWavePhysicalChannels().
#define AOUT_CHAN_RIGHT 0x4 |
Referenced by aout_FormatPrintChannels(), aout_SetWavePhysicalChannels(), and ModuleThread_UpdateAudioFormat().
#define AOUT_CHANMODE_DOLBYSTEREO 0x2 |
Referenced by aout_FormatPrintChannels(), aout_PrepareStereoMode(), and ModuleThread_UpdateAudioFormat().
#define AOUT_CHANMODE_DUALMONO 0x1 |
Referenced by aout_FormatPrintChannels(), and aout_PrepareStereoMode().
#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) |
Referenced by aout_OutputNew().
#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 |
Referenced by aout_OutputNew().
#define AUDIO_REPLAY_GAIN_ALBUM (1) |
Referenced by aout_ReplayGainSelect(), and vlc_audio_replay_gain_MergeFromMeta().
#define AUDIO_REPLAY_GAIN_MAX (2) |
audio replay gain description
Referenced by aout_replaygain_changed(), aout_ReplayGainSelect(), CreateDecoder(), EsOutFillEsFmt(), and EsOutUpdateInfo().
#define AUDIO_REPLAY_GAIN_TRACK (0) |
Referenced by aout_ReplayGainSelect(), EsOutUpdateInfo(), and vlc_audio_replay_gain_MergeFromMeta().
#define CHROMA_LOCATION_MAX CHROMA_LOCATION_BOTTOM_CENTER |
Referenced by EsOutUpdateInfo().
#define COLOR_PRIMARIES_BT470_BG COLOR_PRIMARIES_BT601_625 |
#define COLOR_PRIMARIES_BT470_M COLOR_PRIMARIES_FCC1953 |
Referenced by EsOutUpdateInfo().
#define COLOR_PRIMARIES_EBU_3213 COLOR_PRIMARIES_BT601_625 |
#define COLOR_PRIMARIES_MAX COLOR_PRIMARIES_FCC1953 |
Referenced by EsOutUpdateInfo().
#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 |
Referenced by SpuRenderText().
#define COLOR_RANGE_MAX COLOR_RANGE_LIMITED |
Referenced by EsOutUpdateInfo().
#define COLOR_RANGE_STUDIO COLOR_RANGE_LIMITED |
#define COLOR_SPACE_MAX COLOR_SPACE_BT2020 |
Referenced by EsOutUpdateInfo().
#define COLOR_SPACE_SMPTE_170 COLOR_SPACE_BT601 |
#define COLOR_SPACE_SMPTE_240 COLOR_SPACE_SMPTE_170 |
#define COLOR_SPACE_SRGB COLOR_SPACE_BT709 |
Referenced by SpuRenderText().
#define ES_CATEGORY_COUNT (DATA_ES + 1) |
Referenced by LoadDecoder().
#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 |
Referenced by es_format_Init(), and EsOutSelect().
#define INPUT_CHAN_MAX 64 |
Referenced by aout_DecNew().
#define MULTIVIEW_STEREO_MAX MULTIVIEW_STEREO_CHECKERBOARD |
Referenced by EsOutUpdateInfo().
#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 | ) | parity(orient) |
If the orientation is natural or mirrored.
Referenced by transform_GetBasicOps().
#define ORIENT_IS_SWAP | ( | orient | ) | (((orient) & 4) != 0) |
If the orientation swaps dimensions.
Referenced by video_format_TransformBy(), vout_display_GetDefaultDisplaySize(), and vout_display_SizeWindow().
#define ORIENT_ROTATE_180 | ( | orient | ) | ((orient) ^ 3) |
Applies horizontal flip 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 |
Referenced by EsOutUpdateInfo().
#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(), VLC_API, vlc_es_id_GetCat(), vlc_es_id_GetInputId(), vlc_es_id_Hold(), and vlc_es_id_Release().
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 CmdCleanAdd(), CmdCleanControl(), decoder_Clean(), DecoderThread_Reload(), DecoderUpdateFormatLocked(), DecoderUpdatePreroll(), DeleteConverter(), DeleteDecoder(), DeleteEncoder(), demux_PacketizerDestroy(), demux_PacketizerNew(), es_format_Change(), EsOutAddSlaveLocked(), EsOutCreateCCChannels(), EsOutDestroyDecoder(), EsOutEsUpdateFmt(), EsOutSend(), EsOutVaControlLocked(), EsRelease(), filter_chain_AppendInner(), filter_chain_Delete(), filter_chain_DeleteFilter(), filter_chain_Reset(), ImageConvert(), ImageRead(), ImageReadUrl(), ImageWrite(), input_item_Release(), input_item_UpdateTracksInfo(), sout_MuxAddStream(), sout_MuxDeleteStream(), ThreadChangeFilters(), 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 * | , |
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, i_codec, es_format_t::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(), DecoderUpdatePreroll(), demux_PacketizerNew(), es_format_Change(), es_format_Clean(), es_format_InitFromVideo(), EsOutAddSlaveLocked(), EsOutCreateCCChannels(), filter_chain_NewInner(), filter_NewBlend(), ImageConvert(), ImageReadUrl(), ImageWrite(), input_DecoderSetCcState(), SpuRenderCreateAndLoadScale(), SpuRenderCreateAndLoadText(), and vlm_OnMediaUpdate().
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.
References es_format_Init(), video_format_t::i_chroma, es_format_t::video, VIDEO_ES, and video_format_Copy().
Referenced by CreateEncoder(), ImageConvert(), ImageWrite(), ThreadChangeFilters(), and VoutDisplayCreateRender().
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.
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 DecoderThread_ProcessInput(), and ThreadChangeFilters().
|
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 (pallette is not alloc'ed).
Referenced by video_format_CopyCropAr().
|
inlinestatic |
Cleanup and free palette of this video_format_t.
p_src | video_format_t structure to clean |
References video_format_t::p_palette, video_format_CopyCrop(), video_format_Setup(), and VLC_API.
Referenced by es_format_Clean(), ImageRead(), spu_Cleanup(), spu_prerender_cleanup_routine(), spu_PrerenderThread(), spu_PrerenderWake(), subpicture_Delete(), subpicture_region_Delete(), subpicture_region_New(), subpicture_region_private_Delete(), subpicture_Update(), ThreadChangeFilters(), video_splitter_Delete(), vout_display_Delete(), vout_display_New(), vout_display_start(), vout_GetDevice(), vout_Release(), vout_ReleaseDisplay(), vout_Request(), 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(), spu_PrerenderThread(), spu_PrerenderWake(), subpicture_region_NewInternal(), subpicture_region_private_New(), subpicture_Update(), ThreadChangeFilters(), video_splitter_New(), vout_display_New(), vout_display_start(), vout_Start(), and VoutFixFormat().
void video_format_CopyCrop | ( | video_format_t * | , |
const video_format_t * | |||
) |
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_Clean(), video_format_CopyCropAr(), vout_snapshot_Set(), and vout_UpdateDisplaySourceProperties().
|
inlinestatic |
References video_format_t::i_sar_den, video_format_t::i_sar_num, transform(), video_format_ApplyRotation(), video_format_CopyCrop(), video_format_GetTransform(), video_format_IsSimilar(), video_format_Print(), video_format_ScaleCropAr(), video_format_TransformBy(), video_format_TransformTo(), and VLC_API.
Referenced by ThreadDisplayRenderPicture(), vout_ConvertForDisplay(), vout_GetPicture(), and VoutVideoFilterInteractiveNewPicture().
void video_format_FixRgb | ( | video_format_t * | ) |
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_CopyCropAr(), and 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(), spu_PrerenderThread(), subpicture_New(), vout_OSDBackground(), vout_OSDEpgSlider(), vout_OSDImage(), and vout_OSDTextRegion().
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.
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(), video_format_CopyCropAr(), and vout_ChangeSource().
void video_format_Print | ( | vlc_object_t * | , |
const char * | , | ||
const video_format_t * | |||
) |
It prints details about the given video_format_t.
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, and msg_Dbg.
Referenced by video_format_CopyCropAr(), vout_Start(), and vout_UpdateSourceCrop().
void video_format_ScaleCropAr | ( | video_format_t * | , |
const video_format_t * | |||
) |
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().
Referenced by video_format_CopyCropAr().
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.
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_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_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(), picture_Setup(), and video_format_Clean().
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, and transform_GetBasicOps().
Referenced by video_format_CopyCropAr(), and 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.
Referenced by video_format_CopyCropAr().
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 es_format_Change(), vlc_player_GetPrivTrack(), vlc_player_input_FindTrackById(), vlc_player_osd_Track(), vlc_player_SelectEsId(), vlc_player_SelectEsIdList(), 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 es_format_Change().
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().
id | pointer to the ES id |
References EsHold(), and vlc_es_id_get_out().
Referenced by es_format_Change(), input_ControlPushEsHelper(), vlc_player_SelectEsIdList(), and vlc_player_track_priv_New().
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(), es_format_Change(), and vlc_player_track_priv_Delete().
|
static |