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 __INC_BLOCK_H | 12 #ifndef __INC_BLOCK_H |
13 #define __INC_BLOCK_H | 13 #define __INC_BLOCK_H |
14 | 14 |
15 #include "vp8/common/onyx.h" | 15 #include "vp8/common/onyx.h" |
16 #include "vp8/common/blockd.h" | 16 #include "vp8/common/blockd.h" |
17 #include "vp8/common/entropymv.h" | 17 #include "vp8/common/entropymv.h" |
18 #include "vp8/common/entropy.h" | 18 #include "vp8/common/entropy.h" |
19 #include "vpx_ports/mem.h" | 19 #include "vpx_ports/mem.h" |
20 | 20 |
| 21 #define MAX_MODES 20 |
| 22 #define MAX_ERROR_BINS 1024 |
| 23 |
21 /* motion search site */ | 24 /* motion search site */ |
22 typedef struct | 25 typedef struct |
23 { | 26 { |
24 MV mv; | 27 MV mv; |
25 int offset; | 28 int offset; |
26 } search_site; | 29 } search_site; |
27 | 30 |
28 typedef struct block | 31 typedef struct block |
29 { | 32 { |
30 /* 16 Y blocks, 4 U blocks, 4 V blocks each with 16 entries */ | 33 /* 16 Y blocks, 4 U blocks, 4 V blocks each with 16 entries */ |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 int q_index; | 123 int q_index; |
121 | 124 |
122 #if CONFIG_TEMPORAL_DENOISING | 125 #if CONFIG_TEMPORAL_DENOISING |
123 MB_PREDICTION_MODE best_sse_inter_mode; | 126 MB_PREDICTION_MODE best_sse_inter_mode; |
124 int_mv best_sse_mv; | 127 int_mv best_sse_mv; |
125 MV_REFERENCE_FRAME best_reference_frame; | 128 MV_REFERENCE_FRAME best_reference_frame; |
126 MV_REFERENCE_FRAME best_zeromv_reference_frame; | 129 MV_REFERENCE_FRAME best_zeromv_reference_frame; |
127 unsigned char need_to_clamp_best_mvs; | 130 unsigned char need_to_clamp_best_mvs; |
128 #endif | 131 #endif |
129 | 132 |
| 133 int skip_true_count; |
| 134 unsigned int coef_counts [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MA
X_ENTROPY_TOKENS]; |
| 135 unsigned int MVcount [2] [MVvals]; /* (row,col) MV cts this frame */ |
| 136 int ymode_count [VP8_YMODES]; /* intra MB type cts this frame */ |
| 137 int uv_mode_count[VP8_UV_MODES]; /* intra MB type cts this frame */ |
| 138 int64_t prediction_error; |
| 139 int64_t intra_error; |
| 140 int count_mb_ref_frame_usage[MAX_REF_FRAMES]; |
130 | 141 |
| 142 int rd_thresh_mult[MAX_MODES]; |
| 143 int rd_threshes[MAX_MODES]; |
| 144 unsigned int mbs_tested_so_far; |
| 145 unsigned int mode_test_hit_counts[MAX_MODES]; |
| 146 int zbin_mode_boost_enabled; |
| 147 int zbin_mode_boost; |
| 148 int last_zbin_mode_boost; |
| 149 |
| 150 int last_zbin_over_quant; |
| 151 int zbin_over_quant; |
| 152 int error_bins[MAX_ERROR_BINS]; |
131 | 153 |
132 void (*short_fdct4x4)(short *input, short *output, int pitch); | 154 void (*short_fdct4x4)(short *input, short *output, int pitch); |
133 void (*short_fdct8x4)(short *input, short *output, int pitch); | 155 void (*short_fdct8x4)(short *input, short *output, int pitch); |
134 void (*short_walsh4x4)(short *input, short *output, int pitch); | 156 void (*short_walsh4x4)(short *input, short *output, int pitch); |
135 void (*quantize_b)(BLOCK *b, BLOCKD *d); | 157 void (*quantize_b)(BLOCK *b, BLOCKD *d); |
136 void (*quantize_b_pair)(BLOCK *b1, BLOCK *b2, BLOCKD *d0, BLOCKD *d1); | 158 void (*quantize_b_pair)(BLOCK *b1, BLOCK *b2, BLOCKD *d0, BLOCKD *d1); |
137 | 159 |
138 } MACROBLOCK; | 160 } MACROBLOCK; |
139 | 161 |
140 | 162 |
141 #endif | 163 #endif |
OLD | NEW |