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