comparison motion_est_template.c @ 3293:f1bcb9ae510b libavcodec

make zero motion vector threshold user setable
author michael
date Sun, 07 May 2006 11:48:07 +0000
parents 0b546eab515d
children c8c591fe26f8
comparison
equal deleted inserted replaced
3292:1fd5fce70e66 3293:f1bcb9ae510b
894 if (s->first_slice_line) { 894 if (s->first_slice_line) {
895 CHECK_MV(P_LEFT[0]>>shift, P_LEFT[1]>>shift) 895 CHECK_MV(P_LEFT[0]>>shift, P_LEFT[1]>>shift)
896 CHECK_CLIPED_MV((last_mv[ref_mv_xy][0]*ref_mv_scale + (1<<15))>>16, 896 CHECK_CLIPED_MV((last_mv[ref_mv_xy][0]*ref_mv_scale + (1<<15))>>16,
897 (last_mv[ref_mv_xy][1]*ref_mv_scale + (1<<15))>>16) 897 (last_mv[ref_mv_xy][1]*ref_mv_scale + (1<<15))>>16)
898 }else{ 898 }else{
899 if(dmin<h*h && ( P_LEFT[0] |P_LEFT[1] 899 if(dmin<((h*h*s->avctx->mv0_threshold)>>8)
900 && ( P_LEFT[0] |P_LEFT[1]
900 |P_TOP[0] |P_TOP[1] 901 |P_TOP[0] |P_TOP[1]
901 |P_TOPRIGHT[0]|P_TOPRIGHT[1])==0){ 902 |P_TOPRIGHT[0]|P_TOPRIGHT[1])==0){
902 *mx_ptr= 0; 903 *mx_ptr= 0;
903 *my_ptr= 0; 904 *my_ptr= 0;
904 c->skip=1; 905 c->skip=1;