Lines Matching defs:test
24 * DCT test (c) 2001 Fabrice Bellard
120 static void init_block(int16_t block[64], int test, int is_idct, AVLFG *prng, int vals)
126 switch (test) {
180 static int dct_error(const struct algo *dct, int test, int is_idct, int speed, const int bits)
202 init_block(block1, test, is_idct, &prng, vals);
253 if (test < 2)
269 /* speed test */
271 init_block(block, test, is_idct, &prng, vals);
386 /* just one test to see if code is correct (precision is less
454 printf("dct-test [-i] [<test-number>] [<bits>]\n"
455 "test-number 0 -> test with random matrixes\n"
456 " 1 -> test with random sparse matrixes\n"
457 " 2 -> do 3. test from MPEG-4 std\n"
459 "-i test IDCT implementations\n"
460 "-4 test IDCT248 implementations\n"
461 "-t speed test\n");
472 int test = 1;
501 test = atoi(argv[optind]);
504 printf("ffmpeg DCT/IDCT test\n");
512 err |= dct_error(&idct_tab[i], test, test_idct, speed, bits);
516 err |= dct_error(&idct_tab_arch[i], test, test_idct, speed, bits);
521 err |= dct_error(&fdct_tab[i], test, test_idct, speed, bits);
525 err |= dct_error(&fdct_tab_arch[i], test, test_idct, speed, bits);