comparison h264.c @ 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 051a9c8b257f
children 27e90123b346
comparison
equal deleted inserted replaced
3971:e8a6d5c1ab0b 3972:f5f1c9af095d
6649 return -1; 6649 return -1;
6650 } else 6650 } else
6651 for( i4x4 = 0; i4x4 < 4; i4x4++ ) { 6651 for( i4x4 = 0; i4x4 < 4; i4x4++ ) {
6652 const int index = 4*i8x8 + i4x4; 6652 const int index = 4*i8x8 + i4x4;
6653 //av_log( s->avctx, AV_LOG_ERROR, "Luma4x4: %d\n", index ); 6653 //av_log( s->avctx, AV_LOG_ERROR, "Luma4x4: %d\n", index );
6654 //START_TIMER
6654 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 ) 6655 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 )
6655 return -1; 6656 return -1;
6657 //STOP_TIMER("decode_residual")
6656 } 6658 }
6657 } else { 6659 } else {
6658 uint8_t * const nnz= &h->non_zero_count_cache[ scan8[4*i8x8] ]; 6660 uint8_t * const nnz= &h->non_zero_count_cache[ scan8[4*i8x8] ];
6659 nnz[0] = nnz[1] = nnz[8] = nnz[9] = 0; 6661 nnz[0] = nnz[1] = nnz[8] = nnz[9] = 0;
6660 } 6662 }