Add #undef printf and disable non-functional code to make test program compile.

Originally committed as revision 11604 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2008-01-23 21:27:07 +00:00
parent 51198a8737
commit 6bf398a030

View File

@ -7821,6 +7821,7 @@ static inline void fill_mb_avail(H264Context *h){
#endif #endif
#ifdef TEST #ifdef TEST
#undef printf
#undef random #undef random
#define COUNT 8000 #define COUNT 8000
#define SIZE (COUNT*40) #define SIZE (COUNT*40)
@ -7884,6 +7885,7 @@ int main(void){
STOP_TIMER("get_se_golomb"); STOP_TIMER("get_se_golomb");
} }
#if 0
printf("testing 4x4 (I)DCT\n"); printf("testing 4x4 (I)DCT\n");
DCTELEM block[16]; DCTELEM block[16];
@ -7923,14 +7925,12 @@ int main(void){
} }
} }
printf("error=%f max_error=%d\n", ((float)error)/COUNT/16, (int)max_error ); printf("error=%f max_error=%d\n", ((float)error)/COUNT/16, (int)max_error );
#if 0
printf("testing quantizer\n"); printf("testing quantizer\n");
for(qp=0; qp<52; qp++){ for(qp=0; qp<52; qp++){
for(i=0; i<16; i++) for(i=0; i<16; i++)
src1_block[i]= src2_block[i]= random()%255; src1_block[i]= src2_block[i]= random()%255;
} }
#endif
printf("Testing NAL layer\n"); printf("Testing NAL layer\n");
uint8_t bitstream[COUNT]; uint8_t bitstream[COUNT];
@ -7986,6 +7986,7 @@ int main(void){
return -1; return -1;
} }
} }
#endif
printf("Testing RBSP\n"); printf("Testing RBSP\n");