Data Structures | Defines | Typedefs | Enumerations | Functions

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 AUDIO_REPLAY_GAIN_MAX   (2)
 audio replay gain description
#define AUDIO_REPLAY_GAIN_TRACK   (0)
#define AUDIO_REPLAY_GAIN_ALBUM   (1)

Typedefs

typedef struct extra_languages_t extra_languages_t
 ES language definition.

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_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.
void video_format_ScaleCropAr (video_format_t *, const video_format_t *)
 It will compute the crop/ar properties when scaling.
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_Print (vlc_object_t *, const char *, const video_format_t *)
 It prints details about the given video_format_t.
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 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.

Detailed Description

This file defines the elementary streams format types.


Define Documentation

#define AUDIO_REPLAY_GAIN_ALBUM   (1)

Referenced by aout_ReplayGainSelect().

#define AUDIO_REPLAY_GAIN_MAX   (2)

audio replay gain description

Referenced by aout_ReplayGainSelect().

#define AUDIO_REPLAY_GAIN_TRACK   (0)

Typedef Documentation

ES language definition.


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 
)
void es_format_InitFromVideo ( es_format_t ,
const video_format_t  
)
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 subpicture_Update(), ThreadChangeFilters(), ThreadStop(), video_splitter_Delete(), VoutCreate(), and VoutDestructor().

static int video_format_Copy ( video_format_t p_dst,
const video_format_t p_src 
) [inline, static]
void video_format_CopyCrop ( video_format_t ,
const video_format_t  
)
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 OSDRegion(), OSDTextUpdate(), subpicture_New(), vout_OSDEpgSlider(), and vout_OSDEpgText().

bool video_format_IsSimilar ( const video_format_t ,
const video_format_t  
)
void video_format_Print ( vlc_object_t ,
const char *  ,
const video_format_t  
)
void video_format_ScaleCropAr ( 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_sar_num,
int  i_sar_den 
)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines