
Data Structures | |
| struct | decoder_sys_t |
Defines | |
| #define | DTS_HEADER_SIZE 14 |
Enumerations | |
| enum | { STATE_NOSYNC, STATE_SYNC, STATE_HEADER, STATE_NEXT_SYNC, STATE_GET_DATA, STATE_SEND_DATA } |
Functions | |
| static int | OpenDecoder (vlc_object_t *) |
| static int | OpenPacketizer (vlc_object_t *) |
| static void | CloseCommon (vlc_object_t *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static int | OpenCommon (vlc_object_t *, bool b_packetizer) |
| static void * | DecodeBlock (decoder_t *, block_t **) |
| static int | SyncCode (const uint8_t *) |
| static int | SyncInfo (const uint8_t *, bool *, unsigned int *, unsigned int *, unsigned int *, unsigned int *, unsigned int *) |
| static uint8_t * | GetOutBuffer (decoder_t *, block_t **) |
| static aout_buffer_t * | GetAoutBuffer (decoder_t *) |
| static block_t * | GetSoutBuffer (decoder_t *) |
| static int | SyncInfo16be (const uint8_t *p_buf, unsigned int *pi_audio_mode, unsigned int *pi_sample_rate, unsigned int *pi_bit_rate, unsigned int *pi_frame_length) |
| static void | BufLeToBe (uint8_t *p_out, const uint8_t *p_in, int i_in) |
| static int | Buf14To16 (uint8_t *p_out, const uint8_t *p_in, int i_in, int i_le) |
Variables | |
| static const unsigned int | ppi_dts_samplerate [] |
| static const unsigned int | ppi_dts_bitrate [] |
| #define DTS_HEADER_SIZE 14 |
Referenced by DecodeBlock(), and SyncInfo().
| anonymous enum |
| static int Buf14To16 | ( | uint8_t * | p_out, | |
| const uint8_t * | p_in, | |||
| int | i_in, | |||
| int | i_le | |||
| ) | [static] |
| static void BufLeToBe | ( | uint8_t * | p_out, | |
| const uint8_t * | p_in, | |||
| int | i_in | |||
| ) | [static] |
| static void CloseCommon | ( | vlc_object_t * | p_this | ) | [static] |
References block_BytestreamRelease(), decoder_sys_t::bytestream, decoder_t::p_sys, and p_sys.
References __MIN, decoder_sys_t::b_dts_hd, decoder_sys_t::b_packetizer, block_BytestreamEmpty(), block_BytestreamFlush(), block_BytestreamPop(), block_BytestreamPush(), BLOCK_FLAG_CORRUPTED, BLOCK_FLAG_DISCONTINUITY, block_GetBytes(), block_PeekBytes(), block_PeekOffsetBytes(), block_Release(), block_SkipByte(), block_SkipBytes(), block_WaitBytes(), decoder_sys_t::bytestream, date_Get(), date_Set(), DTS_HEADER_SIZE, decoder_sys_t::end_date, GetOutBuffer(), decoder_sys_t::i_bit_rate, block_t::i_buffer, decoder_sys_t::i_channels, decoder_sys_t::i_channels_conf, decoder_sys_t::i_frame_length, decoder_sys_t::i_frame_size, block_t::i_pts, decoder_sys_t::i_pts, decoder_sys_t::i_rate, decoder_sys_t::i_state, msg_Dbg, block_bytestream_t::p_block, decoder_t::p_sys, p_sys, STATE_GET_DATA, STATE_HEADER, STATE_NEXT_SYNC, STATE_NOSYNC, STATE_SEND_DATA, STATE_SYNC, SyncCode(), SyncInfo(), VLC_SUCCESS, and VLC_TS_INVALID.
| static aout_buffer_t * GetAoutBuffer | ( | decoder_t * | p_dec | ) | [static] |
References __MAX, AOUT_CHAN_PHYSMASK, es_format_t::audio, decoder_sys_t::b_packetizer, date_Init(), date_Set(), decoder_sys_t::end_date, decoder_t::fmt_out, GetAoutBuffer(), GetSoutBuffer(), decoder_sys_t::i_bit_rate, es_format_t::i_bitrate, audio_format_t::i_bytes_per_frame, audio_format_t::i_channels, decoder_sys_t::i_channels, decoder_sys_t::i_channels_conf, audio_format_t::i_frame_length, decoder_sys_t::i_frame_length, decoder_sys_t::i_frame_size, audio_format_t::i_original_channels, audio_format_t::i_physical_channels, decoder_sys_t::i_pts, decoder_sys_t::i_rate, audio_format_t::i_rate, msg_Info, block_t::p_buffer, decoder_t::p_sys, and p_sys.
| static int OpenCommon | ( | vlc_object_t * | p_this, | |
| bool | b_packetizer | |||
| ) | [static] |
References es_format_t::audio, AUDIO_ES, decoder_sys_t::b_dts_hd, decoder_sys_t::b_packetizer, block_BytestreamInit(), decoder_sys_t::bytestream, date_Set(), DecodeBlock(), decoder_sys_t::end_date, decoder_t::fmt_in, decoder_t::fmt_out, es_format_t::i_cat, es_format_t::i_codec, decoder_sys_t::i_pts, audio_format_t::i_rate, decoder_sys_t::i_state, decoder_t::p_sys, p_sys, decoder_t::pf_decode_audio, decoder_t::pf_packetize, STATE_NOSYNC, VLC_CODEC_DTS, VLC_EGENERIC, VLC_ENOMEM, VLC_SUCCESS, and VLC_TS_INVALID.
| static int OpenDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References module_exists(), OpenCommon(), and VLC_EGENERIC.
| static int OpenPacketizer | ( | vlc_object_t * | p_this | ) | [static] |
References OpenCommon().
| static int SyncCode | ( | const uint8_t * | p_buf | ) | [inline, static] |
| static int SyncInfo | ( | const uint8_t * | p_buf, | |
| bool * | pb_dts_hd, | |||
| unsigned int * | pi_channels, | |||
| unsigned int * | pi_channels_conf, | |||
| unsigned int * | pi_sample_rate, | |||
| unsigned int * | pi_bit_rate, | |||
| unsigned int * | pi_frame_length | |||
| ) | [static] |
References AOUT_CHAN_CENTER, AOUT_CHAN_DUALMONO, AOUT_CHAN_LEFT, AOUT_CHAN_LFE, AOUT_CHAN_MIDDLELEFT, AOUT_CHAN_MIDDLERIGHT, AOUT_CHAN_REARCENTER, AOUT_CHAN_REARLEFT, AOUT_CHAN_REARRIGHT, AOUT_CHAN_RIGHT, bs_init(), bs_read(), bs_read1(), bs_skip(), Buf14To16(), BufLeToBe(), DTS_HEADER_SIZE, ppi_dts_bitrate, ppi_dts_samplerate, and SyncInfo16be().
Referenced by DecodeBlock(), and Packetize().
| static int SyncInfo16be | ( | const uint8_t * | p_buf, | |
| unsigned int * | pi_audio_mode, | |||
| unsigned int * | pi_sample_rate, | |||
| unsigned int * | pi_bit_rate, | |||
| unsigned int * | pi_frame_length | |||
| ) | [static] |
Referenced by SyncInfo().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const unsigned int ppi_dts_bitrate[] [static] |
Initial value:
{
32000, 56000, 64000, 96000, 112000, 128000,
192000, 224000, 256000, 320000, 384000,
448000, 512000, 576000, 640000, 768000,
896000, 1024000, 1152000, 1280000, 1344000,
1408000, 1411200, 1472000, 1536000, 1920000,
2048000, 3072000, 3840000, 1, 2, 3
}
Referenced by SyncInfo().
const unsigned int ppi_dts_samplerate[] [static] |
Initial value:
{
0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
12000, 24000, 48000, 96000, 192000
}
Referenced by SyncInfo().
1.5.6