mpeg_audio_hdr_new
Allocate a new MpegAudioHdr, and return a handle to it.
mpeg_audio_hdr_free hdr
Deallocate the MpegAudioHdr pointed to by hdr.
mpeg_audio_l1_new
Allocate a new MpegAudioL1 structure and return a handle to it.
mpeg_audio_l1_free l1
Deallocate the MpegAudioL1 structure pointed to by l1.
mpeg_audio_l2_new
Allocate a new MpegAudioL2 structure and return a handle to it.
mpeg_audio_l2_free l2
Deallocate the MpegAudioL2 structure pointed to by l2.
mpeg_audio_l3_new
Allocate a new MpegAudioL3 structure and return a handle to it.
mpeg_audio_l3_free l3
Deallocate the MpegAudioL3 structure pointed to by l3.
mpeg_audio_hdr_find bp
Scan the bitstream attached to the BitParser bp, and advance the cursor to the beginning of an audio header. Return the number of bytes skipped.
mpeg_audio_hdr_parse bp hdr
Parse the bitstream attached to BitParser bp, assuming that the cursor is position at the beginning of audio header. The content of MpegAudioHdr is initialized by contents of the audio header from the bitstream. Return the number of bytes parsed.
mpeg_audio_hdr_dump inbp outbp
Assuming the cursor of BitParser inbp is at the beginning of audio header, dump the header to the output bitstream attached to BitParser outbp, without parsing the whole header. Returns the number of bytes dumped.
mpeg_audio_hdr_skip bp
Assuming the cursor of BitParser bp is at the beginning of the audio header, skips the header and advance the cursor to the end of the header. Returns the number of bytes skipped.
mpeg_audio_hdr_encode hdr bp
Encode the header hdr into output BitStream attached to the BitParser bp. Return the number of bytes encoded.
mpeg_audio_hdr_get_layer hdr
Return the layer of the audio header hdr
mpeg_audio_hdr_get_mode hdr
Return the mode of the audio header hdr.
mpeg_audio_hdr_get_bit_rate hdr
Return the bit rate of the audio header hdr
mpeg_audio_hdr_get_sampling_rate hdr
Return the sampling rate of the audio header hdr
mpeg_audio_l1_mono_parse bp hdr l1
Assuming that the bitstream attached to BitParser bp contains data from a mono MPEG Layer 1 audio streams, parse a frame from the stream, and store the data in l1. After parsing, the cursor is at the end of compreseed audio data.
mpeg_audio_l1_mono_encode l1 hdr bp
Encode the audio data in l1 into output bistream attached to BitParser bp.
mpeg_audio_l1_stereo_parse bp hdr left right
Assuming that the bitstream attached to BitParser bp contains data from a stereo MPEG Layer 1 audio streams, parse a frame from the stream, and store the left and right channel data in left and right respectively. After parsing the cursor is at the end of compreseed audio data.
mpeg_audio_l1_stereo_encode left right hdr bp
Encode the left and right channel data in left and right into output bistream attached to BitParser bp.
mpeg_audio_l1_to_audio hdr audio syn pcm
Decode the compressed layer 1 audio data in audio into uncompressed pcm audio and store the pcm samples in pcm. syn stores synthesis data that are initialized from decoding of previous frames, and is used in current decoding. syn will be updated for decoding of next frame.
mpeg_audio_l2_mono_parse bp hdr l2
Assuming that the bitstream attached to BitParser bp contains data from a mono MPEG Layer 2 audio streams, parse a frame from the stream, and store the data in l2. After parsing, the cursor is at the end of compreseed audio data.
mpeg_audio_l2_mono_encode l2 hdr bp
Encode the audio data in l2 into output bistream attached to BitParser bp.
mpeg_audio_l2_stereo_parse bp hdr left right
Assuming that the bitstream attached to BitParser bp contains data from a stereo MPEG Layer 2 audio streams, parse a frame from the stream, and store the left and right channel data in left and right respectively. After parsing, the cursor is at the end of compreseed audio data.
mpeg_audio_l2_stereo_encode left right hdr bp
Encode the left and right channel data in left and right into output bistream attached to BitParser bp.
mpeg_audio_l2_to_audio hdr audio syn pcm
Decode the compressed layer 2 audio data in audio into uncompressed pcm audio and store the pcm samples in pcm. syn stores synthesis data that are initialized from decoding of previous frames, and is used in current decoding. syn will be updated for decoding of next frame.
mpeg_audio_l2_scale_factor_sum hdr audio
It computes the sum of the scaling factors among the 1152 samples encoded in audio without actually decoding it and returns the sum.
mpeg_audio_l3_parse bp buffer hdr audio
Parse the bitstream attached to bitparser bp and store the compressed audio information in audio. Some of the compressed audio may exists in previous frames in the bitstream. These should have been buffered in an auxillary bitstream attached to BitParser buffer, when we parsed the previous frame. Some data from the next frame may exists in current frame as well. In this case we update the auxillary bitstream with those data so that they can be used when parsing next frame. After parsing, the cursor is at the end of compressed audio data.
mpeg_audio_l3_to_audio hdr audio lsyn rsyn gra left right
Decode the compressed layer 3 audio data in audio into two channels of uncompressed pcm audio and store the pcm samples in left and right respectively. rsyn and lsyn stores synthesis data that are initialized from decoding of previous frames, and is used in current decoding. Both lsyn and rsyn will be updated for the decoding of next frame. gra has similar usage to lsyn and rsyn.
mpeg_syn_data_new
Allocate a new MpegSynData, and return a pointer to it. Return NULL if allocation failed.
mpeg_syn_data_free hdr
Deallocate the MpegSynData pointed to by hdr
mpeg_gra_data_new
Allocate a new MpegGraData, and return a pointer to it. Return NULL if allocation failed.
mpeg_gra_data_free hdr
Deallocate the MpegGraData pointed to by hdr
Last updated : Saturday, November 14, 1998, 07:50 PM