Lines Matching refs:lacing_fill
255 if(os->lacing_storage<=os->lacing_fill+needed){
343 os->lacing_vals[os->lacing_fill+i]=255;
344 os->granule_vals[os->lacing_fill+i]=os->granulepos;
346 os->lacing_vals[os->lacing_fill+i]=bytes%255;
347 os->granulepos=os->granule_vals[os->lacing_fill+i]=granulepos;
350 os->lacing_vals[os->lacing_fill]|= 0x100;
352 os->lacing_fill+=lacing_vals;
375 int maxvals=(os->lacing_fill>255?255:os->lacing_fill);
438 if(os->e_o_s && os->lacing_fill==vals)os->header[5]|=0x04;
490 os->lacing_fill-=vals;
491 memmove(os->lacing_vals,os->lacing_vals+vals,os->lacing_fill*sizeof(*os->lacing_vals));
492 memmove(os->granule_vals,os->granule_vals+vals,os->lacing_fill*sizeof(*os->granule_vals));
529 if((os->e_o_s&&os->lacing_fill) || /* 'were done, now flush' case */
530 (os->lacing_fill&&!os->b_o_s)) /* 'initial header page' case */
799 if(os->lacing_fill-lr){
801 (os->lacing_fill-lr)*sizeof(*os->lacing_vals));
803 (os->lacing_fill-lr)*sizeof(*os->granule_vals));
805 os->lacing_fill-=lr;
822 for(i=os->lacing_packet;i<os->lacing_fill;i++)
824 os->lacing_fill=os->lacing_packet;
828 os->lacing_vals[os->lacing_fill++]=0x400;
836 if(os->lacing_fill<1 ||
837 os->lacing_vals[os->lacing_fill-1]==0x400){
861 os->lacing_vals[os->lacing_fill]=val;
862 os->granule_vals[os->lacing_fill]=-1;
865 os->lacing_vals[os->lacing_fill]|=0x100;
869 if(val<255)saved=os->lacing_fill;
871 os->lacing_fill++;
874 if(val<255)os->lacing_packet=os->lacing_fill;
886 if(os->lacing_fill>0)
887 os->lacing_vals[os->lacing_fill-1]|=0x200;
913 os->lacing_fill=0;