| 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 |
| 11 | 11 |
| 12 #include "./vp8_rtcd.h" | 12 #include "./vp8_rtcd.h" |
| 13 #include "./vpx_dsp_rtcd.h" | 13 #include "./vpx_dsp_rtcd.h" |
| 14 #include "onyx_int.h" | 14 #include "onyx_int.h" |
| 15 #include "mcomp.h" | 15 #include "mcomp.h" |
| 16 #include "vpx_mem/vpx_mem.h" | 16 #include "vpx_mem/vpx_mem.h" |
| 17 #include "vpx_config.h" | 17 #include "vpx_config.h" |
| 18 #include <stdio.h> | 18 #include <stdio.h> |
| 19 #include <limits.h> | 19 #include <limits.h> |
| 20 #include <math.h> | 20 #include <math.h> |
| 21 #include "vp8/common/findnearmv.h" | 21 #include "vp8/common/findnearmv.h" |
| 22 #include "vp8/common/common.h" | 22 #include "vp8/common/common.h" |
| 23 #include "vpx_dsp/vpx_dsp_common.h" |
| 23 | 24 |
| 24 #ifdef VP8_ENTROPY_STATS | 25 #ifdef VP8_ENTROPY_STATS |
| 25 static int mv_ref_ct [31] [4] [2]; | 26 static int mv_ref_ct [31] [4] [2]; |
| 26 static int mv_mode_cts [4] [2]; | 27 static int mv_mode_cts [4] [2]; |
| 27 #endif | 28 #endif |
| 28 | 29 |
| 29 int vp8_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int Weight) | 30 int vp8_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int Weight) |
| 30 { | 31 { |
| 31 /* MV costing is based on the distribution of vectors in the previous | 32 /* MV costing is based on the distribution of vectors in the previous |
| 32 * frame and as such will tend to over state the cost of vectors. In | 33 * frame and as such will tend to over state the cost of vectors. In |
| (...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2023 ++mv_mode_cts[3][1]; | 2024 ++mv_mode_cts[3][1]; |
| 2024 } | 2025 } |
| 2025 } | 2026 } |
| 2026 } | 2027 } |
| 2027 } | 2028 } |
| 2028 } | 2029 } |
| 2029 | 2030 |
| 2030 #endif/* END MV ref count VP8_ENTROPY_STATS stats code */ | 2031 #endif/* END MV ref count VP8_ENTROPY_STATS stats code */ |
| 2031 | 2032 |
| 2032 #endif | 2033 #endif |
| OLD | NEW |