speex_bits.h   speex_bits.h 
skipping to change at line 33 skipping to change at line 33
#define BITS_H #define BITS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#define MAX_BYTES_PER_FRAME 1000 #define MAX_BYTES_PER_FRAME 1000
/** Bit-packing data structure representing (part of) a bit-stream. */ /** Bit-packing data structure representing (part of) a bit-stream. */
typedef struct SpeexBits { typedef struct SpeexBits {
char bytes[MAX_BYTES_PER_FRAME]; char *bytes;
int nbBits; int nbBits;
int bytePtr; int bytePtr;
int bitPtr; int bitPtr;
int owner;
} SpeexBits; } SpeexBits;
/** Initializes and allocates resources for a SpeexBits struct */ /** Initializes and allocates resources for a SpeexBits struct */
void speex_bits_init(SpeexBits *bits); void speex_bits_init(SpeexBits *bits);
/** Initializes SpeexBits struct using a pre-allocated buffer*/
void speex_bits_init_buffer(SpeexBits *bits, void *buff);
/** Frees all resources assiociated to a SpeexBits struct. Right now this d oes nothing since no resources are allocated, but this could change in the future.*/ /** Frees all resources assiociated to a SpeexBits struct. Right now this d oes nothing since no resources are allocated, but this could change in the future.*/
void speex_bits_destroy(SpeexBits *bits); void speex_bits_destroy(SpeexBits *bits);
/** Resets bits to initial value (just after initialization, erasing conten t)*/ /** Resets bits to initial value (just after initialization, erasing conten t)*/
void speex_bits_reset(SpeexBits *bits); void speex_bits_reset(SpeexBits *bits);
/** Rewind the bit-stream to beginning (ready for read) without erasing con tent*/ /** Rewind the bit-stream to beginning (ready for read) without erasing con tent*/
void speex_bits_rewind(SpeexBits *bits); void speex_bits_rewind(SpeexBits *bits);
/** Initializes the bit-stream from the data in an area of memory */ /** Initializes the bit-stream from the data in an area of memory */
skipping to change at line 69 skipping to change at line 73
int speex_bits_write_whole_bytes(SpeexBits *bits, char *bytes, int max_len) ; int speex_bits_write_whole_bytes(SpeexBits *bits, char *bytes, int max_len) ;
void speex_bits_pack(SpeexBits *bits, int data, int nbBits); void speex_bits_pack(SpeexBits *bits, int data, int nbBits);
int speex_bits_unpack_signed(SpeexBits *bits, int nbBits); int speex_bits_unpack_signed(SpeexBits *bits, int nbBits);
unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits); unsigned int speex_bits_unpack_unsigned(SpeexBits *bits, int nbBits);
int speex_bits_nbytes(SpeexBits *bits); int speex_bits_nbytes(SpeexBits *bits);
int speex_bits_peek(SpeexBits *bits);
void speex_bits_advance(SpeexBits *bits, int n);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 4 change blocks. 
1 lines changed or deleted 9 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/