OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Bink::Video::BitStream Struct Reference

Public Member Functions

 BitStream (const uint8_t *data, size_t bitCount)
 
void skip (size_t n)
 
float getFloat ()
 
int getInt32 ()
 
uint32_t getBit ()
 
uint32_t getBits (int n)
 
uint32_t showBits (int n)
 
uint32_t fetch32 ()
 
size_t position () const
 
size_t bitsLeft () const
 
void align32 ()
 

Public Attributes

const uint8_t * data = nullptr
 
size_t at = 0
 
size_t bitCount = 0
 
size_t byteCount = 0
 

Detailed Description

Definition at line 751 of file video.cpp.

Constructor & Destructor Documentation

◆ BitStream()

Bink::Video::BitStream::BitStream ( const uint8_t *  data,
size_t  bitCount 
)
inline

Definition at line 752 of file video.cpp.

Member Function Documentation

◆ align32()

void Bink::Video::BitStream::align32 ( )
inline

Definition at line 813 of file video.cpp.

◆ bitsLeft()

size_t Bink::Video::BitStream::bitsLeft ( ) const
inline

Definition at line 812 of file video.cpp.

◆ fetch32()

uint32_t Bink::Video::BitStream::fetch32 ( )
inline

Definition at line 796 of file video.cpp.

◆ getBit()

uint32_t Bink::Video::BitStream::getBit ( )
inline

Definition at line 772 of file video.cpp.

◆ getBits()

uint32_t Bink::Video::BitStream::getBits ( int  n)
inline

Definition at line 781 of file video.cpp.

◆ getFloat()

float Bink::Video::BitStream::getFloat ( )
inline

Definition at line 760 of file video.cpp.

◆ getInt32()

int Bink::Video::BitStream::getInt32 ( )
inline

Definition at line 768 of file video.cpp.

◆ position()

size_t Bink::Video::BitStream::position ( ) const
inline

Definition at line 811 of file video.cpp.

◆ showBits()

uint32_t Bink::Video::BitStream::showBits ( int  n)
inline

Definition at line 789 of file video.cpp.

◆ skip()

void Bink::Video::BitStream::skip ( size_t  n)
inline

Definition at line 754 of file video.cpp.

Member Data Documentation

◆ at

size_t Bink::Video::BitStream::at = 0

Definition at line 819 of file video.cpp.

◆ bitCount

size_t Bink::Video::BitStream::bitCount = 0

Definition at line 820 of file video.cpp.

◆ byteCount

size_t Bink::Video::BitStream::byteCount = 0

Definition at line 821 of file video.cpp.

◆ data

const uint8_t* Bink::Video::BitStream::data = nullptr

Definition at line 818 of file video.cpp.


The documentation for this struct was generated from the following file: