Lines Matching refs:lacing_vals
195 os->lacing_vals=_ogg_malloc(os->lacing_storage*sizeof(*os->lacing_vals)); in ogg_stream_init()
198 if(!os->body_data || !os->lacing_vals || !os->granule_vals){ in ogg_stream_init()
220 if(os->lacing_vals)_ogg_free(os->lacing_vals); in ogg_stream_clear()
257 ret=_ogg_realloc(os->lacing_vals,(os->lacing_storage+needed+32)* in _os_lacing_expand()
258 sizeof(*os->lacing_vals)); in _os_lacing_expand()
263 os->lacing_vals=ret; in _os_lacing_expand()
307 int bytes = 0, lacing_vals, i; in ogg_stream_iovecin() local
313 lacing_vals=bytes/255+1; in ogg_stream_iovecin()
328 if(_os_body_expand(os,bytes) || _os_lacing_expand(os,lacing_vals)) in ogg_stream_iovecin()
342 for(i=0;i<lacing_vals-1;i++){ in ogg_stream_iovecin()
343 os->lacing_vals[os->lacing_fill+i]=255; in ogg_stream_iovecin()
346 os->lacing_vals[os->lacing_fill+i]=bytes%255; in ogg_stream_iovecin()
350 os->lacing_vals[os->lacing_fill]|= 0x100; in ogg_stream_iovecin()
352 os->lacing_fill+=lacing_vals; in ogg_stream_iovecin()
391 if((os->lacing_vals[vals]&0x0ff)<255){ in ogg_stream_flush_i()
414 acc+=os->lacing_vals[vals]&0x0ff; in ogg_stream_flush_i()
415 if((os->lacing_vals[vals]&0xff)<255){ in ogg_stream_flush_i()
434 if((os->lacing_vals[0]&0x100)==0)os->header[5]|=0x01; in ogg_stream_flush_i()
480 bytes+=os->header[i+27]=(unsigned char)(os->lacing_vals[i]&0xff); in ogg_stream_flush_i()
491 memmove(os->lacing_vals,os->lacing_vals+vals,os->lacing_fill*sizeof(*os->lacing_vals)); in ogg_stream_flush_i()
800 memmove(os->lacing_vals,os->lacing_vals+lr, in ogg_stream_pagein()
801 (os->lacing_fill-lr)*sizeof(*os->lacing_vals)); in ogg_stream_pagein()
823 os->body_fill-=os->lacing_vals[i]&0xff; in ogg_stream_pagein()
828 os->lacing_vals[os->lacing_fill++]=0x400; in ogg_stream_pagein()
837 os->lacing_vals[os->lacing_fill-1]==0x400){ in ogg_stream_pagein()
861 os->lacing_vals[os->lacing_fill]=val; in ogg_stream_pagein()
865 os->lacing_vals[os->lacing_fill]|=0x100; in ogg_stream_pagein()
887 os->lacing_vals[os->lacing_fill-1]|=0x200; in ogg_stream_pagein()
945 if(os->lacing_vals[ptr]&0x400){ in _packetout()
959 int size=os->lacing_vals[ptr]&0xff; in _packetout()
961 int eos=os->lacing_vals[ptr]&0x200; /* last packet of the stream? */ in _packetout()
962 int bos=os->lacing_vals[ptr]&0x100; /* first packet of the stream? */ in _packetout()
965 int val=os->lacing_vals[++ptr]; in _packetout()