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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 int br = bestmv->as_mv.row * 4, bc = bestmv->as_mv.col * 4; | 216 int br = bestmv->as_mv.row * 4, bc = bestmv->as_mv.col * 4; |
217 int tr = br, tc = bc; | 217 int tr = br, tc = bc; |
218 unsigned int besterr; | 218 unsigned int besterr; |
219 unsigned int left, right, up, down, diag; | 219 unsigned int left, right, up, down, diag; |
220 unsigned int sse; | 220 unsigned int sse; |
221 unsigned int whichdir; | 221 unsigned int whichdir; |
222 unsigned int halfiters = 4; | 222 unsigned int halfiters = 4; |
223 unsigned int quarteriters = 4; | 223 unsigned int quarteriters = 4; |
224 int thismse; | 224 int thismse; |
225 | 225 |
226 int minc = MAX(x->mv_col_min * 4, | 226 int minc = VPXMAX(x->mv_col_min * 4, |
227 (ref_mv->as_mv.col >> 1) - ((1 << mvlong_width) - 1)); | 227 (ref_mv->as_mv.col >> 1) - ((1 << mvlong_width) - 1)); |
228 int maxc = MIN(x->mv_col_max * 4, | 228 int maxc = VPXMIN(x->mv_col_max * 4, |
229 (ref_mv->as_mv.col >> 1) + ((1 << mvlong_width) - 1)); | 229 (ref_mv->as_mv.col >> 1) + ((1 << mvlong_width) - 1)); |
230 int minr = MAX(x->mv_row_min * 4, | 230 int minr = VPXMAX(x->mv_row_min * 4, |
231 (ref_mv->as_mv.row >> 1) - ((1 << mvlong_width) - 1)); | 231 (ref_mv->as_mv.row >> 1) - ((1 << mvlong_width) - 1)); |
232 int maxr = MIN(x->mv_row_max * 4, | 232 int maxr = VPXMIN(x->mv_row_max * 4, |
233 (ref_mv->as_mv.row >> 1) + ((1 << mvlong_width) - 1)); | 233 (ref_mv->as_mv.row >> 1) + ((1 << mvlong_width) - 1)); |
234 | 234 |
235 int y_stride; | 235 int y_stride; |
236 int offset; | 236 int offset; |
237 int pre_stride = x->e_mbd.pre.y_stride; | 237 int pre_stride = x->e_mbd.pre.y_stride; |
238 unsigned char *base_pre = x->e_mbd.pre.y_buffer; | 238 unsigned char *base_pre = x->e_mbd.pre.y_buffer; |
239 | 239 |
240 | 240 |
241 #if ARCH_X86 || ARCH_X86_64 | 241 #if ARCH_X86 || ARCH_X86_64 |
242 MACROBLOCKD *xd = &x->e_mbd; | 242 MACROBLOCKD *xd = &x->e_mbd; |
243 unsigned char *y_0 = base_pre + d->offset + (bestmv->as_mv.row) * pre_stride
+ bestmv->as_mv.col; | 243 unsigned char *y_0 = base_pre + d->offset + (bestmv->as_mv.row) * pre_stride
+ bestmv->as_mv.col; |
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2023 ++mv_mode_cts[3][1]; | 2023 ++mv_mode_cts[3][1]; |
2024 } | 2024 } |
2025 } | 2025 } |
2026 } | 2026 } |
2027 } | 2027 } |
2028 } | 2028 } |
2029 | 2029 |
2030 #endif/* END MV ref count VP8_ENTROPY_STATS stats code */ | 2030 #endif/* END MV ref count VP8_ENTROPY_STATS stats code */ |
2031 | 2031 |
2032 #endif | 2032 #endif |
OLD | NEW |