vlc_es.h File Reference

This file defines the elementary streams format types. More...

Include dependency graph for vlc_es.h:

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.


Detailed Description

This file defines the elementary streams format types.


Define Documentation

#define AUDIO_REPLAY_GAIN_ALBUM   (1)

#define AUDIO_REPLAY_GAIN_MAX   (2)

audio replay gain description

Referenced by CreateDecoder(), EsOutAdd(), EsOutUpdateInfo(), and ReplayGainSelect().

#define AUDIO_REPLAY_GAIN_TRACK   (0)

#define VLC_ES_H   1


Enumeration Type Documentation

ES Categories.

Enumerator:
UNKNOWN_ES 
VIDEO_ES 
AUDIO_ES 
SPU_ES 
NAV_ES 


Function Documentation

void es_format_Clean ( es_format_t fmt  ) 

int es_format_Copy ( es_format_t p_dst,
const es_format_t p_src 
)

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  
)

static void video_format_Clean ( video_format_t p_src  )  [inline, static]

Cleanup and free palette of this video_format_t.

Parameters:
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.

Parameters:
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  ) 

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'.

Parameters:
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  
)

void video_format_Setup ( video_format_t ,
vlc_fourcc_t  i_chroma,
int  i_width,
int  i_height,
int  i_aspect 
)


Generated on Sat Nov 21 08:05:26 2009 for VLC by  doxygen 1.5.6