int main(int argc,char **argv) { char cline[1024]; char tempfmt[1024]; char also[1024]; int iarg; also[0] = '\0'; fprintf(stderr,"[indcolcmp 1.1]\n"); many_trantos = pipe_input = frc_suffix = 0; for (iarg=2;iarg<argc;++iarg){ if (stricmp(&argv[iarg][1],"fs")==0) frc_suffix = 1; else if (stricmp(&argv[iarg][1],"pipe")==0) pipe_input = 1; else if (stricmp(&argv[iarg][1],"big")==0) many_trantos = 1; else if (stricmp(&argv[iarg][1],"many")==0) many_trantos = 1; else{ if (strlen(also)>0) strcat(also," "); strcat(also,argv[iarg]);}} if (argc>1){ /* * First do individually modelled. */ if (many_trantos){ if (pipe_input){ DO3("many_ind2coll %s.mod -cp -X%s_frc %%s >qqq_%s.mod");} else if (frc_suffix){ DO4("many_ind2coll %s.mod -cp -X%s_frc %%s <%s_frc.mod >qqq_%s.mod");} else{ DO4("many_ind2coll %s.mod -cp -Xind_%s %%s <ind_%s.mod >qqq_%s.mod");}} else{ if (pipe_input){ DO3("ind2coll %s.mod -cp -X%s_frc %%s >qqq_%s.mod");} else if (frc_suffix){ DO4("ind2coll %s.mod -cp -X%s_frc %%s <%s_frc.mod >qqq_%s.mod");} else{ DO4("ind2coll %s.mod -cp -Xind_%s %%s <ind_%s.mod >qqq_%s.mod");}} DO2("coll2sort %%s <qqq_%s.mod >zzz_%s.mod"); DO2("coll2sort -cp %%s <zzz_%s.mod >ccc_%s.mod"); DO2("coll2sort %%s <ccc_%s.mod >ind_%s.mod"); /* * Then do collectively modelled. */ DO4("ind2coll %s.mod -cp %%s -X%s <%s.mod >hhh_%s.mod"); DO2("coll2sort %%s <hhh_%s.mod >jjj_%s.mod"); #ifdef OBSOLETE DO2("coll2sort -cp %%s <%s.mod >jjj_%s.mod"); #endif DO2("coll2sort -cp %%s <jjj_%s.mod >sss_%s.mod"); DO2("coll2sort %%s <sss_%s.mod >col_%s.mod"); /* * Then take differences */ DO3("diff ind_%s.mod col_%s.mod >%s.moddf");} return(0); }
// (1, frame, height(include padding), width(include padding) ) static unsigned long av_adler32_update(unsigned long adler, const unsigned char *buf, int ylen, int xlen) { unsigned long s1 = adler & 0xffff; unsigned long s2 = adler >> 16; unsigned char *pbuf; int xlenorg = xlen; while(ylen>0){ pbuf = ( unsigned char * )buf; while (xlen>0) { #ifdef CONFIG_SMALL while(xlen>4 && s2 < (1U<<31)){ DO4(buf); xlen-=4; #else while(xlen>0 && s2 < (1U<<31) && (xlen>16) ){ DO16(buf); xlen-=16; #endif } DO1(buf); xlen--; s1 %= BASE; s2 %= BASE; } ylen--; xlen = xlenorg; //buf = pbuf; } return (s2 << 16) | s1; } static int to_sched_priority(UINT8 ui1_priority) { int sched_priority; sched_priority = 100 - (int)ui1_priority * 100 / 256; if (sched_priority < 1) sched_priority = 1; if (sched_priority > 99) sched_priority = 99; return sched_priority; }