Mercurial > libavcodec.hg
changeset 6172:13aa4cac4dde libavcodec
Add #undef printf and disable non-functional code to make test program compile.
author | diego |
---|---|
date | Wed, 23 Jan 2008 21:27:07 +0000 |
parents | 1c0477262c72 |
children | 11d2976cddc4 |
files | h264.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Wed Jan 23 10:23:24 2008 +0000 +++ b/h264.c Wed Jan 23 21:27:07 2008 +0000 @@ -7821,6 +7821,7 @@ #endif #ifdef TEST +#undef printf #undef random #define COUNT 8000 #define SIZE (COUNT*40) @@ -7884,6 +7885,7 @@ STOP_TIMER("get_se_golomb"); } +#if 0 printf("testing 4x4 (I)DCT\n"); DCTELEM block[16]; @@ -7923,14 +7925,12 @@ } } printf("error=%f max_error=%d\n", ((float)error)/COUNT/16, (int)max_error ); -#if 0 printf("testing quantizer\n"); for(qp=0; qp<52; qp++){ for(i=0; i<16; i++) src1_block[i]= src2_block[i]= random()%255; } -#endif printf("Testing NAL layer\n"); uint8_t bitstream[COUNT]; @@ -7986,6 +7986,7 @@ return -1; } } +#endif printf("Testing RBSP\n");