libg722_1  0.0.1
g192_bit_stream.h File Reference

Go to the source code of this file.

Enumerations

enum  { ITU_CODEC_BITSTREAM_PACKED = 0, ITU_CODEC_BITSTREAM_G192 = 1 }
 

Functions

int itu_codec_bitstream_write (const uint8_t out_data[], int number_of_bits, int mode, FILE *fp_bitstream)
 Write a frame of data to an output file. More...
 
int itu_codec_bitstream_read (uint8_t in_data[], int16_t *p_erasure, int number_of_bits, int mode, FILE *fp_bitstream)
 Read a frame of data from an input file. More...
 

Function Documentation

int itu_codec_bitstream_read ( uint8_t  in_data[],
int16_t *  p_erasure,
int  number_of_bits,
int  mode,
FILE *  fp_bitstream 
)

Read a frame of data from an input file.

Parameters
in_dataThe buffer for the data to be read.
p_erasureSet to TRUE if there is a frame erasure, else set to FALSE.
number_of_bitsThe number of bits to be read.
mode0 = continuous, 1 = ITU G.192 codec bitstream format.
fp_bitstreamThe file context to be read from.
Returns
The number of words read.
int itu_codec_bitstream_write ( const uint8_t  out_data[],
int  number_of_bits,
int  mode,
FILE *  fp_bitstream 
)

Write a frame of data to an output file.

Parameters
out_dataThe buffer for the data to be written.
number_of_bitsThe number of bits to be written.
mode0 = continuous, 1 = ITU G.192 codec bitstream format.
fp_bitstreamThe file context to be written to.
Returns
The number of words written.