diff --git a/libavcodec/snow.c b/libavcodec/snow.c index bf107f91e9..18be35218e 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -1906,13 +1906,13 @@ static inline void decode_subband(SnowContext *s, SubBand *b, DWTELEM *src, DWTE int qmul= qexp[qlog&7]<<(qlog>>3); int qadd= (s->qbias*qmul)>>QBIAS_SHIFT; + START_TIMER + if(b->buf == s->spatial_dwt_buffer || s->qlog == LOSSLESS_QLOG){ qadd= 0; qmul= 1<last_picture.data[plane_index]; int w= p->width; int h= p->height; + START_TIMER if(s->avctx->debug&512){ for(y=0; yavctx->debug&512){ for(mb_x=-1; mb_x<=mb_w; mb_x++){ int index= clip(mb_x, 0, mb_w-1) + clip(mb_y, 0, mb_h-1)*mb_stride; + START_TIMER add_xblock(s, buf, ref, obmc, block_w*mb_x - block_w/2, block_w*mb_y - block_w/2, @@ -2603,8 +2605,11 @@ if(s->avctx->debug&512){ w, ref_stride, obmc_stride, s->block[index].type, add, s->block[index].color[plane_index]); + STOP_TIMER("add_xblock") } } + + STOP_TIMER("predict_plane") } static void quantize(SnowContext *s, SubBand *b, DWTELEM *src, int stride, int bias){