diff --git a/vp8/common/extend.c b/vp8/common/extend.c index 036bafc5d02c59a5a920e422425b94a8e91d8e23..a2d3253328d722042e6cbf0146fca01fbca114f6 100644 --- a/vp8/common/extend.c +++ b/vp8/common/extend.c @@ -85,10 +85,10 @@ void vp8_copy_and_extend_frame(YV12_BUFFER_CONFIG *src, src->y_height, src->y_width, et, el, eb, er); - et = (et + 1) >> 1; - el = (el + 1) >> 1; - eb = (eb + 1) >> 1; - er = (er + 1) >> 1; + et = dst->border >> 1; + el = dst->border >> 1; + eb = (dst->border >> 1) + dst->uv_height - src->uv_height; + er = (dst->border >> 1) + dst->uv_width - src->uv_width; copy_and_extend_plane(src->u_buffer, src->uv_stride, dst->u_buffer, dst->uv_stride, diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 7b1bd32de0b4583da573350bbebf6ef1bd62d8e4..20e80fec9314edccd27f3fbd351deabd434aaa25 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -627,10 +627,6 @@ void vp8_set_speed_features(VP8_COMP *cpi) sf->recode_loop = 1; sf->quarter_pixel_search = 1; sf->half_pixel_search = 1; - sf->full_freq[0] = 7; - sf->full_freq[1] = 7; - sf->min_fs_radius = 8; - sf->max_fs_radius = 32; sf->iterative_sub_pixel = 1; sf->optimize_coefficients = 1; sf->use_fastquant_for_pick = 0; @@ -673,8 +669,6 @@ void vp8_set_speed_features(VP8_COMP *cpi) sf->thresh_mult[THR_SPLITG ] = 5000; sf->thresh_mult[THR_SPLITA ] = 5000; - sf->full_freq[0] = 7; - sf->full_freq[1] = 15; sf->first_step = 0; sf->max_step_search_steps = MAX_MVSEARCH_STEPS; @@ -732,8 +726,6 @@ void vp8_set_speed_features(VP8_COMP *cpi) sf->thresh_mult[THR_SPLITG ] = 10000; sf->thresh_mult[THR_SPLITA ] = 10000; #endif - sf->full_freq[0] = 15; - sf->full_freq[1] = 31; if (Speed > 0) { @@ -827,8 +819,6 @@ void vp8_set_speed_features(VP8_COMP *cpi) // alt ref frames sf->recode_loop = 2; - sf->full_freq[0] = 31; - sf->full_freq[1] = 63; } if (Speed > 3) @@ -849,15 +839,11 @@ void vp8_set_speed_features(VP8_COMP *cpi) sf->recode_loop = 0; // recode loop off sf->RD = 0; // Turn rd off - sf->full_freq[0] = 63; - sf->full_freq[1] = 127; } if (Speed > 4) { sf->auto_filter = 0; // Faster selection of loop filter - sf->full_freq[0] = INT_MAX; - sf->full_freq[1] = INT_MAX; cpi->mode_check_freq[THR_V_PRED] = 2; cpi->mode_check_freq[THR_H_PRED] = 2; @@ -919,8 +905,6 @@ void vp8_set_speed_features(VP8_COMP *cpi) sf->thresh_mult[THR_SPLITMV ] = 5000; sf->thresh_mult[THR_SPLITG ] = 10000; sf->thresh_mult[THR_SPLITA ] = 10000; - sf->full_freq[0] = 15; - sf->full_freq[1] = 31; sf->search_method = NSTEP; if (Speed > 0) @@ -1001,8 +985,6 @@ void vp8_set_speed_features(VP8_COMP *cpi) sf->thresh_mult[THR_SPLITA ] = 50000; } - sf->full_freq[0] = 31; - sf->full_freq[1] = 63; } if (Speed > 2) @@ -1029,15 +1011,11 @@ void vp8_set_speed_features(VP8_COMP *cpi) sf->thresh_mult[THR_SPLITG ] = INT_MAX; sf->thresh_mult[THR_SPLITA ] = INT_MAX; - sf->full_freq[0] = 63; - sf->full_freq[1] = 127; } if (Speed > 3) { sf->RD = 0; - sf->full_freq[0] = INT_MAX; - sf->full_freq[1] = INT_MAX; sf->auto_filter = 1; } diff --git a/vp8/encoder/onyx_int.h b/vp8/encoder/onyx_int.h index 71a8521f49b304dfbd17409a9abafaee8af56f7b..266069f0ecd51da4ce9fb726e1066aaa3bde3e12 100644 --- a/vp8/encoder/onyx_int.h +++ b/vp8/encoder/onyx_int.h @@ -180,9 +180,6 @@ typedef struct int half_pixel_search; int quarter_pixel_search; int thresh_mult[MAX_MODES]; - int full_freq[2]; - int min_fs_radius; - int max_fs_radius; int max_step_search_steps; int first_step; int optimize_coefficients;