comparison h264.h @ 11268:e817a3c2ec2e libavcodec

Replace /2 by faster >>1 as the mvd values are now all positive.
author michael
date Wed, 24 Feb 2010 01:57:31 +0000
parents e9163a5b650f
children c12d6c6c027e
comparison
equal deleted inserted replaced
11267:e9163a5b650f 11268:e817a3c2ec2e
1130 if(MB_FIELD){ 1130 if(MB_FIELD){
1131 #define MAP_F2F(idx, mb_type)\ 1131 #define MAP_F2F(idx, mb_type)\
1132 if(!IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\ 1132 if(!IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\
1133 h->ref_cache[list][idx] <<= 1;\ 1133 h->ref_cache[list][idx] <<= 1;\
1134 h->mv_cache[list][idx][1] /= 2;\ 1134 h->mv_cache[list][idx][1] /= 2;\
1135 h->mvd_cache[list][idx][1] /= 2;\ 1135 h->mvd_cache[list][idx][1] >>=1;\
1136 } 1136 }
1137 MAP_MVS 1137 MAP_MVS
1138 #undef MAP_F2F 1138 #undef MAP_F2F
1139 }else{ 1139 }else{
1140 #define MAP_F2F(idx, mb_type)\ 1140 #define MAP_F2F(idx, mb_type)\