#include "DecoderChannel.h"
#include "BitInputStream.h"
#include "EXITypes.h"
#include "ErrorCodes.h"
Macros | |
#define | BIT_DECODER_CHANNEL_C |
Functions | |
int | decode (bitstream_t *stream, uint8_t *b) |
Decode byte value. More... | |
int | decodeBoolean (bitstream_t *stream, int *b) |
Decode boolean. More... | |
int | decodeNBitUnsignedInteger (bitstream_t *stream, uint16_t nbits, uint32_t *uint32) |
Decode n-bit unsigned integer. More... | |
#define BIT_DECODER_CHANNEL_C |
int decode | ( | bitstream_t * | stream, |
uint8_t * | b | ||
) |
Decode byte value.
stream | Input Stream |
b | byte (out) |
int decodeBoolean | ( | bitstream_t * | stream, |
int * | b | ||
) |
Decode boolean.
Decode a single boolean value. The value false is represented by 0, and the value true is represented by 1.
stream | Input Stream |
b | boolean (out) |
int decodeNBitUnsignedInteger | ( | bitstream_t * | stream, |
uint16_t | nbits, | ||
uint32_t * | uint32 | ||
) |
Decode n-bit unsigned integer.
Decodes and returns an n-bit unsigned integer.
stream | Input Stream |
nbits | Number of bits |
uint32 | Value (out) |