
Go to the source code of this file.
Data Structures | |
| struct | video_palette_t |
| video palette data More... | |
| 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 |
| ES format definition. More... | |
Defines | |
| #define | VLC_ES_H 1 |
| #define | AUDIO_REPLAY_GAIN_MAX (2) |
| audio replay gain description | |
| #define | AUDIO_REPLAY_GAIN_TRACK (0) |
| #define | AUDIO_REPLAY_GAIN_ALBUM (1) |
Enumerations | |
| enum | es_format_category_e { UNKNOWN_ES = 0x00, VIDEO_ES = 0x01, AUDIO_ES = 0x02, SPU_ES = 0x03, NAV_ES = 0x04 } |
| ES Categories. 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'. | |
| 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_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_aspect) |
| It will fill up a video_format_tvideo_format_t using the given arguments. | |
| 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. | |
| void | video_format_FixRgb (video_format_t *) |
| This function will fill all RGB shift from RGB masks. | |
| 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 relasing 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. | |
| #define AUDIO_REPLAY_GAIN_ALBUM (1) |
Referenced by ParseVorbisComments(), ReplayGainSelect(), and vlc_audio_replay_gain_MergeFromMeta().
| #define AUDIO_REPLAY_GAIN_MAX (2) |
audio replay gain description
Referenced by CreateDecoder(), EsOutAdd(), EsOutUpdateInfo(), and ReplayGainSelect().
| #define AUDIO_REPLAY_GAIN_TRACK (0) |
Referenced by EsOutUpdateInfo(), ParseVorbisComments(), ReplayGainSelect(), and vlc_audio_replay_gain_MergeFromMeta().
| #define VLC_ES_H 1 |
| enum es_format_category_e |
| void es_format_Clean | ( | es_format_t * | fmt | ) |
This function will clean up a es_format_t and relasing all associated resources.
You can call it multiple times on the same structure.
References i, es_format_t::i_extra, es_format_t::i_extra_languages, es_format_t::p_extra, es_format_t::p_extra_languages, video_format_t::p_palette, 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, es_format_t::subs, and es_format_t::video.
Referenced by Add(), BuildChromaChain(), BuildChromaResize(), Close(), CodecAudioParse(), CodecVideoParse(), CreateDecoder(), DecoderProcessAudio(), DecoderProcessVideo(), DecoderUpdateFormatLocked(), Del(), DeleteDecoder(), DeleteEncoder(), DeleteFilter(), Demux(), demux_PacketizerDestroy(), demux_PacketizerNew(), DemuxInit(), DemuxRecVideo(), DvdReadSetArea(), EsOutAdd(), EsOutDel(), EsOutDelete(), EsOutSend(), filter_chain_AppendFilterInternal(), filter_chain_Delete(), filter_chain_Reset(), input_item_Clean(), MediaDelES(), MP4_TrackDestroy(), Ogg_LogicalStreamDelete(), OpenPacketizer(), PIDClean(), RollOverTcp(), SessionsSetup(), and matroska_segment_c::~matroska_segment_c().
| int es_format_Copy | ( | es_format_t * | p_dst, | |
| const es_format_t * | p_src | |||
| ) |
This functions will copy a es_format_t.
References i, es_format_t::i_extra, es_format_t::i_extra_languages, es_format_t::p_extra, es_format_t::p_extra_languages, video_format_t::p_palette, 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, strdup(), es_format_t::subs, es_format_t::video, and VLC_SUCCESS.
Referenced by Activate(), Add(), AddStream(), BuildChromaChain(), CreateDecoder(), DecoderProcessAudio(), DecoderProcessSout(), DecoderProcessVideo(), DecoderUpdateFormatLocked(), EsFormatMergeSize(), EsOutAdd(), filter_chain_AppendFilterInternal(), filter_chain_Reset(), input_DecoderHasFormatChanged(), MediaAddES(), Ogg_BeginningOfStream(), OpenDecoder(), OpenDecoderCommon(), OpenPacketizer(), PacketizerOpen(), PMTSetupEsDvbSubtitle(), PMTSetupEsTeletext(), and transcode_video_process().
| 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::audio, es_format_t::audio_replay_gain, es_format_t::b_packetized, es_format_t::i_bitrate, es_format_t::i_cat, es_format_t::i_codec, es_format_t::i_extra, es_format_t::i_extra_languages, es_format_t::i_group, es_format_t::i_id, es_format_t::i_original_fourcc, es_format_t::i_priority, es_format_t::p_extra, es_format_t::p_extra_languages, es_format_t::psz_description, es_format_t::psz_language, es_format_t::subs, and es_format_t::video.
Referenced by __filter_chain_New(), CodecAudioParse(), CodecVideoParse(), CreateAndLoadScale(), CreateDecoder(), CreateEncoder(), CreateFilter(), DecoderOpen(), demux_PacketizerNew(), DemuxInit(), DemuxOpen(), DemuxRecVideo(), es_format_InitFromVideo(), EsOutSend(), filter_NewBlend(), gsm_init(), ImageConvert(), ImageFilter(), ImageWrite(), InitVideo(), input_DecoderSetCcState(), l16m_init(), l16s_init(), MP4_TrackCreate(), mpa_init(), mpv_init(), Ogg_FindLogicalStreams(), Open(), OpenAudio(), OpenAudioDev(), OpenDecoder(), OpenDemux(), OpenScaler(), OpenVideo(), OpenVideoDev(), matroska_segment_c::ParseTrackEntry(), ParseVobSubIDX(), pcma_init(), pcmu_init(), PIDFillFormat(), PIDInit(), PMTSetupEsDvbSubtitle(), PMTSetupEsTeletext(), ps_track_fill(), ps_track_init(), qcelp_init(), ReadBlockHeader(), ReadNSVs(), RenderCursor(), RunThread(), screen_InitCapture(), SessionsSetup(), SpuRenderCreateAndLoadText(), transcode_audio_new(), UserPmt(), vlm_OnMediaUpdate(), and vorbis_decode().
| 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 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, es_format_t::i_cat, video_format_t::i_chroma, es_format_t::i_codec, audio_format_t::i_format, audio_format_t::i_original_channels, audio_format_t::i_physical_channels, audio_format_t::i_rate, SPU_ES, es_format_t::video, VIDEO_ES, video_format_IsSimilar(), and vlc_fourcc_GetCodec().
Referenced by Create(), and OpenCommon().
| static void video_format_Clean | ( | video_format_t * | p_src | ) | [inline, static] |
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 video_splitter_Delete().
| static int video_format_Copy | ( | video_format_t * | p_dst, | |
| const video_format_t * | p_src | |||
| ) | [inline, static] |
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 es_format_InitFromVideo(), video_splitter_New(), and vout_display_New().
| 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_lbshift, video_format_t::i_lgshift, video_format_t::i_lrshift, video_format_t::i_rbshift, video_format_t::i_rgshift, video_format_t::i_rmask, video_format_t::i_rrshift, MaskToShift(), VLC_CODEC_RGB15, VLC_CODEC_RGB16, VLC_CODEC_RGB24, and VLC_CODEC_RGB32.
Referenced by Blend(), BuildChromaChain(), PictureHeapFixRgb(), and video_format_IsSimilar().
| static void video_format_Init | ( | video_format_t * | p_src, | |
| vlc_fourcc_t | i_chroma | |||
| ) | [inline, static] |
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::i_sar_den, video_format_t::i_sar_num, and video_format_t::p_palette.
Referenced by LoadImage().
| 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_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_FixRgb(), VLC_CODEC_RGB15, VLC_CODEC_RGB16, VLC_CODEC_RGB24, and VLC_CODEC_RGB32.
Referenced by es_format_IsSimilar().
| void video_format_Setup | ( | video_format_t * | , | |
| vlc_fourcc_t | i_chroma, | |||
| int | i_width, | |||
| int | i_height, | |||
| int | i_aspect | |||
| ) |
It will fill up a video_format_tvideo_format_t using the given arguments.
Becarefull that the video_format_t must already be initialized.
References video_format_t::i_aspect, video_format_t::i_bits_per_pixel, video_format_t::i_chroma, video_format_t::i_height, 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_GREY, 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_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_Y211, VLC_CODEC_YUVA, VLC_CODEC_YUVP, VLC_CODEC_YUYV, VLC_CODEC_YV12, VLC_CODEC_YVYU, and vlc_fourcc_GetCodec().
Referenced by DecodeBlock(), exec_DataSharedMem(), Open(), OpenDecoder(), OverlayCreate(), picture_New(), picture_NewFromResource(), and picture_Setup().
1.5.6