comparison h264.h @ 10927:bb774f0bc2b6 libavcodec

Optimize top non_zero_count_cache init.
author michael
date Mon, 18 Jan 2010 23:31:14 +0000
parents 42cff5346e53
children 03d778b06643
comparison
equal deleted inserted replaced
10926:42cff5346e53 10927:bb774f0bc2b6
968 } 968 }
969 }else{ 969 }else{
970 if(for_deblock){ 970 if(for_deblock){
971 *(uint32_t*)&h->non_zero_count_cache[4+8*0]= 0; 971 *(uint32_t*)&h->non_zero_count_cache[4+8*0]= 0;
972 }else{ 972 }else{
973 h->non_zero_count_cache[4+8*0]=
974 h->non_zero_count_cache[5+8*0]=
975 h->non_zero_count_cache[6+8*0]=
976 h->non_zero_count_cache[7+8*0]=
977 973
978 h->non_zero_count_cache[1+8*0]= 974 h->non_zero_count_cache[1+8*0]=
979 h->non_zero_count_cache[2+8*0]= 975 h->non_zero_count_cache[2+8*0]=
980 976
981 h->non_zero_count_cache[1+8*3]= 977 h->non_zero_count_cache[1+8*3]=
982 h->non_zero_count_cache[2+8*3]= CABAC && !IS_INTRA(mb_type) ? 0 : 64; 978 h->non_zero_count_cache[2+8*3]=
979 *(uint32_t*)&h->non_zero_count_cache[4+8*0]= CABAC && !IS_INTRA(mb_type) ? 0 : 0x40404040;
983 } 980 }
984 981
985 } 982 }
986 983
987 for (i=0; i<2; i++) { 984 for (i=0; i<2; i++) {