mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
21 lines
430 B
C
21 lines
430 B
C
#ifndef misc_123
|
|
#define misc_123
|
|
|
|
/* some useful things needed by many files ... */
|
|
|
|
#include <stdint.h>
|
|
|
|
#define INVALID_PTS_VALUE 0x200000000ll
|
|
|
|
struct BitPacker_t
|
|
{
|
|
uint8_t *Ptr; /* write pointer */
|
|
unsigned int BitBuffer; /* bitreader shifter */
|
|
int Remaining; /* number of remaining in the shifter */
|
|
};
|
|
|
|
void PutBits(BitPacker_t * ld, unsigned int code, unsigned int length);
|
|
void FlushBits(BitPacker_t * ld);
|
|
|
|
#endif
|