[FFmpeg-cvslog] avcodec/cabac: remove START/STOP_TIMER debug/benchmark code
Michael Niedermayer
git at videolan.org
Sat Apr 18 17:53:32 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr 18 17:31:29 2015 +0200| [e739cbb2bb91f509eb887756dbab54011478390a] | committer: Michael Niedermayer
avcodec/cabac: remove START/STOP_TIMER debug/benchmark code
Found-by: James Almer <jamrial at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e739cbb2bb91f509eb887756dbab54011478390a
---
libavcodec/cabac.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index c755d7f..8cc9333 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -188,15 +188,11 @@ int main(void){
}
for(i=0; i<SIZE; i++){
-START_TIMER
put_cabac_bypass(&c, r[i]&1);
-STOP_TIMER("put_cabac_bypass")
}
for(i=0; i<SIZE; i++){
-START_TIMER
put_cabac(&c, state, r[i]&1);
-STOP_TIMER("put_cabac")
}
put_cabac_terminate(&c, 1);
@@ -206,21 +202,17 @@ STOP_TIMER("put_cabac")
memset(state, 0, sizeof(state));
for(i=0; i<SIZE; i++){
-START_TIMER
if( (r[i]&1) != get_cabac_bypass(&c) ) {
av_log(NULL, AV_LOG_ERROR, "CABAC bypass failure at %d\n", i);
ret = 1;
}
-STOP_TIMER("get_cabac_bypass")
}
for(i=0; i<SIZE; i++){
-START_TIMER
if( (r[i]&1) != get_cabac_noinline(&c, state) ) {
av_log(NULL, AV_LOG_ERROR, "CABAC failure at %d\n", i);
ret = 1;
}
-STOP_TIMER("get_cabac")
}
if(!get_cabac_terminate(&c)) {
av_log(NULL, AV_LOG_ERROR, "where's the Terminator?\n");
More information about the ffmpeg-cvslog
mailing list