Home | History | Annotate | Download | only in Tremolo

Lines Matching defs:bytes

101 static ogg_buffer *_fetch_buffer(ogg_buffer_state *bs,long bytes){
111 if(ob->size<bytes){
112 ob->data=_ogg_realloc(ob->data,bytes);
113 ob->size=bytes;
118 ob->data=_ogg_malloc(bytes<16?16:bytes);
119 ob->size=bytes;
147 of at least [bytes] length */
148 static ogg_reference *ogg_buffer_alloc(ogg_buffer_state *bs,long bytes){
149 ogg_buffer *ob=_fetch_buffer(bs,bytes);
156 static void ogg_buffer_realloc(ogg_reference *or,long bytes){
160 if(ob->size<bytes){
161 ob->data=_ogg_realloc(ob->data,bytes);
162 ob->size=bytes;
611 unsigned char *ogg_sync_bufferin(ogg_sync_state *oy, long bytes){
629 oy->fifo_head=oy->fifo_tail=ogg_buffer_alloc(oy->bufferpool,bytes);
636 oy->fifo_head->begin >= bytes)
642 ogg_buffer_realloc(oy->fifo_head,bytes);
648 ogg_reference *new=ogg_buffer_alloc(oy->bufferpool,bytes);
655 int ogg_sync_wrote(ogg_sync_state *oy, long bytes){
658 bytes)return OGG_EINVAL;
659 oy->fifo_head->length+=bytes;
660 oy->fifo_fill+=bytes;
665 ogg_uint32_t _checksum(ogg_reference *or, int bytes);
667 static ogg_uint32_t _checksum(ogg_reference *or, int bytes){
673 post=(bytes<or->length?bytes:or->length);
676 bytes-=j;
688 -n) skipped n bytes
689 0) page not ready; more data (no bytes skipped)
690 n) page synced at current location; page length n bytes
696 long bytes,ret=0;
700 bytes=oy->fifo_fill;
704 if(bytes<27)goto sync_out; /* not enough for even a minimal header */
714 if(bytes<oy->headerbytes)goto sync_out; /* not enough for header +
723 if(oy->bodybytes+oy->headerbytes>bytes)goto sync_out;
781 long bytes=next-now;
782 oy->fifo_tail=ogg_buffer_pretruncate(oy->fifo_tail,bytes);
783 ret-=bytes;
787 long bytes=oy->fifo_tail->length;
788 ret-=bytes;
789 oy->fifo_tail=ogg_buffer_pretruncate(oy->fifo_tail,bytes);
827 /* head did not start a synced page... skipped some bytes */
1113 op->bytes=os->body_fill&FINMASK;
1126 op->bytes=os->body_fill&FINMASK;