Commit 9dc83161 authored by michael's avatar michael

50% faster decode_subband()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3418 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0393b2f8
......@@ -2033,8 +2033,16 @@ static inline void decode_subband(SnowContext *s, SubBand *b, DWTELEM *src, DWTE
//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<w && !src[x + 2 + (y-1)*stride] && !parent[((x+1)>>1) + py*2*stride]){
x++;
run--;
}
}
}
}
if(v){
......@@ -2046,7 +2054,7 @@ static inline void decode_subband(SnowContext *s, SubBand *b, DWTELEM *src, DWTE
}
}
}
if(level+1 == s->spatial_decomposition_count){
if(w > 200 /*level+1 == s->spatial_decomposition_count*/){
STOP_TIMER("decode_subband")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment