comparison motion_est.c @ 913:51f3b644ae30 libavcodec

better? scene change detection
author michaelni
date Thu, 05 Dec 2002 22:22:53 +0000
parents 22ee74da2cd3
children caa77cd960c0
comparison
equal deleted inserted replaced
912:4a1e6bb1f41c 913:51f3b644ae30
1129 #endif 1129 #endif
1130 if(s->flags&CODEC_FLAG_HQ){ 1130 if(s->flags&CODEC_FLAG_HQ){
1131 if (vard <= 64 || vard < varc) 1131 if (vard <= 64 || vard < varc)
1132 s->scene_change_score+= ff_sqrt(vard) - ff_sqrt(varc); 1132 s->scene_change_score+= ff_sqrt(vard) - ff_sqrt(varc);
1133 else 1133 else
1134 s->scene_change_score+= 20; 1134 s->scene_change_score+= s->qscale;
1135 1135
1136 if (vard*2 + 200 > varc) 1136 if (vard*2 + 200 > varc)
1137 mb_type|= MB_TYPE_INTRA; 1137 mb_type|= MB_TYPE_INTRA;
1138 if (varc*2 + 200 > vard){ 1138 if (varc*2 + 200 > vard){
1139 mb_type|= MB_TYPE_INTER; 1139 mb_type|= MB_TYPE_INTER;