
| #define __EVEN | ( | x | ) | (((x) + 1) & ~1) |
Referenced by AVI_ChunkRead_list(), AVI_ChunkReadRoot(), AVI_NextChunk(), AVI_PacketNext(), AVI_PacketRead(), and Demux_Seekable().
| #define AVI_DEBUG 1 |
| #define AVI_READ | ( | res, | |||
| func, | |||||
| size | ) |
Value:
if( i_read < size ) { \ free( p_buff); \ return VLC_EGENERIC; \ } \ i_read -= size; \ res = func( p_read ); \ p_read += size \
| #define AVI_READ1BYTE | ( | i_byte | ) | AVI_READ( i_byte, GetB, 1 ) |
Referenced by AVI_ChunkRead_indx().
| #define AVI_READ2BYTES | ( | i_word | ) | AVI_READ( i_word, GetWLE, 2 ) |
Referenced by AVI_ChunkRead_indx(), and AVI_ChunkRead_strf().
| #define AVI_READ4BYTES | ( | i_dword | ) | AVI_READ( i_dword, GetDWLE, 4 ) |
Referenced by AVI_ChunkRead_avih(), AVI_ChunkRead_idx1(), AVI_ChunkRead_indx(), AVI_ChunkRead_strf(), and AVI_ChunkRead_strh().
| #define AVI_READ8BYTES | ( | i_qword | ) | AVI_READ( i_qword, GetQWLE, 8 ) |
Referenced by AVI_ChunkRead_indx().
| #define AVI_READCHUNK_ENTER |
Value:
int64_t i_read = __EVEN(p_chk->common.i_chunk_size ) + 8; \ if( i_read > 100000000 ) \ { \ msg_Err( s, "Big chunk ignored" ); \ return VLC_EGENERIC; \ } \ uint8_t *p_read, *p_buff; \ if( !( p_read = p_buff = malloc(i_read ) ) ) \ { \ return VLC_EGENERIC; \ } \ i_read = stream_Read( s, p_read, i_read ); \ if( i_read < (int64_t)__EVEN(p_chk->common.i_chunk_size ) + 8 ) \ { \ free( p_buff ); \ return VLC_EGENERIC; \ }\ p_read += 8; \ i_read -= 8
Referenced by AVI_ChunkRead_avih(), AVI_ChunkRead_idx1(), AVI_ChunkRead_indx(), AVI_ChunkRead_strd(), AVI_ChunkRead_strf(), AVI_ChunkRead_strh(), and AVI_ChunkRead_strz().
| #define AVI_READCHUNK_EXIT | ( | code | ) |
Value:
free( p_buff ); \
return code
Referenced by AVI_ChunkRead_avih(), AVI_ChunkRead_idx1(), AVI_ChunkRead_indx(), AVI_ChunkRead_strd(), AVI_ChunkRead_strf(), AVI_ChunkRead_strh(), and AVI_ChunkRead_strz().
| #define AVI_READFOURCC | ( | i_dword | ) | AVI_READ( i_dword, GetFOURCC, 4 ) |
Referenced by AVI_ChunkRead_idx1(), AVI_ChunkRead_strf(), and AVI_ChunkRead_strh().
| int _AVI_ChunkCount | ( | avi_chunk_t * | p_chk, | |
| vlc_fourcc_t | i_fourcc | |||
| ) |
| void* _AVI_ChunkFind | ( | avi_chunk_t * | p_chk, | |
| vlc_fourcc_t | i_fourcc, | |||
| int | i_number | |||
| ) |
| void _AVI_ChunkFree | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) |
| int _AVI_ChunkRead | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk, | |||
| avi_chunk_t * | p_father | |||
| ) |
| static void AVI_ChunkDumpDebug_level | ( | vlc_object_t * | p_obj, | |
| avi_chunk_t * | p_chk, | |||
| unsigned | i_level | |||
| ) | [static] |
References AVIFOURCC_LIST, AVIFOURCC_ON2, AVIFOURCC_RIFF, avi_chunk_u::common, i, avi_chunk_common_s::i_chunk_fourcc, avi_chunk_common_s::i_chunk_pos, avi_chunk_common_s::i_chunk_size, avi_chunk_list_s::i_type, avi_chunk_u::list, msg_Dbg, avi_chunk_common_s::p_first, avi_chunk_common_s::p_next, and gen_builder::str.
Referenced by AVI_ChunkReadRoot().
| static void AVI_ChunkFree_idx1 | ( | avi_chunk_t * | p_chk | ) | [static] |
| static void AVI_ChunkFree_indx | ( | avi_chunk_t * | p_chk | ) | [static] |
References avi_chunk_indx_s::field, FREENULL, avi_chunk_indx_s::idx, avi_chunk_indx_s::std, and avi_chunk_indx_s::super.
| static void AVI_ChunkFree_nothing | ( | avi_chunk_t * | p_chk | ) | [static] |
References VLC_UNUSED.
| static void AVI_ChunkFree_strd | ( | avi_chunk_t * | p_chk | ) | [static] |
References avi_chunk_strd_s::p_data, and avi_chunk_u::strd.
| static void AVI_ChunkFree_strf | ( | avi_chunk_t * | p_chk | ) | [static] |
| static void AVI_ChunkFree_strz | ( | avi_chunk_t * | p_chk | ) | [static] |
References FREENULL, avi_chunk_STRING_s::p_str, and avi_chunk_STRING_s::p_type.
| void AVI_ChunkFreeRoot | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) |
References AVI_ChunkFree.
| static int AVI_ChunkFunctionFind | ( | vlc_fourcc_t | i_fourcc | ) | [static] |
| static int AVI_ChunkRead_avih | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
References AVI_READ4BYTES, AVI_READCHUNK_ENTER, AVI_READCHUNK_EXIT, AVIF_HASINDEX, AVIF_ISINTERLEAVED, AVIF_MUSTUSEINDEX, AVIF_TRUSTCKTYPE, AVIFOURCC_avih, avi_chunk_u::avih, avi_chunk_u::common, avi_chunk_common_s::i_chunk_fourcc, avi_chunk_avih_s::i_flags, avi_chunk_avih_s::i_height, avi_chunk_avih_s::i_initialframes, avi_chunk_avih_s::i_length, avi_chunk_avih_s::i_maxbytespersec, avi_chunk_avih_s::i_microsecperframe, avi_chunk_avih_s::i_rate, avi_chunk_avih_s::i_reserved1, avi_chunk_avih_s::i_scale, avi_chunk_avih_s::i_start, avi_chunk_avih_s::i_streams, avi_chunk_avih_s::i_suggestedbuffersize, avi_chunk_avih_s::i_totalframes, avi_chunk_avih_s::i_width, msg_Dbg, and VLC_SUCCESS.
| static int AVI_ChunkRead_idx1 | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
References __MIN, AVI_READ4BYTES, AVI_READCHUNK_ENTER, AVI_READCHUNK_EXIT, AVI_READFOURCC, avi_chunk_u::common, avi_chunk_idx1_s::entry, avi_chunk_common_s::i_chunk_size, avi_chunk_idx1_s::i_entry_count, avi_chunk_idx1_s::i_entry_max, idx1_entry_s::i_flags, idx1_entry_s::i_fourcc, idx1_entry_s::i_length, idx1_entry_s::i_pos, avi_chunk_u::idx1, msg_Dbg, and VLC_SUCCESS.
| static int AVI_ChunkRead_indx | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
References __MIN, AVI_INDEX_2FIELD, AVI_INDEX_OF_CHUNKS, AVI_INDEX_OF_INDEXES, AVI_READ1BYTE, AVI_READ2BYTES, AVI_READ4BYTES, AVI_READ8BYTES, AVI_READCHUNK_ENTER, AVI_READCHUNK_EXIT, avi_chunk_indx_s::field, i, avi_chunk_indx_s::i_baseoffset, indx_super_entry_t::i_duration, avi_chunk_indx_s::i_entriesinuse, avi_chunk_indx_s::i_id, avi_chunk_indx_s::i_indexsubtype, avi_chunk_indx_s::i_indextype, avi_chunk_indx_s::i_longsperentry, indx_super_entry_t::i_offset, indx_field_entry_t::i_offset, indx_std_entry_t::i_offset, indx_field_entry_t::i_offsetfield2, indx_super_entry_t::i_size, indx_field_entry_t::i_size, indx_std_entry_t::i_size, avi_chunk_indx_s::idx, msg_Dbg, msg_Warn, avi_chunk_indx_s::std, avi_chunk_indx_s::super, and VLC_SUCCESS.
Referenced by _AVI_ChunkRead().
| static int AVI_ChunkRead_list | ( | stream_t * | s, | |
| avi_chunk_t * | p_container | |||
| ) | [static] |
References __EVEN, AVI_ChunkRead, AVI_NextChunk(), AVIFOURCC_AVI, AVIFOURCC_LIST, AVIFOURCC_movi, AVIFOURCC_ON2, AVIFOURCC_ON2f, AVIFOURCC_RIFF, avi_chunk_u::common, GetFOURCC, avi_chunk_common_s::i_chunk_fourcc, avi_chunk_common_s::i_chunk_pos, avi_chunk_common_s::i_chunk_size, avi_chunk_list_s::i_type, avi_chunk_u::list, msg_Dbg, msg_Warn, avi_chunk_common_s::p_father, avi_chunk_common_s::p_first, avi_chunk_common_s::p_last, avi_chunk_common_s::p_next, STREAM_CAN_FASTSEEK, stream_Control(), stream_Peek(), stream_Read(), stream_Tell(), VLC_EGENERIC, and VLC_SUCCESS.
| static int AVI_ChunkRead_nothing | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
References AVI_NextChunk().
| static int AVI_ChunkRead_strd | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
| static int AVI_ChunkRead_strf | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
References __MAX, AUDIO_ES, avi_chunk_strf_u::auds, AVI_ChunkFind, AVI_READ2BYTES, AVI_READ4BYTES, AVI_READCHUNK_ENTER, AVI_READCHUNK_EXIT, AVI_READFOURCC, AVIFOURCC_auds, AVIFOURCC_strh, AVIFOURCC_vids, ATTR_PACKED::biBitCount, ATTR_PACKED::biClrImportant, ATTR_PACKED::biClrUsed, ATTR_PACKED::biCompression, ATTR_PACKED::biHeight, ATTR_PACKED::biPlanes, ATTR_PACKED::biSize, ATTR_PACKED::biSizeImage, ATTR_PACKED::biWidth, ATTR_PACKED::biXPelsPerMeter, ATTR_PACKED::biYPelsPerMeter, avi_chunk_strf_u::common, avi_chunk_u::common, avi_chunk_strf_u::i_cat, avi_chunk_strf_vids_s::i_cat, avi_chunk_strf_auds_s::i_cat, avi_chunk_common_s::i_chunk_size, avi_chunk_strh_s::i_samplesize, avi_chunk_strh_s::i_type, msg_Dbg, msg_Err, msg_Warn, avi_chunk_strf_vids_s::p_bih, avi_chunk_common_s::p_father, avi_chunk_strf_auds_s::p_wf, avi_chunk_u::strf, avi_chunk_u::strh, UNKNOWN_ES, VIDEO_ES, avi_chunk_strf_u::vids, VLC_EGENERIC, VLC_SUCCESS, WAVE_FORMAT_EXTENSIBLE, and WAVE_FORMAT_PCM.
| static int AVI_ChunkRead_strh | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
References AVI_READ4BYTES, AVI_READCHUNK_ENTER, AVI_READCHUNK_EXIT, AVI_READFOURCC, avi_chunk_strh_s::i_flags, avi_chunk_strh_s::i_handler, avi_chunk_strh_s::i_initialframes, avi_chunk_strh_s::i_length, avi_chunk_strh_s::i_quality, avi_chunk_strh_s::i_rate, avi_chunk_strh_s::i_reserved1, avi_chunk_strh_s::i_samplesize, avi_chunk_strh_s::i_scale, avi_chunk_strh_s::i_start, avi_chunk_strh_s::i_suggestedbuffersize, avi_chunk_strh_s::i_type, msg_Dbg, avi_chunk_u::strh, and VLC_SUCCESS.
| static int AVI_ChunkRead_strz | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
| static int AVI_ChunkReadCommon | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
References avi_chunk_u::common, GetDWLE(), GetFOURCC, avi_chunk_common_s::i_chunk_fourcc, avi_chunk_common_s::i_chunk_pos, avi_chunk_common_s::i_chunk_size, msg_Dbg, avi_chunk_common_s::p_father, avi_chunk_common_s::p_first, avi_chunk_common_s::p_next, stream_Peek(), stream_Tell(), VLC_EGENERIC, and VLC_SUCCESS.
Referenced by _AVI_ChunkRead(), and AVI_NextChunk().
| int AVI_ChunkReadRoot | ( | stream_t * | s, | |
| avi_chunk_t * | p_root | |||
| ) |
References __EVEN, AVI_ChunkDumpDebug_level(), AVI_ChunkRead, AVIFOURCC_AVI, AVIFOURCC_LIST, AVIFOURCC_RIFF, avi_chunk_u::common, avi_chunk_common_s::i_chunk_fourcc, avi_chunk_list_s::i_chunk_fourcc, avi_chunk_common_s::i_chunk_pos, avi_chunk_list_s::i_chunk_pos, avi_chunk_common_s::i_chunk_size, avi_chunk_list_s::i_chunk_size, avi_chunk_list_s::i_type, avi_chunk_u::list, avi_chunk_common_s::p_father, avi_chunk_list_s::p_father, avi_chunk_common_s::p_first, avi_chunk_list_s::p_first, avi_chunk_common_s::p_last, avi_chunk_list_s::p_last, avi_chunk_common_s::p_next, avi_chunk_list_s::p_next, STREAM_CAN_FASTSEEK, stream_Control(), stream_Size(), stream_Tell(), VLC_FOURCC, and VLC_SUCCESS.
| static int AVI_NextChunk | ( | stream_t * | s, | |
| avi_chunk_t * | p_chk | |||
| ) | [static] |
| static uint8_t GetB | ( | uint8_t * | ptr | ) | [inline, static] |
| static vlc_fourcc_t GetFOURCC | ( | const uint8_t * | p_buff | ) | [static] |
References VLC_FOURCC.
struct { ... } AVI_Chunk_Function[] [static] |
Referenced by _AVI_ChunkFree(), _AVI_ChunkRead(), and AVI_ChunkFunctionFind().
| void(* AVI_ChunkFree_function)(avi_chunk_t *p_chk) |
Referenced by _AVI_ChunkFree().
| int(* AVI_ChunkRead_function)(stream_t *s, avi_chunk_t *p_chk) |
Referenced by _AVI_ChunkRead().
struct { ... } AVI_strz_type[] [static] |
Referenced by AVI_ChunkRead_strz().
| const char* psz_type |
Referenced by AVI_ChunkRead_strz(), DownloadArt(), DumpVariable(), EnumDeviceCaps(), EsOutUpdateInfo(), EvaluateRPN(), input_DecoderNew(), input_ExtractAttachmentAndCacheArt(), intf_Create(), NotifyToGrowl(), osd_ParserLoad(), ParseDirectory(), ParseID3Tag(), matroska_segment_c::ParseTrackEntry(), RunIntf(), scan_GetM3U(), Usage(), vlclua_object_find(), and vlclua_osd_slider().
1.5.6