flac.c File Reference

Include dependency graph for flac.c:


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_tDecodeBlock (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_tEncode (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 Documentation

#define STREAMINFO_SIZE   38

Referenced by EncoderWriteCallback(), and ReadMeta().


Function Documentation

static void CloseDecoder ( vlc_object_t p_this  )  [static]

static void CloseEncoder ( vlc_object_t p_this  )  [static]

static aout_buffer_t * DecodeBlock ( decoder_t p_dec,
block_t **  pp_block 
) [static]

static void decoder_state_error ( decoder_t p_dec,
FLAC__StreamDecoderState  state 
) [static]

References msg_Dbg, msg_Err, and msg_Warn.

Referenced by DecodeBlock().

static void DecoderErrorCallback ( const FLAC__StreamDecoder *  decoder,
FLAC__StreamDecoderErrorStatus  status,
void *  client_data 
) [static]

static void DecoderMetadataCallback ( const FLAC__StreamDecoder *  decoder,
const FLAC__StreamMetadata *  metadata,
void *  client_data 
) [static]

static FLAC__StreamDecoderReadStatus DecoderReadCallback ( const FLAC__StreamDecoder *  decoder,
FLAC__byte  buffer[],
unsigned *  bytes,
void *  client_data 
) [static]

static FLAC__StreamDecoderWriteStatus DecoderWriteCallback ( const FLAC__StreamDecoder *  decoder,
const FLAC__Frame *  frame,
const FLAC__int32 *const   buffer[],
void *  client_data 
) [static]

static block_t * Encode ( encoder_t p_enc,
aout_buffer_t p_aout_buf 
) [static]

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]

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]

static int OpenEncoder ( vlc_object_t p_this  )  [static]

static void ProcessHeader ( decoder_t p_dec  )  [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

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 
}


Generated on Tue May 25 08:05:13 2010 for VLC by  doxygen 1.5.6