OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 best_ref_mv1_full.col = best_ref_mv1.col >> 3; | 157 best_ref_mv1_full.col = best_ref_mv1.col >> 3; |
158 best_ref_mv1_full.row = best_ref_mv1.row >> 3; | 158 best_ref_mv1_full.row = best_ref_mv1.row >> 3; |
159 | 159 |
160 // Setup frame pointers | 160 // Setup frame pointers |
161 x->plane[0].src.buf = arf_frame_buf; | 161 x->plane[0].src.buf = arf_frame_buf; |
162 x->plane[0].src.stride = stride; | 162 x->plane[0].src.stride = stride; |
163 xd->plane[0].pre[0].buf = frame_ptr_buf; | 163 xd->plane[0].pre[0].buf = frame_ptr_buf; |
164 xd->plane[0].pre[0].stride = stride; | 164 xd->plane[0].pre[0].stride = stride; |
165 | 165 |
166 step_param = mv_sf->reduce_first_step_size + (cpi->oxcf.speed > 5 ? 1 : 0); | 166 step_param = mv_sf->reduce_first_step_size; |
167 step_param = MIN(step_param, mv_sf->max_step_search_steps - 2); | 167 step_param = MIN(step_param, MAX_MVSEARCH_STEPS - 2); |
168 | 168 |
169 // Ignore mv costing by sending NULL pointer instead of cost arrays | 169 // Ignore mv costing by sending NULL pointer instead of cost arrays |
170 vp9_hex_search(x, &best_ref_mv1_full, step_param, sadpb, 1, | 170 vp9_hex_search(x, &best_ref_mv1_full, step_param, sadpb, 1, |
171 &cpi->fn_ptr[BLOCK_16X16], 0, &best_ref_mv1, ref_mv); | 171 &cpi->fn_ptr[BLOCK_16X16], 0, &best_ref_mv1, ref_mv); |
172 | 172 |
173 // Ignore mv costing by sending NULL pointer instead of cost array | 173 // Ignore mv costing by sending NULL pointer instead of cost array |
174 bestsme = cpi->find_fractional_mv_step(x, ref_mv, | 174 bestsme = cpi->find_fractional_mv_step(x, ref_mv, |
175 &best_ref_mv1, | 175 &best_ref_mv1, |
176 cpi->common.allow_high_precision_mv, | 176 cpi->common.allow_high_precision_mv, |
177 x->errorperbit, | 177 x->errorperbit, |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 | 515 |
516 // Adjust number of frames in filter and strength based on gf boost level. | 516 // Adjust number of frames in filter and strength based on gf boost level. |
517 if (cpi->active_arnr_frames > (group_boost / 150)) { | 517 if (cpi->active_arnr_frames > (group_boost / 150)) { |
518 cpi->active_arnr_frames = (group_boost / 150); | 518 cpi->active_arnr_frames = (group_boost / 150); |
519 cpi->active_arnr_frames += !(cpi->active_arnr_frames & 1); | 519 cpi->active_arnr_frames += !(cpi->active_arnr_frames & 1); |
520 } | 520 } |
521 if (cpi->active_arnr_strength > (group_boost / 300)) { | 521 if (cpi->active_arnr_strength > (group_boost / 300)) { |
522 cpi->active_arnr_strength = (group_boost / 300); | 522 cpi->active_arnr_strength = (group_boost / 300); |
523 } | 523 } |
524 } | 524 } |
OLD | NEW |