Skip to content
Snippets Groups Projects
Commit 70bd7a3d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Optimize top non_zero_count_cache init.

Originally committed as revision 21306 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5e07aa77
No related branches found
No related tags found
No related merge requests found
...@@ -970,16 +970,13 @@ static av_always_inline int fill_caches(H264Context *h, int mb_type, int for_deb ...@@ -970,16 +970,13 @@ static av_always_inline int fill_caches(H264Context *h, int mb_type, int for_deb
if(for_deblock){ if(for_deblock){
*(uint32_t*)&h->non_zero_count_cache[4+8*0]= 0; *(uint32_t*)&h->non_zero_count_cache[4+8*0]= 0;
}else{ }else{
h->non_zero_count_cache[4+8*0]=
h->non_zero_count_cache[5+8*0]=
h->non_zero_count_cache[6+8*0]=
h->non_zero_count_cache[7+8*0]=
h->non_zero_count_cache[1+8*0]= h->non_zero_count_cache[1+8*0]=
h->non_zero_count_cache[2+8*0]= h->non_zero_count_cache[2+8*0]=
h->non_zero_count_cache[1+8*3]= h->non_zero_count_cache[1+8*3]=
h->non_zero_count_cache[2+8*3]= CABAC && !IS_INTRA(mb_type) ? 0 : 64; h->non_zero_count_cache[2+8*3]=
*(uint32_t*)&h->non_zero_count_cache[4+8*0]= CABAC && !IS_INTRA(mb_type) ? 0 : 0x40404040;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment