libasf.c File Reference

Include dependency graph for libasf.c:


Defines

#define ASF_DEBUG   1
#define GUID_FMT   "0x%x-0x%x-0x%x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
#define GUID_PRINT(guid)
#define ASF_HAVE(n)   AsfObjectHelperHave( p_peek, i_peek, p_data, n )
#define ASF_SKIP(n)   AsfObjectHelperSkip( p_peek, i_peek, (uint8_t**)&p_data, n )
#define ASF_FUNCTION_READ_X(type, x, cmd)
#define ASF_READ1()   AsfObjectHelperRead1( p_peek, i_peek, (uint8_t**)&p_data )
#define ASF_READ2()   AsfObjectHelperRead2( p_peek, i_peek, (uint8_t**)&p_data )
#define ASF_READ4()   AsfObjectHelperRead4( p_peek, i_peek, (uint8_t**)&p_data )
#define ASF_READ8()   AsfObjectHelperRead8( p_peek, i_peek, (uint8_t**)&p_data )
#define ASF_READS(n)   AsfObjectHelperReadString( p_peek, i_peek, (uint8_t**)&p_data, n )
#define GETSTRINGW(psz_str, i_size)

Functions

static bool AsfObjectHelperHave (const uint8_t *p_peek, int i_peek, const uint8_t *p_current, int i_wanted)
static void AsfObjectHelperSkip (const uint8_t *p_peek, int i_peek, uint8_t **pp_data, int i_wanted)
static uint8_t AsfObjectHelperRead1 (const uint8_t *p_peek, int i_peek, uint8_t **pp_data)
static uint16_t AsfObjectHelperRead2 (const uint8_t *p_peek, int i_peek, uint8_t **pp_data)
static uint32_t AsfObjectHelperRead4 (const uint8_t *p_peek, int i_peek, uint8_t **pp_data)
static uint64_t AsfObjectHelperRead8 (const uint8_t *p_peek, int i_peek, uint8_t **pp_data)
static char * AsfObjectHelperReadString (const uint8_t *p_peek, int i_peek, uint8_t **pp_data, int i_size)
static int ASF_ReadObject (stream_t *, asf_object_t *, asf_object_t *)
void ASF_GetGUID (guid_t *p_guid, const uint8_t *p_data)
bool ASF_CmpGUID (const guid_t *p_guid1, const guid_t *p_guid2)
static int ASF_ReadObjectCommon (stream_t *s, asf_object_t *p_obj)
static int ASF_NextObject (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_Null (asf_object_t *pp_obj)
static int ASF_ReadObject_Header (stream_t *s, asf_object_t *p_obj)
static int ASF_ReadObject_Data (stream_t *s, asf_object_t *p_obj)
static int ASF_ReadObject_Index (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_Index (asf_object_t *p_obj)
static int ASF_ReadObject_file_properties (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_metadata (asf_object_t *p_obj)
static int ASF_ReadObject_metadata (stream_t *s, asf_object_t *p_obj)
static int ASF_ReadObject_header_extension (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_header_extension (asf_object_t *p_obj)
static int ASF_ReadObject_stream_properties (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_stream_properties (asf_object_t *p_obj)
static int ASF_ReadObject_codec_list (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_codec_list (asf_object_t *p_obj)
static int ASF_ReadObject_content_description (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_content_description (asf_object_t *p_obj)
static int ASF_ReadObject_language_list (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_language_list (asf_object_t *p_obj)
static int ASF_ReadObject_stream_bitrate_properties (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_stream_bitrate_properties (asf_object_t *p_obj)
static int ASF_ReadObject_extended_stream_properties (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_extended_stream_properties (asf_object_t *p_obj)
static int ASF_ReadObject_advanced_mutual_exclusion (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_advanced_mutual_exclusion (asf_object_t *p_obj)
static int ASF_ReadObject_stream_prioritization (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_stream_prioritization (asf_object_t *p_obj)
static int ASF_ReadObject_extended_content_description (stream_t *s, asf_object_t *p_obj)
static void ASF_FreeObject_extended_content_description (asf_object_t *p_obj)
static void ASF_FreeObject (stream_t *s, asf_object_t *p_obj)
static void ASF_ObjectDumpDebug (vlc_object_t *p_obj, asf_object_common_t *p_node, int i_level)
asf_object_root_tASF_ReadObjectRoot (stream_t *s, int b_seekable)
void ASF_FreeObjectRoot (stream_t *s, asf_object_root_t *p_root)
int __ASF_CountObject (asf_object_t *p_obj, const guid_t *p_guid)
void * __ASF_FindObject (asf_object_t *p_obj, const guid_t *p_guid, int i_number)

Variables

struct {
   const guid_t *   p_id
   int   i_type
   int(*   ASF_ReadObject_function )(stream_t *, asf_object_t *p_obj)
   void(*   ASF_FreeObject_function )(asf_object_t *p_obj)
ASF_Object_Function []
struct {
   const guid_t *   p_id
   const char *   psz_name
ASF_ObjectDumpDebugInfo []

Define Documentation

#define ASF_DEBUG   1

#define ASF_FUNCTION_READ_X ( type,
x,
cmd   ) 

Value:

static inline type AsfObjectHelperRead##x( const uint8_t *p_peek, int i_peek, uint8_t **pp_data ) { \
    uint8_t *p_data = *pp_data; \
    type i_ret = 0;  \
    if( ASF_HAVE(x) )   \
        i_ret = cmd;    \
    ASF_SKIP(x);        \
    *pp_data = p_data;  \
    return i_ret;   }

#define ASF_HAVE (  )     AsfObjectHelperHave( p_peek, i_peek, p_data, n )

 
#define ASF_READ1 (  )     AsfObjectHelperRead1( p_peek, i_peek, (uint8_t**)&p_data )

 
#define ASF_READ2 (  )     AsfObjectHelperRead2( p_peek, i_peek, (uint8_t**)&p_data )

 
#define ASF_READ4 (  )     AsfObjectHelperRead4( p_peek, i_peek, (uint8_t**)&p_data )

 
#define ASF_READ8 (  )     AsfObjectHelperRead8( p_peek, i_peek, (uint8_t**)&p_data )

#define ASF_READS (  )     AsfObjectHelperReadString( p_peek, i_peek, (uint8_t**)&p_data, n )

#define ASF_SKIP (  )     AsfObjectHelperSkip( p_peek, i_peek, (uint8_t**)&p_data, n )

#define GETSTRINGW ( psz_str,
i_size   ) 

Value:

do { \
    psz_str = calloc( i_size*3+1, sizeof(char) ); \
    if( psz_str ) { \
        ib = (const char *)p_data; \
        ob = psz_str; \
        i_ibl = i_size; \
        i_obl = i_size*3; \
        i_len = vlc_iconv(cd, &ib, &i_ibl, &ob, &i_obl); \
        p_data += i_size; \
    } } while(0)

#define GUID_FMT   "0x%x-0x%x-0x%x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"

#define GUID_PRINT ( guid   ) 

Value:

(guid).v1,              \
    (guid).v2,              \
    (guid).v3,              \
    (guid).v4[0],(guid).v4[1],(guid).v4[2],(guid).v4[3],    \
    (guid).v4[4],(guid).v4[5],(guid).v4[6],(guid).v4[7]


Function Documentation

int __ASF_CountObject ( asf_object_t p_obj,
const guid_t p_guid 
)

void* __ASF_FindObject ( asf_object_t p_obj,
const guid_t p_guid,
int  i_number 
)

bool ASF_CmpGUID ( const guid_t p_guid1,
const guid_t p_guid2 
)

static void ASF_FreeObject ( stream_t s,
asf_object_t p_obj 
) [static]

static void ASF_FreeObject_advanced_mutual_exclusion ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_codec_list ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_content_description ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_extended_content_description ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_extended_stream_properties ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_header_extension ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_Index ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_language_list ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_metadata ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_Null ( asf_object_t pp_obj  )  [static]

static void ASF_FreeObject_stream_bitrate_properties ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_stream_prioritization ( asf_object_t p_obj  )  [static]

static void ASF_FreeObject_stream_properties ( asf_object_t p_obj  )  [static]

void ASF_FreeObjectRoot ( stream_t s,
asf_object_root_t p_root 
)

void ASF_GetGUID ( guid_t p_guid,
const uint8_t *  p_data 
)

static int ASF_NextObject ( stream_t s,
asf_object_t p_obj 
) [static]

static void ASF_ObjectDumpDebug ( vlc_object_t p_obj,
asf_object_common_t p_node,
int  i_level 
) [static]

static int ASF_ReadObject ( stream_t ,
asf_object_t ,
asf_object_t  
) [static]

static int ASF_ReadObject_advanced_mutual_exclusion ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_codec_list ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_content_description ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_Data ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_extended_content_description ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_extended_stream_properties ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_file_properties ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_Header ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_header_extension ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_Index ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_language_list ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_metadata ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_stream_bitrate_properties ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_stream_prioritization ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObject_stream_properties ( stream_t s,
asf_object_t p_obj 
) [static]

static int ASF_ReadObjectCommon ( stream_t s,
asf_object_t p_obj 
) [static]

asf_object_root_t* ASF_ReadObjectRoot ( stream_t s,
int  b_seekable 
)

static bool AsfObjectHelperHave ( const uint8_t *  p_peek,
int  i_peek,
const uint8_t *  p_current,
int  i_wanted 
) [inline, static]

static uint8_t AsfObjectHelperRead1 ( const uint8_t *  p_peek,
int  i_peek,
uint8_t **  pp_data 
) [inline, static]

static uint16_t AsfObjectHelperRead2 ( const uint8_t *  p_peek,
int  i_peek,
uint8_t **  pp_data 
) [inline, static]

static uint32_t AsfObjectHelperRead4 ( const uint8_t *  p_peek,
int  i_peek,
uint8_t **  pp_data 
) [inline, static]

static uint64_t AsfObjectHelperRead8 ( const uint8_t *  p_peek,
int  i_peek,
uint8_t **  pp_data 
) [inline, static]

static char* AsfObjectHelperReadString ( const uint8_t *  p_peek,
int  i_peek,
uint8_t **  pp_data,
int  i_size 
) [static]

static void AsfObjectHelperSkip ( const uint8_t *  p_peek,
int  i_peek,
uint8_t **  pp_data,
int  i_wanted 
) [inline, static]


Variable Documentation

void(* ASF_FreeObject_function)(asf_object_t *p_obj)

struct { ... } ASF_Object_Function[] [static]

struct { ... } ASF_ObjectDumpDebugInfo[] [static]

int(* ASF_ReadObject_function)(stream_t *, asf_object_t *p_obj)

int i_type

const guid_t* p_id

const guid_t* p_id

const char* psz_name


Generated on Wed Aug 13 08:03:22 2008 for VLC by  doxygen 1.5.1