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 #ifndef VP9_ENCODER_VP9_MCOMP_H_ | 12 #ifndef VP9_ENCODER_VP9_MCOMP_H_ |
13 #define VP9_ENCODER_VP9_MCOMP_H_ | 13 #define VP9_ENCODER_VP9_MCOMP_H_ |
14 | 14 |
15 #include "vp9/encoder/vp9_block.h" | 15 #include "vp9/encoder/vp9_block.h" |
16 #include "vp9/encoder/vp9_variance.h" | 16 #include "vp9/encoder/vp9_variance.h" |
17 | 17 |
18 #ifdef ENTROPY_STATS | 18 #ifdef ENTROPY_STATS |
19 extern void init_mv_ref_counts(); | 19 extern void init_mv_ref_counts(); |
20 extern void accum_mv_refs(MB_PREDICTION_MODE, const int near_mv_ref_cts[4]); | 20 extern void accum_mv_refs(MB_PREDICTION_MODE, const int near_mv_ref_cts[4]); |
| 21 void print_mode_context(void); |
21 #endif | 22 #endif |
22 | 23 |
23 | 24 |
24 #define MAX_MVSEARCH_STEPS 8 // The maximum n
umber of steps in a step search given the largest allowed initial step | 25 #define MAX_MVSEARCH_STEPS 8 // The maximum n
umber of steps in a step search given the largest allowed initial step |
25 #define MAX_FULL_PEL_VAL ((1 << (MAX_MVSEARCH_STEPS)) - 1) // Max full pel
mv specified in 1 pel units | 26 #define MAX_FULL_PEL_VAL ((1 << (MAX_MVSEARCH_STEPS)) - 1) // Max full pel
mv specified in 1 pel units |
26 #define MAX_FIRST_STEP (1 << (MAX_MVSEARCH_STEPS-1)) // Maximum size
of the first step in full pel units | 27 #define MAX_FIRST_STEP (1 << (MAX_MVSEARCH_STEPS-1)) // Maximum size
of the first step in full pel units |
27 | 28 |
28 extern void vp9_clamp_mv_min_max(MACROBLOCK *x, int_mv *ref_mv); | 29 extern void vp9_clamp_mv_min_max(MACROBLOCK *x, int_mv *ref_mv); |
29 extern int vp9_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvjcost, | 30 extern int vp9_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvjcost, |
30 int *mvcost[2], int Weight, int ishp); | 31 int *mvcost[2], int Weight, int ishp); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 76 |
76 typedef int (*vp9_diamond_search_fn_t)(MACROBLOCK *x, BLOCK *b, BLOCKD *d, | 77 typedef int (*vp9_diamond_search_fn_t)(MACROBLOCK *x, BLOCK *b, BLOCKD *d, |
77 int_mv *ref_mv, int_mv *best_mv, | 78 int_mv *ref_mv, int_mv *best_mv, |
78 int search_param, int sad_per_bit, | 79 int search_param, int sad_per_bit, |
79 int *num00, | 80 int *num00, |
80 vp9_variance_fn_ptr_t *fn_ptr, | 81 vp9_variance_fn_ptr_t *fn_ptr, |
81 int *mvjcost, int *mvcost[2], | 82 int *mvjcost, int *mvcost[2], |
82 int_mv *center_mv); | 83 int_mv *center_mv); |
83 | 84 |
84 | 85 |
85 #endif | 86 #endif // VP9_ENCODER_VP9_MCOMP_H_ |
OLD | NEW |