Mercurial > libavcodec.hg
changeset 3972:f5f1c9af095d libavcodec
move outcommented START/STOP_TIMER to a hopefully better place for benchmarking ...
author | michael |
---|---|
date | Mon, 09 Oct 2006 18:20:00 +0000 |
parents | e8a6d5c1ab0b |
children | b28edd190fc0 |
files | cabac.h h264.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cabac.h Mon Oct 09 15:52:17 2006 +0000 +++ b/cabac.h Mon Oct 09 18:20:00 2006 +0000 @@ -363,7 +363,6 @@ static int get_cabac(CABACContext *c, uint8_t * const state){ //FIXME gcc generates duplicate load/stores for c->low and c->range -//START_TIMER #ifdef ARCH_X86 int bit; @@ -486,7 +485,6 @@ refill2(c); #endif #endif -//STOP_TIMER("get_cabac") return bit; }
--- a/h264.c Mon Oct 09 15:52:17 2006 +0000 +++ b/h264.c Mon Oct 09 18:20:00 2006 +0000 @@ -6651,8 +6651,10 @@ for( i4x4 = 0; i4x4 < 4; i4x4++ ) { const int index = 4*i8x8 + i4x4; //av_log( s->avctx, AV_LOG_ERROR, "Luma4x4: %d\n", index ); +//START_TIMER if( decode_cabac_residual(h, h->mb + 16*index, 2, index, scan, h->dequant4_coeff[IS_INTRA( mb_type ) ? 0:3][s->qscale], 16) < 0 ) return -1; +//STOP_TIMER("decode_residual") } } else { uint8_t * const nnz= &h->non_zero_count_cache[ scan8[4*i8x8] ];