search for: oggpack_bits

Displaying 2 results from an estimated 2 matches for "oggpack_bits".

2008 Feb 06
6
Ogg bitwise.c bit tracking
...t it's a particularly important issue, since remaining bits will probably be initialized, but I noticed this while adding some calls to oggpack_look1 at the end of my decode routines to check that negative was being returned (eg, the data stream ended where it should), and it didn't. Also, oggpack_bits, when called with a read buffer, returns the number of bits read so far, rather than the number of bits still unread, which does seem counterintuitive (to me): the docs say the routine returns: "[...] the total number of bits within the current buffer" which I would read as either the ful...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...******/ extern void oggpack_readinit(oggpack_buffer *b,ogg_reference *r); extern long oggpack_look(oggpack_buffer *b,int bits); extern void oggpack_adv(oggpack_buffer *b,int bits); extern long oggpack_read(oggpack_buffer *b,int bits); extern long oggpack_bytes(oggpack_buffer *b); extern long oggpack_bits(oggpack_buffer *b); extern int oggpack_eop(oggpack_buffer *b); /* Ogg BITSTREAM PRIMITIVES: decoding **************************/ extern ogg_sync_state *ogg_sync_create(void); extern int ogg_sync_destroy(ogg_sync_state *oy); extern int ogg_sync_reset(ogg_sync_state *oy); extern unsign...