summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-30 11:16:20 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-31 19:56:11 +0100
commit4ff46af039997652b7d955b74e655077d2e8c871 (patch)
tree41906b914eb24359f8c8670d69b2b30970c3e438 /libavcodec/h264.c
parent3856a2aaa6a44d80da597e932e9d475bda8546bd (diff)
h264-test: cleanup: drop timer invocations, commented out code and other cruft
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8b8c4fec1c..76d6f7fa65 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4101,7 +4101,6 @@ static inline void fill_mb_avail(H264Context *h){
#ifdef TEST
#undef printf
-#undef random
#define COUNT 8000
#define SIZE (COUNT*40)
int main(void){
@@ -4113,9 +4112,7 @@ int main(void){
init_put_bits(&pb, temp, SIZE);
printf("testing unsigned exp golomb\n");
for(i=0; i<COUNT; i++){
- START_TIMER
set_ue_golomb(&pb, i);
- STOP_TIMER("set_ue_golomb");
}
flush_put_bits(&pb);
@@ -4123,22 +4120,16 @@ int main(void){
for(i=0; i<COUNT; i++){
int j, s = show_bits(&gb, 24);
- START_TIMER
j= get_ue_golomb(&gb);
if(j != i){
printf("mismatch! at %d (%d should be %d) bits:%6X\n", i, j, i, s);
-// return -1;
}
- STOP_TIMER("get_ue_golomb");
}
-
init_put_bits(&pb, temp, SIZE);
printf("testing signed exp golomb\n");
for(i=0; i<COUNT; i++){
- START_TIMER
set_se_golomb(&pb, i - COUNT/2);
- STOP_TIMER("set_se_golomb");
}
flush_put_bits(&pb);
@@ -4146,18 +4137,12 @@ int main(void){
for(i=0; i<COUNT; i++){
int j, s = show_bits(&gb, 24);
- START_TIMER
j= get_se_golomb(&gb);
if(j != i - COUNT/2){
printf("mismatch! at %d (%d should be %d) bits:%6X\n", i, j, i, s);
-// return -1;
}
- STOP_TIMER("get_se_golomb");
}
- printf("Testing RBSP\n");
-
-
return 0;
}
#endif /* TEST */