# HG changeset patch # User michael # Date 1093568818 0 # Node ID 44afbcec70b8d8c74098402505c76e0ad25d855f # Parent 303e09116fe708f862a6f71eb8a235ee281a6dba 50% faster decode_subband() diff -r 303e09116fe7 -r 44afbcec70b8 snow.c --- a/snow.c Thu Aug 26 22:46:15 2004 +0000 +++ b/snow.c Fri Aug 27 01:06:58 2004 +0000 @@ -2033,8 +2033,16 @@ //FIXME try to store a more naive run v=1; }else{ + int py= y>>1; run--; v=0; + + if(y && parent && py < b->parent->height){ + while(run && x+2>1) + py*2*stride]){ + x++; + run--; + } + } } } if(v){ @@ -2046,7 +2054,7 @@ } } } - if(level+1 == s->spatial_decomposition_count){ + if(w > 200 /*level+1 == s->spatial_decomposition_count*/){ STOP_TIMER("decode_subband") }