~ubuntu-branches/ubuntu/trusty/libav/trusty

« back to all changes in this revision

Viewing changes to libavcodec/dct-test.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Jonathan Nieder, Reinhard Tartler
  • Date: 2011-05-13 12:31:33 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (1.3.4 sid)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20110513123133-zqcsj91sf5489y4s
Tags: 4:0.7~beta2-1
[ Jonathan Nieder ]
* only install doc/APIChanges in *-dev and libav-doc packages
* move note on source package lineage to README.Debian
* install NEWS.Debian in libavcodec-dev
* use dpkg source format 3.0 (quilt)
* allow "debian/rules clean" as unprivileged user

[ Reinhard Tartler ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
    }
313
313
    for(i=0; i<64; i++) sysErrMax= FFMAX(sysErrMax, FFABS(sysErr[i]));
314
314
 
315
 
#if 1 // dump systematic errors
316
315
    for(i=0; i<64; i++){
317
316
        if(i%8==0) printf("\n");
318
317
        printf("%7d ", (int)sysErr[i]);
319
318
    }
320
319
    printf("\n");
321
 
#endif
322
320
 
323
321
    printf("%s %s: err_inf=%d err2=%0.8f syserr=%0.8f maxout=%d blockSumErr=%d\n",
324
322
           is_idct ? "IDCT" : "DCT",
325
323
           name, err_inf, (double)err2 / NB_ITS / 64.0, (double)sysErrMax / NB_ITS, maxout, blockSumErrMax);
326
 
#if 1 //Speed test
 
324
 
327
325
    /* speed test */
328
326
    for(i=0;i<64;i++)
329
327
        block1[i] = 0;
376
374
    printf("%s %s: %0.1f kdct/s\n",
377
375
           is_idct ? "IDCT" : "DCT",
378
376
           name, (double)it1 * 1000.0 / (double)ti1);
379
 
#endif
380
377
}
381
378
 
382
379
DECLARE_ALIGNED(8, static uint8_t, img_dest)[64];
496
493
            if (v > err_max)
497
494
                err_max = v;
498
495
        }
499
 
#if 0
500
 
        printf("ref=\n");
501
 
        for(i=0;i<8;i++) {
502
 
            int j;
503
 
            for(j=0;j<8;j++) {
504
 
                printf(" %3d", img_dest1[i*8+j]);
505
 
            }
506
 
            printf("\n");
507
 
        }
508
 
 
509
 
        printf("out=\n");
510
 
        for(i=0;i<8;i++) {
511
 
            int j;
512
 
            for(j=0;j<8;j++) {
513
 
                printf(" %3d", img_dest[i*8+j]);
514
 
            }
515
 
            printf("\n");
516
 
        }
517
 
#endif
518
496
    }
519
497
    printf("%s %s: err_inf=%d\n",
520
498
           1 ? "IDCT248" : "DCT248",