
Data Structures | |
| struct | decoder_sys_t |
| struct | encoder_sys_t |
Defines | |
| #define | STREAMINFO_SIZE 38 |
Functions | |
| static int | OpenDecoder (vlc_object_t *) |
| static void | CloseDecoder (vlc_object_t *) |
| static int | OpenEncoder (vlc_object_t *) |
| static void | CloseEncoder (vlc_object_t *) |
| static aout_buffer_t * | DecodeBlock (decoder_t *, block_t **) |
| static FLAC__StreamDecoderReadStatus | DecoderReadCallback (const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) |
| static FLAC__StreamDecoderWriteStatus | DecoderWriteCallback (const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data) |
| static void | DecoderMetadataCallback (const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data) |
| static void | DecoderErrorCallback (const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data) |
| static void | Interleave32 (int32_t *p_out, const int32_t *const *pp_in, const int *pi_order, int i_nb_channels, int i_samples) |
| static void | Interleave24 (int8_t *p_out, const int32_t *const *pp_in, const int *pi_order, int i_nb_channels, int i_samples) |
| static void | Interleave16 (int16_t *p_out, const int32_t *const *pp_in, const int *pi_order, int i_nb_channels, int i_samples) |
| static void | decoder_state_error (decoder_t *p_dec, FLAC__StreamDecoderState state) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static void | ProcessHeader (decoder_t *p_dec) |
| static void | Interleave32 (int32_t *p_out, const int32_t *const *pp_in, const int pi_index[], int i_nb_channels, int i_samples) |
| static void | Interleave24 (int8_t *p_out, const int32_t *const *pp_in, const int pi_index[], int i_nb_channels, int i_samples) |
| static void | Interleave16 (int16_t *p_out, const int32_t *const *pp_in, const int pi_index[], int i_nb_channels, int i_samples) |
| static block_t * | Encode (encoder_t *, aout_buffer_t *) |
| static FLAC__StreamEncoderWriteStatus | EncoderWriteCallback (const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data) |
| static void | EncoderMetadataCallback (const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, void *client_data) |
Variables | |
| static const int | pi_channels_maps [9] |
| #define STREAMINFO_SIZE 38 |
Referenced by EncoderWriteCallback(), and ReadMeta().
| static void CloseDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References block_Release(), decoder_sys_t::p_block, decoder_sys_t::p_flac, decoder_t::p_sys, and p_sys.
| static void CloseEncoder | ( | vlc_object_t * | p_this | ) | [static] |
| static aout_buffer_t * DecodeBlock | ( | decoder_t * | p_dec, | |
| block_t ** | pp_block | |||
| ) | [static] |
References decoder_sys_t::b_stream_info, BLOCK_FLAG_CORRUPTED, BLOCK_FLAG_DISCONTINUITY, block_Release(), date_Get(), date_Set(), decoder_state_error(), decoder_sys_t::end_date, block_t::i_pts, decoder_sys_t::p_aout_buffer, decoder_sys_t::p_block, decoder_sys_t::p_flac, decoder_t::p_sys, p_sys, ProcessHeader(), and VLC_TS_INVALID.
| static void decoder_state_error | ( | decoder_t * | p_dec, | |
| FLAC__StreamDecoderState | state | |||
| ) | [static] |
| static void DecoderErrorCallback | ( | const FLAC__StreamDecoder * | decoder, | |
| FLAC__StreamDecoderErrorStatus | status, | |||
| void * | client_data | |||
| ) | [static] |
References msg_Err, msg_Warn, decoder_sys_t::p_flac, decoder_t::p_sys, and VLC_UNUSED.
Referenced by OpenDecoder().
| static void DecoderMetadataCallback | ( | const FLAC__StreamDecoder * | decoder, | |
| const FLAC__StreamMetadata * | metadata, | |||
| void * | client_data | |||
| ) | [static] |
References es_format_t::audio, decoder_sys_t::b_stream_info, date_Init(), date_Set(), decoder_sys_t::end_date, decoder_t::fmt_out, audio_format_t::i_bitspersample, audio_format_t::i_channels, es_format_t::i_codec, audio_format_t::i_original_channels, audio_format_t::i_physical_channels, audio_format_t::i_rate, msg_Dbg, decoder_t::p_sys, p_sys, decoder_t::pf_decode_audio, pi_channels_maps, decoder_sys_t::stream_info, VLC_CODEC_FI32, VLC_CODEC_S16N, VLC_CODEC_S24N, VLC_CODEC_S8, VLC_TS_INVALID, and VLC_UNUSED.
Referenced by OpenDecoder().
| static FLAC__StreamDecoderReadStatus DecoderReadCallback | ( | const FLAC__StreamDecoder * | decoder, | |
| FLAC__byte | buffer[], | |||
| unsigned * | bytes, | |||
| void * | client_data | |||
| ) | [static] |
References __MIN, block_t::i_buffer, decoder_sys_t::p_block, block_t::p_buffer, decoder_t::p_sys, p_sys, and VLC_UNUSED.
Referenced by OpenDecoder().
| static FLAC__StreamDecoderWriteStatus DecoderWriteCallback | ( | const FLAC__StreamDecoder * | decoder, | |
| const FLAC__Frame * | frame, | |||
| const FLAC__int32 *const | buffer[], | |||
| void * | client_data | |||
| ) | [static] |
References es_format_t::audio, date_Get(), date_Increment(), decoder_NewAudioBuffer(), decoder_sys_t::end_date, decoder_t::fmt_out, audio_format_t::i_channels, block_t::i_length, block_t::i_pts, Interleave16(), Interleave24(), Interleave32(), decoder_sys_t::p_aout_buffer, block_t::p_buffer, decoder_t::p_sys, p_sys, VLC_TS_INVALID, and VLC_UNUSED.
Referenced by OpenDecoder().
| static block_t * Encode | ( | encoder_t * | p_enc, | |
| aout_buffer_t * | p_aout_buf | |||
| ) | [static] |
References es_format_t::audio, encoder_t::fmt_in, i, block_t::i_buffer, encoder_sys_t::i_buffer, block_t::i_nb_samples, block_t::i_pts, encoder_sys_t::i_pts, audio_format_t::i_rate, encoder_sys_t::i_samples_delay, block_t::p_buffer, encoder_sys_t::p_buffer, encoder_sys_t::p_chain, encoder_sys_t::p_flac, encoder_t::p_sys, and xrealloc().
| static void EncoderMetadataCallback | ( | const FLAC__StreamEncoder * | encoder, | |
| const FLAC__StreamMetadata * | metadata, | |||
| void * | client_data | |||
| ) | [static] |
References msg_Err, and VLC_UNUSED.
| static FLAC__StreamEncoderWriteStatus EncoderWriteCallback | ( | const FLAC__StreamEncoder * | encoder, | |
| const FLAC__byte | buffer[], | |||
| unsigned | bytes, | |||
| unsigned | samples, | |||
| unsigned | current_frame, | |||
| void * | client_data | |||
| ) | [static] |
References es_format_t::audio, block_ChainAppend(), block_New, encoder_t::fmt_in, encoder_t::fmt_out, block_t::i_dts, es_format_t::i_extra, encoder_sys_t::i_headers, block_t::i_length, encoder_sys_t::i_pts, block_t::i_pts, audio_format_t::i_rate, encoder_sys_t::i_samples_delay, msg_Dbg, block_t::p_buffer, encoder_sys_t::p_chain, es_format_t::p_extra, encoder_t::p_sys, STREAMINFO_SIZE, VLC_UNUSED, and xmalloc().
| static void Interleave16 | ( | int16_t * | p_out, | |
| const int32_t *const * | pp_in, | |||
| const int | pi_index[], | |||
| int | i_nb_channels, | |||
| int | i_samples | |||
| ) | [static] |
References i.
| static void Interleave16 | ( | int16_t * | p_out, | |
| const int32_t *const * | pp_in, | |||
| const int * | pi_order, | |||
| int | i_nb_channels, | |||
| int | i_samples | |||
| ) | [static] |
Referenced by DecoderWriteCallback().
| static void Interleave24 | ( | int8_t * | p_out, | |
| const int32_t *const * | pp_in, | |||
| const int | pi_index[], | |||
| int | i_nb_channels, | |||
| int | i_samples | |||
| ) | [static] |
References i.
| static void Interleave24 | ( | int8_t * | p_out, | |
| const int32_t *const * | pp_in, | |||
| const int * | pi_order, | |||
| int | i_nb_channels, | |||
| int | i_samples | |||
| ) | [static] |
Referenced by DecoderWriteCallback().
| static void Interleave32 | ( | int32_t * | p_out, | |
| const int32_t *const * | pp_in, | |||
| const int | pi_index[], | |||
| int | i_nb_channels, | |||
| int | i_samples | |||
| ) | [static] |
References i.
| static void Interleave32 | ( | int32_t * | p_out, | |
| const int32_t *const * | pp_in, | |||
| const int * | pi_order, | |||
| int | i_nb_channels, | |||
| int | i_samples | |||
| ) | [static] |
Referenced by DecoderWriteCallback().
| static int OpenDecoder | ( | vlc_object_t * | p_this | ) | [static] |
References AUDIO_ES, decoder_t::b_need_packetized, decoder_sys_t::b_stream_info, DecodeBlock(), DecoderErrorCallback(), DecoderMetadataCallback(), DecoderReadCallback(), DecoderWriteCallback(), decoder_t::fmt_in, decoder_t::fmt_out, es_format_t::i_cat, es_format_t::i_codec, msg_Err, decoder_sys_t::p_block, decoder_sys_t::p_flac, decoder_t::p_sys, p_sys, decoder_t::pf_decode_audio, VLC_CODEC_FL32, VLC_CODEC_FLAC, VLC_EGENERIC, VLC_ENOMEM, and VLC_SUCCESS.
| static int OpenEncoder | ( | vlc_object_t * | p_this | ) | [static] |
| static void ProcessHeader | ( | decoder_t * | p_dec | ) | [static] |
References block_New, decoder_t::fmt_in, es_format_t::i_extra, msg_Dbg, decoder_sys_t::p_block, block_t::p_buffer, es_format_t::p_extra, decoder_sys_t::p_flac, decoder_t::p_sys, and p_sys.
Referenced by DecodeBlock(), and Packetize().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const int pi_channels_maps[9] [static] |
Initial value:
{
0,
0x1 ,
0x2 | 0x4 ,
0x1 | 0x2 | 0x4 ,
0x2 | 0x4 | 0x20
| 0x40 ,
0x2 | 0x4 | 0x1
| 0x20 | 0x40 ,
0x2 | 0x4 | 0x1
| 0x20 | 0x40 | 0x1000 ,
0x2 | 0x4 | 0x1
| 0x20 | 0x40 | 0x100
| 0x200 ,
0x2 | 0x4 | 0x1 | 0x20
| 0x40 | 0x100 | 0x200
| 0x1000
}
1.5.6