Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

bitstream.h File Reference

Go to the source code of this file.

Typedefs

typedef bitstream_state_s bitstream_state_t

Functions

 SPAN_DECLARE (void) bitstream_put(bitstream_state_t *s
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (uint32_t) bitstream_get(bitstream_state_t *s
 Bit reverse a 32 bit word.
 SPAN_DECLARE (bitstream_state_t *) bitstream_init(bitstream_state_t *s)
 Initialise a bitstream context.
 SPAN_DECLARE (int) bitstream_release(bitstream_state_t *s)
 Find the number of set bits in a 32 bit word.

Variables

uint8_t ** c
uint8_t uint32_t value
uint8_t uint32_t int bits


Detailed Description


Typedef Documentation

typedef struct bitstream_state_s bitstream_state_t
 

Bitstream handler state


Function Documentation

SPAN_DECLARE int32_t   ) 
 

Find the number of set bits in a 32 bit word.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE bitstream_state_t  ) 
 

Initialise a bitstream context.

Parameters:
s A pointer to the bitstream context.
Returns:
A pointer to the bitstream context.

SPAN_DECLARE uint32_t   ) 
 

Bit reverse a 32 bit word.

Parameters:
s A pointer to the bitstream context.
c A pointer to the bitstream input buffer.
bits The number of bits of value to be grabbed. 1 to 25 bits is valid.
Returns:
The value retrieved from the input buffer.

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Parameters:
s A pointer to the bitstream context.
c A pointer to the bitstream output buffer.
value The value to be pushed into the output buffer.
bits The number of bits of value to be pushed. 1 to 25 bits is valid.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1