[BACK]Return to aproc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Diff for /src/usr.bin/aucat/Attic/aproc.c between version 1.28 and 1.29

version 1.28, 2008/12/27 16:10:39 version 1.29, 2008/12/27 17:02:13
Line 944 
Line 944 
                         ctx_start ^= 1;                          ctx_start ^= 1;
                         ctx = ctxbuf + ctx_start;                          ctx = ctxbuf + ctx_start;
                         for (c = inch; c > 0; c--) {                          for (c = inch; c > 0; c--) {
                                 *ctx = *idata;                                  *ctx = *idata++;
                                 idata++;  
                                 ctx += RESAMP_NCTX;                                  ctx += RESAMP_NCTX;
                         }                          }
                         diff += oblksz;                          diff += oblksz;
Line 955 
Line 954 
                                 break;                                  break;
                         ctx = ctxbuf;                          ctx = ctxbuf;
                         for (c = onch; c > 0; c--) {                          for (c = onch; c > 0; c--) {
                                 s1 = ctxbuf[ctx_start];                                  s1 = ctx[ctx_start];
                                 s2 = ctxbuf[ctx_start ^ 1];                                  s2 = ctx[ctx_start ^ 1];
                                 ctx += RESAMP_NCTX;                                  ctx += RESAMP_NCTX;
                                 *odata++ = s1 + (s2 - s1) * diff / (int)oblksz;                                  *odata++ = s1 + (s2 - s1) * diff / (int)oblksz;
                         }                          }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29