KVIrc
4.9.2
DeveloperAPIs
|
A namespace implementing our tricky codec to send and receive text multiplexed inside an ogg stream. More...
Functions | |
static void | _tp_readbuffer (oggpack_buffer *opb, char *buf, const long len) |
Reads len bytes from the bitpacking buffer opb to buf. More... | |
static void | _tp_writebuffer (oggpack_buffer *opb, const char *buf, const long len) |
Writes len bytes from buf to the bitpacking buffer opb. More... | |
static int | irct_decode_headerin (ogg_packet *op) |
Decoded an irct header (used when decoding) More... | |
static int | irct_decode_packetin (char **textPkt, int *textSize, ogg_packet *op) |
Extracts some bunary text from an irct packet (used when decoding) More... | |
static int | irct_encode_clear () |
Irct codec destructor function; this is where the codec state gets cleared (unused by now) More... | |
static int | irct_encode_headerout (ogg_packet *op) |
Creates an irct header (used when encoding) More... | |
static int | irct_encode_init () |
Irct codec constructor function; this is where the codec state gets created (unused by now) More... | |
static int | irct_encode_packetout (const char *textPkt, int textSize, int last_p, ogg_packet *op) |
Creates an irct packet from some binary text (used when encoding) More... | |
A namespace implementing our tricky codec to send and receive text multiplexed inside an ogg stream.
|
static |
Reads len bytes from the bitpacking buffer opb to buf.
opb | The bitpacking buffer containing data |
buf | Address of a preallocated buffer where to copy data |
len | Length in octects to copy |
References i.
Referenced by irct_decode_headerin(), and irct_decode_packetin().
|
static |
Writes len bytes from buf to the bitpacking buffer opb.
opb | The bitpacking buffer where to copy data |
buf | Address of a buffer containing source data |
len | Length in octects to copy |
References i.
Referenced by irct_encode_headerout(), and irct_encode_packetout().
|
static |
Decoded an irct header (used when decoding)
op | the ogg packet that contains the header |
References _tp_readbuffer(), KviMemory::allocate(), and KviRuntimeInfo::version().
Referenced by KviOggTheoraDecoder::addData().
|
static |
Extracts some bunary text from an irct packet (used when decoding)
textPkt | the buffer That will contains the text |
textSize | will be set at the size of the text buffer |
op | the ogg packet that contains the text |
References _tp_readbuffer(), and KviMemory::allocate().
Referenced by KviOggTheoraDecoder::addData().
|
static |
Irct codec destructor function; this is where the codec state gets cleared (unused by now)
Referenced by KviOggTheoraDecoder::~KviOggTheoraDecoder(), and KviOggTheoraEncoder::~KviOggTheoraEncoder().
|
static |
Creates an irct header (used when encoding)
op | the ogg packet that will contain the header |
References _tp_writebuffer(), and KviMemory::allocate().
Referenced by KviOggTheoraEncoder::KviOggTheoraEncoder().
|
static |
Irct codec constructor function; this is where the codec state gets created (unused by now)
Referenced by KviOggTheoraEncoder::KviOggTheoraEncoder().
|
static |
Creates an irct packet from some binary text (used when encoding)
textPkt | the buffer containing the text |
textSize | size of the text buffer |
last_p | packet number in the irct stream |
op | the ogg packet that will contain the text |
References _tp_writebuffer(), and KviMemory::allocate().
Referenced by KviOggTheoraEncoder::addTextFrame().