hvirtual/libmpeg3/audio/mpeg3audio.c File Reference

#include "mpeg3private.h"
#include "mpeg3protos.h"
#include <math.h>
#include <stdlib.h>

Include dependency graph for mpeg3audio.c:

Go to the source code of this file.

Functions

static void toc_error ()
static int rewind_audio (mpeg3audio_t *audio)
static int read_header (mpeg3audio_t *audio)
static int delete_struct (mpeg3audio_t *audio)
static int read_frame (mpeg3audio_t *audio, int render)
static int get_length (mpeg3audio_t *audio)
int calculate_format (mpeg3_t *file, mpeg3_atrack_t *track)
mpeg3audio_tmpeg3audio_new (mpeg3_t *file, mpeg3_atrack_t *track, int format)
static int seek (mpeg3audio_t *audio)
int mpeg3audio_delete (mpeg3audio_t *audio)
int mpeg3audio_seek_byte (mpeg3audio_t *audio, int64_t byte)
int mpeg3audio_seek_sample (mpeg3audio_t *audio, long sample)
int mpeg3audio_read_raw (mpeg3audio_t *audio, unsigned char *output, long *size, long max_size)
void mpeg3_shift_audio (mpeg3audio_t *audio, int diff)
int mpeg3audio_decode_audio (mpeg3audio_t *audio, float *output_f, short *output_i, int channel, int len)

Variables

static pthread_mutex_t * decode_lock = 0


Function Documentation

int calculate_format ( mpeg3_t file,
mpeg3_atrack_t track 
)

Definition at line 410 of file mpeg3audio.c.

References AUDIO_AC3, AUDIO_MPEG, AUDIO_UNKNOWN, mpeg3_atrack_t::demuxer, mpeg3_atrack_t::format, header, mpeg3_ac3_check(), and mpeg3demux_read_data().

Referenced by mpeg3audio_decode_audio(), and mpeg3audio_new().

Here is the call graph for this function:

static int delete_struct ( mpeg3audio_t audio  )  [static]

static int get_length ( mpeg3audio_t audio  )  [static]

void mpeg3_shift_audio ( mpeg3audio_t audio,
int  diff 
)

int mpeg3audio_decode_audio ( mpeg3audio_t audio,
float *  output_f,
short *  output_i,
int  channel,
int  len 
)

int mpeg3audio_delete ( mpeg3audio_t audio  ) 

Definition at line 664 of file mpeg3audio.c.

References delete_struct().

Referenced by mpeg3_delete_atrack().

Here is the call graph for this function:

mpeg3audio_t* mpeg3audio_new ( mpeg3_t file,
mpeg3_atrack_t track,
int  format 
)

int mpeg3audio_read_raw ( mpeg3audio_t audio,
unsigned char *  output,
long *  size,
long  max_size 
)

int mpeg3audio_seek_byte ( mpeg3audio_t audio,
int64_t  byte 
)

Definition at line 670 of file mpeg3audio.c.

References mpeg3audio_t::byte_seek.

Referenced by mpeg3_seek_byte().

int mpeg3audio_seek_sample ( mpeg3audio_t audio,
long  sample 
)

Definition at line 676 of file mpeg3audio.c.

References mpeg3audio_t::sample_seek, and mpeg3audio_t::track.

Referenced by mpeg3_set_sample().

static int read_frame ( mpeg3audio_t audio,
int  render 
) [static]

static int read_header ( mpeg3audio_t audio  )  [static]

static int rewind_audio ( mpeg3audio_t audio  )  [static]

Definition at line 22 of file mpeg3audio.c.

References mpeg3_atrack_t::demuxer, mpeg3demux_seek_byte(), mpeg3_atrack_t::sample_offsets, and mpeg3audio_t::track.

Referenced by get_length(), and mpeg3audio_new().

Here is the call graph for this function:

static int seek ( mpeg3audio_t audio  )  [static]

static void toc_error (  )  [static]

Definition at line 13 of file mpeg3audio.c.

References fprintf.

Referenced by seek().


Variable Documentation

pthread_mutex_t* decode_lock = 0 [static]

Definition at line 10 of file mpeg3audio.c.

Referenced by mpeg3audio_new(), and read_frame().


Generated on Mon Apr 28 13:58:41 2008 for Cinelerra by  doxygen 1.5.5