Lines Matching refs:ob
102 ogg_buffer *ob; in _fetch_buffer() local
107 ob=bs->unused_buffers; in _fetch_buffer()
108 bs->unused_buffers=ob->ptr.next; in _fetch_buffer()
111 if(ob->size<bytes){ in _fetch_buffer()
112 ob->data=_ogg_realloc(ob->data,bytes); in _fetch_buffer()
113 ob->size=bytes; in _fetch_buffer()
117 ob=_ogg_malloc(sizeof(*ob)); in _fetch_buffer()
118 ob->data=_ogg_malloc(bytes<16?16:bytes); in _fetch_buffer()
119 ob->size=bytes; in _fetch_buffer()
122 ob->refcount=1; in _fetch_buffer()
123 ob->ptr.owner=bs; in _fetch_buffer()
124 return ob; in _fetch_buffer()
149 ogg_buffer *ob=_fetch_buffer(bs,bytes); in ogg_buffer_alloc() local
151 or->buffer=ob; in ogg_buffer_alloc()
157 ogg_buffer *ob=or->buffer; in ogg_buffer_realloc() local
160 if(ob->size<bytes){ in ogg_buffer_realloc()
161 ob->data=_ogg_realloc(ob->data,bytes); in ogg_buffer_realloc()
162 ob->size=bytes; in ogg_buffer_realloc()
291 ogg_buffer *ob=or->buffer; in ogg_buffer_release_one() local
292 ogg_buffer_state *bs=ob->ptr.owner; in ogg_buffer_release_one()
294 ob->refcount--; in ogg_buffer_release_one()
295 if(ob->refcount==0){ in ogg_buffer_release_one()
297 ob->ptr.next=bs->unused_buffers; in ogg_buffer_release_one()
298 bs->unused_buffers=ob; in ogg_buffer_release_one()
440 oggbyte_buffer ob; in ogg_page_version() local
441 if(oggbyte_init(&ob,og->header))return -1; in ogg_page_version()
442 return oggbyte_read1(&ob,4); in ogg_page_version()
446 oggbyte_buffer ob; in ogg_page_continued() local
447 if(oggbyte_init(&ob,og->header))return -1; in ogg_page_continued()
448 return oggbyte_read1(&ob,5)&0x01; in ogg_page_continued()
452 oggbyte_buffer ob; in ogg_page_bos() local
453 if(oggbyte_init(&ob,og->header))return -1; in ogg_page_bos()
454 return oggbyte_read1(&ob,5)&0x02; in ogg_page_bos()
458 oggbyte_buffer ob; in ogg_page_eos() local
459 if(oggbyte_init(&ob,og->header))return -1; in ogg_page_eos()
460 return oggbyte_read1(&ob,5)&0x04; in ogg_page_eos()
464 oggbyte_buffer ob; in ogg_page_granulepos() local
465 if(oggbyte_init(&ob,og->header))return -1; in ogg_page_granulepos()
466 return oggbyte_read8(&ob,6); in ogg_page_granulepos()
470 oggbyte_buffer ob; in ogg_page_serialno() local
471 if(oggbyte_init(&ob,og->header)) return 0xffffffffUL; in ogg_page_serialno()
472 return oggbyte_read4(&ob,14); in ogg_page_serialno()
476 oggbyte_buffer ob; in ogg_page_pageno() local
477 if(oggbyte_init(&ob,og->header))return 0xffffffffUL; in ogg_page_pageno()
478 return oggbyte_read4(&ob,18); in ogg_page_pageno()
502 oggbyte_buffer ob; in ogg_page_packets() local
503 oggbyte_init(&ob,og->header); in ogg_page_packets()
505 n=oggbyte_read1(&ob,26); in ogg_page_packets()
507 if(oggbyte_read1(&ob,27+i)<255)count++; in ogg_page_packets()
888 static void _next_lace(oggbyte_buffer *ob,ogg_stream_state *os){ in _next_lace() argument
892 int val=oggbyte_read1(ob,27+os->laceptr++); in _next_lace()
925 oggbyte_buffer ob; in _span_queued_page() local
930 oggbyte_init(&ob,os->header_tail); in _span_queued_page()
931 os->lacing_fill=oggbyte_read1(&ob,26); in _span_queued_page()
951 _next_lace(&ob,os); in _span_queued_page()
976 _next_lace(&ob,os); in _span_queued_page()
980 _next_lace(&ob,os); in _span_queued_page()
1106 oggbyte_buffer ob; in _packetout() local
1107 oggbyte_init(&ob,os->header_tail); in _packetout()
1122 _next_lace(&ob,os); in _packetout()