Commit 4ff46af0 authored by Diego Biurrun's avatar Diego Biurrun

h264-test: cleanup: drop timer invocations, commented out code and other cruft

parent 3856a2aa
...@@ -4101,7 +4101,6 @@ static inline void fill_mb_avail(H264Context *h){ ...@@ -4101,7 +4101,6 @@ static inline void fill_mb_avail(H264Context *h){
#ifdef TEST #ifdef TEST
#undef printf #undef printf
#undef random
#define COUNT 8000 #define COUNT 8000
#define SIZE (COUNT*40) #define SIZE (COUNT*40)
int main(void){ int main(void){
...@@ -4113,9 +4112,7 @@ int main(void){ ...@@ -4113,9 +4112,7 @@ int main(void){
init_put_bits(&pb, temp, SIZE); init_put_bits(&pb, temp, SIZE);
printf("testing unsigned exp golomb\n"); printf("testing unsigned exp golomb\n");
for(i=0; i<COUNT; i++){ for(i=0; i<COUNT; i++){
START_TIMER
set_ue_golomb(&pb, i); set_ue_golomb(&pb, i);
STOP_TIMER("set_ue_golomb");
} }
flush_put_bits(&pb); flush_put_bits(&pb);
...@@ -4123,22 +4120,16 @@ int main(void){ ...@@ -4123,22 +4120,16 @@ int main(void){
for(i=0; i<COUNT; i++){ for(i=0; i<COUNT; i++){
int j, s = show_bits(&gb, 24); int j, s = show_bits(&gb, 24);
START_TIMER
j= get_ue_golomb(&gb); j= get_ue_golomb(&gb);
if(j != i){ if(j != i){
printf("mismatch! at %d (%d should be %d) bits:%6X\n", i, j, i, s); 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); init_put_bits(&pb, temp, SIZE);
printf("testing signed exp golomb\n"); printf("testing signed exp golomb\n");
for(i=0; i<COUNT; i++){ for(i=0; i<COUNT; i++){
START_TIMER
set_se_golomb(&pb, i - COUNT/2); set_se_golomb(&pb, i - COUNT/2);
STOP_TIMER("set_se_golomb");
} }
flush_put_bits(&pb); flush_put_bits(&pb);
...@@ -4146,18 +4137,12 @@ int main(void){ ...@@ -4146,18 +4137,12 @@ int main(void){
for(i=0; i<COUNT; i++){ for(i=0; i<COUNT; i++){
int j, s = show_bits(&gb, 24); int j, s = show_bits(&gb, 24);
START_TIMER
j= get_se_golomb(&gb); j= get_se_golomb(&gb);
if(j != i - COUNT/2){ if(j != i - COUNT/2){
printf("mismatch! at %d (%d should be %d) bits:%6X\n", i, j, i, s); 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; return 0;
} }
#endif /* TEST */ #endif /* TEST */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment