Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: source/libvpx/vp9/decoder/vp9_decodemv.c

Issue 897063002: Revert "libvpx: Pull from upstream" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vp9/decoder/vp9_decodemv.h ('k') | source/libvpx/vp9/decoder/vp9_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <assert.h> 11 #include <assert.h>
12 12
13 #include "vp9/common/vp9_common.h" 13 #include "vp9/common/vp9_common.h"
14 #include "vp9/common/vp9_entropy.h" 14 #include "vp9/common/vp9_entropy.h"
15 #include "vp9/common/vp9_entropymode.h" 15 #include "vp9/common/vp9_entropymode.h"
16 #include "vp9/common/vp9_entropymv.h" 16 #include "vp9/common/vp9_entropymv.h"
17 #include "vp9/common/vp9_mvref_common.h" 17 #include "vp9/common/vp9_mvref_common.h"
18 #include "vp9/common/vp9_pred_common.h" 18 #include "vp9/common/vp9_pred_common.h"
19 #include "vp9/common/vp9_reconinter.h" 19 #include "vp9/common/vp9_reconinter.h"
20 #include "vp9/common/vp9_seg_common.h" 20 #include "vp9/common/vp9_seg_common.h"
21 21
22 #include "vp9/decoder/vp9_decodemv.h" 22 #include "vp9/decoder/vp9_decodemv.h"
23 #include "vp9/decoder/vp9_decodeframe.h" 23 #include "vp9/decoder/vp9_decodeframe.h"
24 #include "vp9/decoder/vp9_reader.h" 24 #include "vp9/decoder/vp9_reader.h"
25 25
26 static PREDICTION_MODE read_intra_mode(vp9_reader *r, const vp9_prob *p) { 26 static PREDICTION_MODE read_intra_mode(vp9_reader *r, const vp9_prob *p) {
27 return (PREDICTION_MODE)vp9_read_tree(r, vp9_intra_mode_tree, p); 27 return (PREDICTION_MODE)vp9_read_tree(r, vp9_intra_mode_tree, p);
28 } 28 }
29 29
30 static PREDICTION_MODE read_intra_mode_y(VP9_COMMON *cm, FRAME_COUNTS *counts, 30 static PREDICTION_MODE read_intra_mode_y(VP9_COMMON *cm, vp9_reader *r,
31 vp9_reader *r, int size_group) { 31 int size_group) {
32 const PREDICTION_MODE y_mode = 32 const PREDICTION_MODE y_mode =
33 read_intra_mode(r, cm->fc->y_mode_prob[size_group]); 33 read_intra_mode(r, cm->fc->y_mode_prob[size_group]);
34 if (!cm->frame_parallel_decoding_mode) 34 if (!cm->frame_parallel_decoding_mode)
35 ++counts->y_mode[size_group][y_mode]; 35 ++cm->counts.y_mode[size_group][y_mode];
36 return y_mode; 36 return y_mode;
37 } 37 }
38 38
39 static PREDICTION_MODE read_intra_mode_uv(VP9_COMMON *cm, FRAME_COUNTS *counts, 39 static PREDICTION_MODE read_intra_mode_uv(VP9_COMMON *cm, vp9_reader *r,
40 vp9_reader *r,
41 PREDICTION_MODE y_mode) { 40 PREDICTION_MODE y_mode) {
42 const PREDICTION_MODE uv_mode = read_intra_mode(r, 41 const PREDICTION_MODE uv_mode = read_intra_mode(r,
43 cm->fc->uv_mode_prob[y_mode]); 42 cm->fc->uv_mode_prob[y_mode]);
44 if (!cm->frame_parallel_decoding_mode) 43 if (!cm->frame_parallel_decoding_mode)
45 ++counts->uv_mode[y_mode][uv_mode]; 44 ++cm->counts.uv_mode[y_mode][uv_mode];
46 return uv_mode; 45 return uv_mode;
47 } 46 }
48 47
49 static PREDICTION_MODE read_inter_mode(VP9_COMMON *cm, FRAME_COUNTS *counts, 48 static PREDICTION_MODE read_inter_mode(VP9_COMMON *cm, vp9_reader *r, int ctx) {
50 vp9_reader *r, int ctx) {
51 const int mode = vp9_read_tree(r, vp9_inter_mode_tree, 49 const int mode = vp9_read_tree(r, vp9_inter_mode_tree,
52 cm->fc->inter_mode_probs[ctx]); 50 cm->fc->inter_mode_probs[ctx]);
53 if (!cm->frame_parallel_decoding_mode) 51 if (!cm->frame_parallel_decoding_mode)
54 ++counts->inter_mode[ctx][mode]; 52 ++cm->counts.inter_mode[ctx][mode];
55 53
56 return NEARESTMV + mode; 54 return NEARESTMV + mode;
57 } 55 }
58 56
59 static int read_segment_id(vp9_reader *r, const struct segmentation *seg) { 57 static int read_segment_id(vp9_reader *r, const struct segmentation *seg) {
60 return vp9_read_tree(r, vp9_segment_tree, seg->tree_probs); 58 return vp9_read_tree(r, vp9_segment_tree, seg->tree_probs);
61 } 59 }
62 60
63 static TX_SIZE read_selected_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd, 61 static TX_SIZE read_selected_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd,
64 FRAME_COUNTS *counts,
65 TX_SIZE max_tx_size, vp9_reader *r) { 62 TX_SIZE max_tx_size, vp9_reader *r) {
66 const int ctx = vp9_get_tx_size_context(xd); 63 const int ctx = vp9_get_tx_size_context(xd);
67 const vp9_prob *tx_probs = get_tx_probs(max_tx_size, ctx, &cm->fc->tx_probs); 64 const vp9_prob *tx_probs = get_tx_probs(max_tx_size, ctx, &cm->fc->tx_probs);
68 int tx_size = vp9_read(r, tx_probs[0]); 65 int tx_size = vp9_read(r, tx_probs[0]);
69 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) { 66 if (tx_size != TX_4X4 && max_tx_size >= TX_16X16) {
70 tx_size += vp9_read(r, tx_probs[1]); 67 tx_size += vp9_read(r, tx_probs[1]);
71 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32) 68 if (tx_size != TX_8X8 && max_tx_size >= TX_32X32)
72 tx_size += vp9_read(r, tx_probs[2]); 69 tx_size += vp9_read(r, tx_probs[2]);
73 } 70 }
74 71
75 if (!cm->frame_parallel_decoding_mode) 72 if (!cm->frame_parallel_decoding_mode)
76 ++get_tx_counts(max_tx_size, ctx, &counts->tx)[tx_size]; 73 ++get_tx_counts(max_tx_size, ctx, &cm->counts.tx)[tx_size];
77 return (TX_SIZE)tx_size; 74 return (TX_SIZE)tx_size;
78 } 75 }
79 76
80 static TX_SIZE read_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd, 77 static TX_SIZE read_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd,
81 FRAME_COUNTS *counts,
82 int allow_select, vp9_reader *r) { 78 int allow_select, vp9_reader *r) {
83 TX_MODE tx_mode = cm->tx_mode; 79 TX_MODE tx_mode = cm->tx_mode;
84 BLOCK_SIZE bsize = xd->mi[0].src_mi->mbmi.sb_type; 80 BLOCK_SIZE bsize = xd->mi[0].src_mi->mbmi.sb_type;
85 const TX_SIZE max_tx_size = max_txsize_lookup[bsize]; 81 const TX_SIZE max_tx_size = max_txsize_lookup[bsize];
86 if (allow_select && tx_mode == TX_MODE_SELECT && bsize >= BLOCK_8X8) 82 if (allow_select && tx_mode == TX_MODE_SELECT && bsize >= BLOCK_8X8)
87 return read_selected_tx_size(cm, xd, counts, max_tx_size, r); 83 return read_selected_tx_size(cm, xd, max_tx_size, r);
88 else 84 else
89 return MIN(max_tx_size, tx_mode_to_biggest_tx_size[tx_mode]); 85 return MIN(max_tx_size, tx_mode_to_biggest_tx_size[tx_mode]);
90 } 86 }
91 87
92 static void set_segment_id(VP9_COMMON *cm, BLOCK_SIZE bsize, 88 static void set_segment_id(VP9_COMMON *cm, BLOCK_SIZE bsize,
93 int mi_row, int mi_col, int segment_id) { 89 int mi_row, int mi_col, int segment_id) {
94 const int mi_offset = mi_row * cm->mi_cols + mi_col; 90 const int mi_offset = mi_row * cm->mi_cols + mi_col;
95 const int bw = num_8x8_blocks_wide_lookup[bsize]; 91 const int bw = num_8x8_blocks_wide_lookup[bsize];
96 const int bh = num_8x8_blocks_high_lookup[bsize]; 92 const int bh = num_8x8_blocks_high_lookup[bsize];
97 const int xmis = MIN(cm->mi_cols - mi_col, bw); 93 const int xmis = MIN(cm->mi_cols - mi_col, bw);
98 const int ymis = MIN(cm->mi_rows - mi_row, bh); 94 const int ymis = MIN(cm->mi_rows - mi_row, bh);
99 int x, y; 95 int x, y;
100 96
101 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS); 97 assert(segment_id >= 0 && segment_id < MAX_SEGMENTS);
102 98
103 for (y = 0; y < ymis; y++) 99 for (y = 0; y < ymis; y++)
104 for (x = 0; x < xmis; x++) 100 for (x = 0; x < xmis; x++)
105 cm->current_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id; 101 cm->last_frame_seg_map[mi_offset + y * cm->mi_cols + x] = segment_id;
106 }
107
108 static void copy_segment_id(const VP9_COMMON *cm,
109 const uint8_t *last_segment_ids,
110 uint8_t *current_segment_ids,
111 BLOCK_SIZE bsize, int mi_row, int mi_col) {
112 const int mi_offset = mi_row * cm->mi_cols + mi_col;
113 const int bw = num_8x8_blocks_wide_lookup[bsize];
114 const int bh = num_8x8_blocks_high_lookup[bsize];
115 const int xmis = MIN(cm->mi_cols - mi_col, bw);
116 const int ymis = MIN(cm->mi_rows - mi_row, bh);
117 int x, y;
118
119 for (y = 0; y < ymis; y++)
120 for (x = 0; x < xmis; x++)
121 current_segment_ids[mi_offset + y * cm->mi_cols + x] = last_segment_ids ?
122 last_segment_ids[mi_offset + y * cm->mi_cols + x] : 0;
123 } 102 }
124 103
125 static int read_intra_segment_id(VP9_COMMON *const cm, MACROBLOCKD *const xd, 104 static int read_intra_segment_id(VP9_COMMON *const cm, MACROBLOCKD *const xd,
126 int mi_row, int mi_col, 105 int mi_row, int mi_col,
127 vp9_reader *r) { 106 vp9_reader *r) {
128 struct segmentation *const seg = &cm->seg; 107 struct segmentation *const seg = &cm->seg;
129 const BLOCK_SIZE bsize = xd->mi[0].src_mi->mbmi.sb_type; 108 const BLOCK_SIZE bsize = xd->mi[0].src_mi->mbmi.sb_type;
130 int segment_id; 109 int segment_id;
131 110
132 if (!seg->enabled) 111 if (!seg->enabled)
133 return 0; // Default for disabled segmentation 112 return 0; // Default for disabled segmentation
134 113
135 if (!seg->update_map) { 114 if (!seg->update_map)
136 copy_segment_id(cm, cm->last_frame_seg_map, cm->current_frame_seg_map,
137 bsize, mi_row, mi_col);
138 return 0; 115 return 0;
139 }
140 116
141 segment_id = read_segment_id(r, seg); 117 segment_id = read_segment_id(r, seg);
142 set_segment_id(cm, bsize, mi_row, mi_col, segment_id); 118 set_segment_id(cm, bsize, mi_row, mi_col, segment_id);
143 return segment_id; 119 return segment_id;
144 } 120 }
145 121
146 static int read_inter_segment_id(VP9_COMMON *const cm, MACROBLOCKD *const xd, 122 static int read_inter_segment_id(VP9_COMMON *const cm, MACROBLOCKD *const xd,
147 int mi_row, int mi_col, vp9_reader *r) { 123 int mi_row, int mi_col, vp9_reader *r) {
148 struct segmentation *const seg = &cm->seg; 124 struct segmentation *const seg = &cm->seg;
149 MB_MODE_INFO *const mbmi = &xd->mi[0].src_mi->mbmi; 125 MB_MODE_INFO *const mbmi = &xd->mi[0].src_mi->mbmi;
150 const BLOCK_SIZE bsize = mbmi->sb_type; 126 const BLOCK_SIZE bsize = mbmi->sb_type;
151 int predicted_segment_id, segment_id; 127 int predicted_segment_id, segment_id;
152 128
153 if (!seg->enabled) 129 if (!seg->enabled)
154 return 0; // Default for disabled segmentation 130 return 0; // Default for disabled segmentation
155 131
156 predicted_segment_id = cm->last_frame_seg_map ? 132 predicted_segment_id = vp9_get_segment_id(cm, cm->last_frame_seg_map,
157 vp9_get_segment_id(cm, cm->last_frame_seg_map, bsize, mi_row, mi_col) : 0; 133 bsize, mi_row, mi_col);
158 134 if (!seg->update_map)
159 if (!seg->update_map) {
160 copy_segment_id(cm, cm->last_frame_seg_map, cm->current_frame_seg_map,
161 bsize, mi_row, mi_col);
162 return predicted_segment_id; 135 return predicted_segment_id;
163 }
164 136
165 if (seg->temporal_update) { 137 if (seg->temporal_update) {
166 const vp9_prob pred_prob = vp9_get_pred_prob_seg_id(seg, xd); 138 const vp9_prob pred_prob = vp9_get_pred_prob_seg_id(seg, xd);
167 mbmi->seg_id_predicted = vp9_read(r, pred_prob); 139 mbmi->seg_id_predicted = vp9_read(r, pred_prob);
168 segment_id = mbmi->seg_id_predicted ? predicted_segment_id 140 segment_id = mbmi->seg_id_predicted ? predicted_segment_id
169 : read_segment_id(r, seg); 141 : read_segment_id(r, seg);
170 } else { 142 } else {
171 segment_id = read_segment_id(r, seg); 143 segment_id = read_segment_id(r, seg);
172 } 144 }
173 set_segment_id(cm, bsize, mi_row, mi_col, segment_id); 145 set_segment_id(cm, bsize, mi_row, mi_col, segment_id);
174 return segment_id; 146 return segment_id;
175 } 147 }
176 148
177 static int read_skip(VP9_COMMON *cm, const MACROBLOCKD *xd, 149 static int read_skip(VP9_COMMON *cm, const MACROBLOCKD *xd,
178 FRAME_COUNTS *counts,
179 int segment_id, vp9_reader *r) { 150 int segment_id, vp9_reader *r) {
180 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) { 151 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) {
181 return 1; 152 return 1;
182 } else { 153 } else {
183 const int ctx = vp9_get_skip_context(xd); 154 const int ctx = vp9_get_skip_context(xd);
184 const int skip = vp9_read(r, cm->fc->skip_probs[ctx]); 155 const int skip = vp9_read(r, cm->fc->skip_probs[ctx]);
185 if (!cm->frame_parallel_decoding_mode) 156 if (!cm->frame_parallel_decoding_mode)
186 ++counts->skip[ctx][skip]; 157 ++cm->counts.skip[ctx][skip];
187 return skip; 158 return skip;
188 } 159 }
189 } 160 }
190 161
191 static void read_intra_frame_mode_info(VP9_COMMON *const cm, 162 static void read_intra_frame_mode_info(VP9_COMMON *const cm,
192 MACROBLOCKD *const xd, 163 MACROBLOCKD *const xd,
193 FRAME_COUNTS *counts,
194 int mi_row, int mi_col, vp9_reader *r) { 164 int mi_row, int mi_col, vp9_reader *r) {
195 MODE_INFO *const mi = xd->mi[0].src_mi; 165 MODE_INFO *const mi = xd->mi[0].src_mi;
196 MB_MODE_INFO *const mbmi = &mi->mbmi; 166 MB_MODE_INFO *const mbmi = &mi->mbmi;
197 const MODE_INFO *above_mi = xd->mi[-cm->mi_stride].src_mi; 167 const MODE_INFO *above_mi = xd->mi[-cm->mi_stride].src_mi;
198 const MODE_INFO *left_mi = xd->left_available ? xd->mi[-1].src_mi : NULL; 168 const MODE_INFO *left_mi = xd->left_available ? xd->mi[-1].src_mi : NULL;
199 const BLOCK_SIZE bsize = mbmi->sb_type; 169 const BLOCK_SIZE bsize = mbmi->sb_type;
200 int i; 170 int i;
201 171
202 mbmi->segment_id = read_intra_segment_id(cm, xd, mi_row, mi_col, r); 172 mbmi->segment_id = read_intra_segment_id(cm, xd, mi_row, mi_col, r);
203 mbmi->skip = read_skip(cm, xd, counts, mbmi->segment_id, r); 173 mbmi->skip = read_skip(cm, xd, mbmi->segment_id, r);
204 mbmi->tx_size = read_tx_size(cm, xd, counts, 1, r); 174 mbmi->tx_size = read_tx_size(cm, xd, 1, r);
205 mbmi->ref_frame[0] = INTRA_FRAME; 175 mbmi->ref_frame[0] = INTRA_FRAME;
206 mbmi->ref_frame[1] = NONE; 176 mbmi->ref_frame[1] = NONE;
207 177
208 switch (bsize) { 178 switch (bsize) {
209 case BLOCK_4X4: 179 case BLOCK_4X4:
210 for (i = 0; i < 4; ++i) 180 for (i = 0; i < 4; ++i)
211 mi->bmi[i].as_mode = 181 mi->bmi[i].as_mode =
212 read_intra_mode(r, get_y_mode_probs(mi, above_mi, left_mi, i)); 182 read_intra_mode(r, get_y_mode_probs(mi, above_mi, left_mi, i));
213 mbmi->mode = mi->bmi[3].as_mode; 183 mbmi->mode = mi->bmi[3].as_mode;
214 break; 184 break;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 diff.col = read_mv_component(r, &ctx->comps[1], use_hp); 249 diff.col = read_mv_component(r, &ctx->comps[1], use_hp);
280 250
281 vp9_inc_mv(&diff, counts); 251 vp9_inc_mv(&diff, counts);
282 252
283 mv->row = ref->row + diff.row; 253 mv->row = ref->row + diff.row;
284 mv->col = ref->col + diff.col; 254 mv->col = ref->col + diff.col;
285 } 255 }
286 256
287 static REFERENCE_MODE read_block_reference_mode(VP9_COMMON *cm, 257 static REFERENCE_MODE read_block_reference_mode(VP9_COMMON *cm,
288 const MACROBLOCKD *xd, 258 const MACROBLOCKD *xd,
289 FRAME_COUNTS *counts,
290 vp9_reader *r) { 259 vp9_reader *r) {
291 if (cm->reference_mode == REFERENCE_MODE_SELECT) { 260 if (cm->reference_mode == REFERENCE_MODE_SELECT) {
292 const int ctx = vp9_get_reference_mode_context(cm, xd); 261 const int ctx = vp9_get_reference_mode_context(cm, xd);
293 const REFERENCE_MODE mode = 262 const REFERENCE_MODE mode =
294 (REFERENCE_MODE)vp9_read(r, cm->fc->comp_inter_prob[ctx]); 263 (REFERENCE_MODE)vp9_read(r, cm->fc->comp_inter_prob[ctx]);
295 if (!cm->frame_parallel_decoding_mode) 264 if (!cm->frame_parallel_decoding_mode)
296 ++counts->comp_inter[ctx][mode]; 265 ++cm->counts.comp_inter[ctx][mode];
297 return mode; // SINGLE_REFERENCE or COMPOUND_REFERENCE 266 return mode; // SINGLE_REFERENCE or COMPOUND_REFERENCE
298 } else { 267 } else {
299 return cm->reference_mode; 268 return cm->reference_mode;
300 } 269 }
301 } 270 }
302 271
303 // Read the referncence frame 272 // Read the referncence frame
304 static void read_ref_frames(VP9_COMMON *const cm, MACROBLOCKD *const xd, 273 static void read_ref_frames(VP9_COMMON *const cm, MACROBLOCKD *const xd,
305 FRAME_COUNTS *counts, vp9_reader *r, 274 vp9_reader *r,
306 int segment_id, MV_REFERENCE_FRAME ref_frame[2]) { 275 int segment_id, MV_REFERENCE_FRAME ref_frame[2]) {
307 FRAME_CONTEXT *const fc = cm->fc; 276 FRAME_CONTEXT *const fc = cm->fc;
277 FRAME_COUNTS *const counts = &cm->counts;
308 278
309 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) { 279 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) {
310 ref_frame[0] = (MV_REFERENCE_FRAME)vp9_get_segdata(&cm->seg, segment_id, 280 ref_frame[0] = (MV_REFERENCE_FRAME)vp9_get_segdata(&cm->seg, segment_id,
311 SEG_LVL_REF_FRAME); 281 SEG_LVL_REF_FRAME);
312 ref_frame[1] = NONE; 282 ref_frame[1] = NONE;
313 } else { 283 } else {
314 const REFERENCE_MODE mode = read_block_reference_mode(cm, xd, counts, r); 284 const REFERENCE_MODE mode = read_block_reference_mode(cm, xd, r);
315 // FIXME(rbultje) I'm pretty sure this breaks segmentation ref frame coding 285 // FIXME(rbultje) I'm pretty sure this breaks segmentation ref frame coding
316 if (mode == COMPOUND_REFERENCE) { 286 if (mode == COMPOUND_REFERENCE) {
317 const int idx = cm->ref_frame_sign_bias[cm->comp_fixed_ref]; 287 const int idx = cm->ref_frame_sign_bias[cm->comp_fixed_ref];
318 const int ctx = vp9_get_pred_context_comp_ref_p(cm, xd); 288 const int ctx = vp9_get_pred_context_comp_ref_p(cm, xd);
319 const int bit = vp9_read(r, fc->comp_ref_prob[ctx]); 289 const int bit = vp9_read(r, fc->comp_ref_prob[ctx]);
320 if (!cm->frame_parallel_decoding_mode) 290 if (!cm->frame_parallel_decoding_mode)
321 ++counts->comp_ref[ctx][bit]; 291 ++counts->comp_ref[ctx][bit];
322 ref_frame[idx] = cm->comp_fixed_ref; 292 ref_frame[idx] = cm->comp_fixed_ref;
323 ref_frame[!idx] = cm->comp_var_ref[bit]; 293 ref_frame[!idx] = cm->comp_var_ref[bit];
324 } else if (mode == SINGLE_REFERENCE) { 294 } else if (mode == SINGLE_REFERENCE) {
(...skipping 13 matching lines...) Expand all
338 308
339 ref_frame[1] = NONE; 309 ref_frame[1] = NONE;
340 } else { 310 } else {
341 assert(0 && "Invalid prediction mode."); 311 assert(0 && "Invalid prediction mode.");
342 } 312 }
343 } 313 }
344 } 314 }
345 315
346 316
347 static INLINE INTERP_FILTER read_switchable_interp_filter( 317 static INLINE INTERP_FILTER read_switchable_interp_filter(
348 VP9_COMMON *const cm, MACROBLOCKD *const xd, 318 VP9_COMMON *const cm, MACROBLOCKD *const xd, vp9_reader *r) {
349 FRAME_COUNTS *counts, vp9_reader *r) {
350 const int ctx = vp9_get_pred_context_switchable_interp(xd); 319 const int ctx = vp9_get_pred_context_switchable_interp(xd);
351 const INTERP_FILTER type = 320 const INTERP_FILTER type =
352 (INTERP_FILTER)vp9_read_tree(r, vp9_switchable_interp_tree, 321 (INTERP_FILTER)vp9_read_tree(r, vp9_switchable_interp_tree,
353 cm->fc->switchable_interp_prob[ctx]); 322 cm->fc->switchable_interp_prob[ctx]);
354 if (!cm->frame_parallel_decoding_mode) 323 if (!cm->frame_parallel_decoding_mode)
355 ++counts->switchable_interp[ctx][type]; 324 ++cm->counts.switchable_interp[ctx][type];
356 return type; 325 return type;
357 } 326 }
358 327
359 static void read_intra_block_mode_info(VP9_COMMON *const cm, 328 static void read_intra_block_mode_info(VP9_COMMON *const cm, MODE_INFO *mi,
360 FRAME_COUNTS *counts, MODE_INFO *mi,
361 vp9_reader *r) { 329 vp9_reader *r) {
362 MB_MODE_INFO *const mbmi = &mi->mbmi; 330 MB_MODE_INFO *const mbmi = &mi->mbmi;
363 const BLOCK_SIZE bsize = mi->mbmi.sb_type; 331 const BLOCK_SIZE bsize = mi->mbmi.sb_type;
364 int i; 332 int i;
365 333
366 mbmi->ref_frame[0] = INTRA_FRAME; 334 mbmi->ref_frame[0] = INTRA_FRAME;
367 mbmi->ref_frame[1] = NONE; 335 mbmi->ref_frame[1] = NONE;
368 336
369 switch (bsize) { 337 switch (bsize) {
370 case BLOCK_4X4: 338 case BLOCK_4X4:
371 for (i = 0; i < 4; ++i) 339 for (i = 0; i < 4; ++i)
372 mi->bmi[i].as_mode = read_intra_mode_y(cm, counts, r, 0); 340 mi->bmi[i].as_mode = read_intra_mode_y(cm, r, 0);
373 mbmi->mode = mi->bmi[3].as_mode; 341 mbmi->mode = mi->bmi[3].as_mode;
374 break; 342 break;
375 case BLOCK_4X8: 343 case BLOCK_4X8:
376 mi->bmi[0].as_mode = mi->bmi[2].as_mode = read_intra_mode_y(cm, counts, 344 mi->bmi[0].as_mode = mi->bmi[2].as_mode = read_intra_mode_y(cm, r, 0);
377 r, 0);
378 mi->bmi[1].as_mode = mi->bmi[3].as_mode = mbmi->mode = 345 mi->bmi[1].as_mode = mi->bmi[3].as_mode = mbmi->mode =
379 read_intra_mode_y(cm, counts, r, 0); 346 read_intra_mode_y(cm, r, 0);
380 break; 347 break;
381 case BLOCK_8X4: 348 case BLOCK_8X4:
382 mi->bmi[0].as_mode = mi->bmi[1].as_mode = read_intra_mode_y(cm, counts, 349 mi->bmi[0].as_mode = mi->bmi[1].as_mode = read_intra_mode_y(cm, r, 0);
383 r, 0);
384 mi->bmi[2].as_mode = mi->bmi[3].as_mode = mbmi->mode = 350 mi->bmi[2].as_mode = mi->bmi[3].as_mode = mbmi->mode =
385 read_intra_mode_y(cm, counts, r, 0); 351 read_intra_mode_y(cm, r, 0);
386 break; 352 break;
387 default: 353 default:
388 mbmi->mode = read_intra_mode_y(cm, counts, r, size_group_lookup[bsize]); 354 mbmi->mode = read_intra_mode_y(cm, r, size_group_lookup[bsize]);
389 } 355 }
390 356
391 mbmi->uv_mode = read_intra_mode_uv(cm, counts, r, mbmi->mode); 357 mbmi->uv_mode = read_intra_mode_uv(cm, r, mbmi->mode);
392 } 358 }
393 359
394 static INLINE int is_mv_valid(const MV *mv) { 360 static INLINE int is_mv_valid(const MV *mv) {
395 return mv->row > MV_LOW && mv->row < MV_UPP && 361 return mv->row > MV_LOW && mv->row < MV_UPP &&
396 mv->col > MV_LOW && mv->col < MV_UPP; 362 mv->col > MV_LOW && mv->col < MV_UPP;
397 } 363 }
398 364
399 static INLINE int assign_mv(VP9_COMMON *cm, FRAME_COUNTS *counts, 365 static INLINE int assign_mv(VP9_COMMON *cm, PREDICTION_MODE mode,
400 PREDICTION_MODE mode,
401 int_mv mv[2], int_mv ref_mv[2], 366 int_mv mv[2], int_mv ref_mv[2],
402 int_mv nearest_mv[2], int_mv near_mv[2], 367 int_mv nearest_mv[2], int_mv near_mv[2],
403 int is_compound, int allow_hp, vp9_reader *r) { 368 int is_compound, int allow_hp, vp9_reader *r) {
404 int i; 369 int i;
405 int ret = 1; 370 int ret = 1;
406 371
407 switch (mode) { 372 switch (mode) {
408 case NEWMV: { 373 case NEWMV: {
409 nmv_context_counts *const mv_counts = cm->frame_parallel_decoding_mode ? 374 nmv_context_counts *const mv_counts = cm->frame_parallel_decoding_mode ?
410 NULL : &counts->mv; 375 NULL : &cm->counts.mv;
411 for (i = 0; i < 1 + is_compound; ++i) { 376 for (i = 0; i < 1 + is_compound; ++i) {
412 read_mv(r, &mv[i].as_mv, &ref_mv[i].as_mv, &cm->fc->nmvc, mv_counts, 377 read_mv(r, &mv[i].as_mv, &ref_mv[i].as_mv, &cm->fc->nmvc, mv_counts,
413 allow_hp); 378 allow_hp);
414 ret = ret && is_mv_valid(&mv[i].as_mv); 379 ret = ret && is_mv_valid(&mv[i].as_mv);
415 } 380 }
416 break; 381 break;
417 } 382 }
418 case NEARESTMV: { 383 case NEARESTMV: {
419 mv[0].as_int = nearest_mv[0].as_int; 384 mv[0].as_int = nearest_mv[0].as_int;
420 if (is_compound) 385 if (is_compound)
(...skipping 13 matching lines...) Expand all
434 break; 399 break;
435 } 400 }
436 default: { 401 default: {
437 return 0; 402 return 0;
438 } 403 }
439 } 404 }
440 return ret; 405 return ret;
441 } 406 }
442 407
443 static int read_is_inter_block(VP9_COMMON *const cm, MACROBLOCKD *const xd, 408 static int read_is_inter_block(VP9_COMMON *const cm, MACROBLOCKD *const xd,
444 FRAME_COUNTS *counts,
445 int segment_id, vp9_reader *r) { 409 int segment_id, vp9_reader *r) {
446 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) { 410 if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_REF_FRAME)) {
447 return vp9_get_segdata(&cm->seg, segment_id, SEG_LVL_REF_FRAME) != 411 return vp9_get_segdata(&cm->seg, segment_id, SEG_LVL_REF_FRAME) !=
448 INTRA_FRAME; 412 INTRA_FRAME;
449 } else { 413 } else {
450 const int ctx = vp9_get_intra_inter_context(xd); 414 const int ctx = vp9_get_intra_inter_context(xd);
451 const int is_inter = vp9_read(r, cm->fc->intra_inter_prob[ctx]); 415 const int is_inter = vp9_read(r, cm->fc->intra_inter_prob[ctx]);
452 if (!cm->frame_parallel_decoding_mode) 416 if (!cm->frame_parallel_decoding_mode)
453 ++counts->intra_inter[ctx][is_inter]; 417 ++cm->counts.intra_inter[ctx][is_inter];
454 return is_inter; 418 return is_inter;
455 } 419 }
456 } 420 }
457 421
458 static void fpm_sync(void *const data, int mi_row) { 422 static void read_inter_block_mode_info(VP9_COMMON *const cm,
459 VP9Decoder *const pbi = (VP9Decoder *)data;
460 vp9_frameworker_wait(pbi->frame_worker_owner, pbi->prev_buf,
461 mi_row << MI_BLOCK_SIZE_LOG2);
462 }
463
464 static void read_inter_block_mode_info(VP9Decoder *const pbi,
465 MACROBLOCKD *const xd, 423 MACROBLOCKD *const xd,
466 FRAME_COUNTS *counts,
467 const TileInfo *const tile, 424 const TileInfo *const tile,
468 MODE_INFO *const mi, 425 MODE_INFO *const mi,
469 int mi_row, int mi_col, vp9_reader *r) { 426 int mi_row, int mi_col, vp9_reader *r) {
470 VP9_COMMON *const cm = &pbi->common;
471 MB_MODE_INFO *const mbmi = &mi->mbmi; 427 MB_MODE_INFO *const mbmi = &mi->mbmi;
472 const BLOCK_SIZE bsize = mbmi->sb_type; 428 const BLOCK_SIZE bsize = mbmi->sb_type;
473 const int allow_hp = cm->allow_high_precision_mv; 429 const int allow_hp = cm->allow_high_precision_mv;
474 int_mv nearestmv[2], nearmv[2]; 430 int_mv nearestmv[2], nearmv[2];
475 int inter_mode_ctx, ref, is_compound; 431 int inter_mode_ctx, ref, is_compound;
476 432
477 read_ref_frames(cm, xd, counts, r, mbmi->segment_id, mbmi->ref_frame); 433 read_ref_frames(cm, xd, r, mbmi->segment_id, mbmi->ref_frame);
478 is_compound = has_second_ref(mbmi); 434 is_compound = has_second_ref(mbmi);
479 435
480 for (ref = 0; ref < 1 + is_compound; ++ref) { 436 for (ref = 0; ref < 1 + is_compound; ++ref) {
481 const MV_REFERENCE_FRAME frame = mbmi->ref_frame[ref]; 437 const MV_REFERENCE_FRAME frame = mbmi->ref_frame[ref];
482 RefBuffer *ref_buf = &cm->frame_refs[frame - LAST_FRAME]; 438 RefBuffer *ref_buf = &cm->frame_refs[frame - LAST_FRAME];
483 xd->block_refs[ref] = ref_buf; 439 xd->block_refs[ref] = ref_buf;
484 if ((!vp9_is_valid_scale(&ref_buf->sf))) 440 if ((!vp9_is_valid_scale(&ref_buf->sf)))
485 vpx_internal_error(xd->error_info, VPX_CODEC_UNSUP_BITSTREAM, 441 vpx_internal_error(xd->error_info, VPX_CODEC_UNSUP_BITSTREAM,
486 "Reference frame has invalid dimensions"); 442 "Reference frame has invalid dimensions");
487 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col, 443 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col,
488 &ref_buf->sf); 444 &ref_buf->sf);
489 vp9_find_mv_refs(cm, xd, tile, mi, frame, mbmi->ref_mvs[frame], 445 vp9_find_mv_refs(cm, xd, tile, mi, frame, mbmi->ref_mvs[frame],
490 mi_row, mi_col, fpm_sync, (void *)pbi); 446 mi_row, mi_col);
491 } 447 }
492 448
493 inter_mode_ctx = mbmi->mode_context[mbmi->ref_frame[0]]; 449 inter_mode_ctx = mbmi->mode_context[mbmi->ref_frame[0]];
494 450
495 if (vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) { 451 if (vp9_segfeature_active(&cm->seg, mbmi->segment_id, SEG_LVL_SKIP)) {
496 mbmi->mode = ZEROMV; 452 mbmi->mode = ZEROMV;
497 if (bsize < BLOCK_8X8) { 453 if (bsize < BLOCK_8X8) {
498 vpx_internal_error(xd->error_info, VPX_CODEC_UNSUP_BITSTREAM, 454 vpx_internal_error(xd->error_info, VPX_CODEC_UNSUP_BITSTREAM,
499 "Invalid usage of segement feature on small blocks"); 455 "Invalid usage of segement feature on small blocks");
500 return; 456 return;
501 } 457 }
502 } else { 458 } else {
503 if (bsize >= BLOCK_8X8) 459 if (bsize >= BLOCK_8X8)
504 mbmi->mode = read_inter_mode(cm, counts, r, inter_mode_ctx); 460 mbmi->mode = read_inter_mode(cm, r, inter_mode_ctx);
505 } 461 }
506 462
507 if (bsize < BLOCK_8X8 || mbmi->mode != ZEROMV) { 463 if (bsize < BLOCK_8X8 || mbmi->mode != ZEROMV) {
508 for (ref = 0; ref < 1 + is_compound; ++ref) { 464 for (ref = 0; ref < 1 + is_compound; ++ref) {
509 vp9_find_best_ref_mvs(xd, allow_hp, mbmi->ref_mvs[mbmi->ref_frame[ref]], 465 vp9_find_best_ref_mvs(xd, allow_hp, mbmi->ref_mvs[mbmi->ref_frame[ref]],
510 &nearestmv[ref], &nearmv[ref]); 466 &nearestmv[ref], &nearmv[ref]);
511 } 467 }
512 } 468 }
513 469
514 mbmi->interp_filter = (cm->interp_filter == SWITCHABLE) 470 mbmi->interp_filter = (cm->interp_filter == SWITCHABLE)
515 ? read_switchable_interp_filter(cm, xd, counts, r) 471 ? read_switchable_interp_filter(cm, xd, r)
516 : cm->interp_filter; 472 : cm->interp_filter;
517 473
518 if (bsize < BLOCK_8X8) { 474 if (bsize < BLOCK_8X8) {
519 const int num_4x4_w = num_4x4_blocks_wide_lookup[bsize]; // 1 or 2 475 const int num_4x4_w = num_4x4_blocks_wide_lookup[bsize]; // 1 or 2
520 const int num_4x4_h = num_4x4_blocks_high_lookup[bsize]; // 1 or 2 476 const int num_4x4_h = num_4x4_blocks_high_lookup[bsize]; // 1 or 2
521 int idx, idy; 477 int idx, idy;
522 PREDICTION_MODE b_mode; 478 PREDICTION_MODE b_mode;
523 int_mv nearest_sub8x8[2], near_sub8x8[2]; 479 int_mv nearest_sub8x8[2], near_sub8x8[2];
524 for (idy = 0; idy < 2; idy += num_4x4_h) { 480 for (idy = 0; idy < 2; idy += num_4x4_h) {
525 for (idx = 0; idx < 2; idx += num_4x4_w) { 481 for (idx = 0; idx < 2; idx += num_4x4_w) {
526 int_mv block[2]; 482 int_mv block[2];
527 const int j = idy * 2 + idx; 483 const int j = idy * 2 + idx;
528 b_mode = read_inter_mode(cm, counts, r, inter_mode_ctx); 484 b_mode = read_inter_mode(cm, r, inter_mode_ctx);
529 485
530 if (b_mode == NEARESTMV || b_mode == NEARMV) 486 if (b_mode == NEARESTMV || b_mode == NEARMV)
531 for (ref = 0; ref < 1 + is_compound; ++ref) 487 for (ref = 0; ref < 1 + is_compound; ++ref)
532 vp9_append_sub8x8_mvs_for_idx(cm, xd, tile, j, ref, mi_row, mi_col, 488 vp9_append_sub8x8_mvs_for_idx(cm, xd, tile, j, ref, mi_row, mi_col,
533 &nearest_sub8x8[ref], 489 &nearest_sub8x8[ref],
534 &near_sub8x8[ref]); 490 &near_sub8x8[ref]);
535 491
536 if (!assign_mv(cm, counts, b_mode, block, nearestmv, 492 if (!assign_mv(cm, b_mode, block, nearestmv,
537 nearest_sub8x8, near_sub8x8, 493 nearest_sub8x8, near_sub8x8,
538 is_compound, allow_hp, r)) { 494 is_compound, allow_hp, r)) {
539 xd->corrupted |= 1; 495 xd->corrupted |= 1;
540 break; 496 break;
541 }; 497 };
542 498
543 mi->bmi[j].as_mv[0].as_int = block[0].as_int; 499 mi->bmi[j].as_mv[0].as_int = block[0].as_int;
544 if (is_compound) 500 if (is_compound)
545 mi->bmi[j].as_mv[1].as_int = block[1].as_int; 501 mi->bmi[j].as_mv[1].as_int = block[1].as_int;
546 502
547 if (num_4x4_h == 2) 503 if (num_4x4_h == 2)
548 mi->bmi[j + 2] = mi->bmi[j]; 504 mi->bmi[j + 2] = mi->bmi[j];
549 if (num_4x4_w == 2) 505 if (num_4x4_w == 2)
550 mi->bmi[j + 1] = mi->bmi[j]; 506 mi->bmi[j + 1] = mi->bmi[j];
551 } 507 }
552 } 508 }
553 509
554 mi->mbmi.mode = b_mode; 510 mi->mbmi.mode = b_mode;
555 511
556 mbmi->mv[0].as_int = mi->bmi[3].as_mv[0].as_int; 512 mbmi->mv[0].as_int = mi->bmi[3].as_mv[0].as_int;
557 mbmi->mv[1].as_int = mi->bmi[3].as_mv[1].as_int; 513 mbmi->mv[1].as_int = mi->bmi[3].as_mv[1].as_int;
558 } else { 514 } else {
559 xd->corrupted |= !assign_mv(cm, counts, mbmi->mode, mbmi->mv, nearestmv, 515 xd->corrupted |= !assign_mv(cm, mbmi->mode, mbmi->mv, nearestmv,
560 nearestmv, nearmv, is_compound, allow_hp, r); 516 nearestmv, nearmv, is_compound, allow_hp, r);
561 } 517 }
562 } 518 }
563 519
564 static void read_inter_frame_mode_info(VP9Decoder *const pbi, 520 static void read_inter_frame_mode_info(VP9_COMMON *const cm,
565 MACROBLOCKD *const xd, 521 MACROBLOCKD *const xd,
566 FRAME_COUNTS *counts,
567 const TileInfo *const tile, 522 const TileInfo *const tile,
568 int mi_row, int mi_col, vp9_reader *r) { 523 int mi_row, int mi_col, vp9_reader *r) {
569 VP9_COMMON *const cm = &pbi->common;
570 MODE_INFO *const mi = xd->mi[0].src_mi; 524 MODE_INFO *const mi = xd->mi[0].src_mi;
571 MB_MODE_INFO *const mbmi = &mi->mbmi; 525 MB_MODE_INFO *const mbmi = &mi->mbmi;
572 int inter_block; 526 int inter_block;
573 527
574 mbmi->mv[0].as_int = 0; 528 mbmi->mv[0].as_int = 0;
575 mbmi->mv[1].as_int = 0; 529 mbmi->mv[1].as_int = 0;
576 mbmi->segment_id = read_inter_segment_id(cm, xd, mi_row, mi_col, r); 530 mbmi->segment_id = read_inter_segment_id(cm, xd, mi_row, mi_col, r);
577 mbmi->skip = read_skip(cm, xd, counts, mbmi->segment_id, r); 531 mbmi->skip = read_skip(cm, xd, mbmi->segment_id, r);
578 inter_block = read_is_inter_block(cm, xd, counts, mbmi->segment_id, r); 532 inter_block = read_is_inter_block(cm, xd, mbmi->segment_id, r);
579 mbmi->tx_size = read_tx_size(cm, xd, counts, !mbmi->skip || !inter_block, r); 533 mbmi->tx_size = read_tx_size(cm, xd, !mbmi->skip || !inter_block, r);
580 534
581 if (inter_block) 535 if (inter_block)
582 read_inter_block_mode_info(pbi, xd, counts, tile, mi, mi_row, mi_col, r); 536 read_inter_block_mode_info(cm, xd, tile, mi, mi_row, mi_col, r);
583 else 537 else
584 read_intra_block_mode_info(cm, counts, mi, r); 538 read_intra_block_mode_info(cm, mi, r);
585 } 539 }
586 540
587 void vp9_read_mode_info(VP9Decoder *const pbi, MACROBLOCKD *xd, 541 void vp9_read_mode_info(VP9_COMMON *cm, MACROBLOCKD *xd,
588 FRAME_COUNTS *counts,
589 const TileInfo *const tile, 542 const TileInfo *const tile,
590 int mi_row, int mi_col, vp9_reader *r) { 543 int mi_row, int mi_col, vp9_reader *r) {
591 VP9_COMMON *const cm = &pbi->common;
592 MODE_INFO *const mi = xd->mi[0].src_mi; 544 MODE_INFO *const mi = xd->mi[0].src_mi;
593 const int bw = num_8x8_blocks_wide_lookup[mi->mbmi.sb_type]; 545 const int bw = num_8x8_blocks_wide_lookup[mi->mbmi.sb_type];
594 const int bh = num_8x8_blocks_high_lookup[mi->mbmi.sb_type]; 546 const int bh = num_8x8_blocks_high_lookup[mi->mbmi.sb_type];
595 const int x_mis = MIN(bw, cm->mi_cols - mi_col); 547 const int x_mis = MIN(bw, cm->mi_cols - mi_col);
596 const int y_mis = MIN(bh, cm->mi_rows - mi_row); 548 const int y_mis = MIN(bh, cm->mi_rows - mi_row);
597 MV_REF* frame_mvs = cm->cur_frame->mvs + mi_row * cm->mi_cols + mi_col; 549 MV_REF* frame_mvs = cm->cur_frame->mvs + mi_row * cm->mi_cols + mi_col;
598 int w, h; 550 int w, h;
599 551
600 if (frame_is_intra_only(cm)) 552 if (frame_is_intra_only(cm))
601 read_intra_frame_mode_info(cm, xd, counts, mi_row, mi_col, r); 553 read_intra_frame_mode_info(cm, xd, mi_row, mi_col, r);
602 else 554 else
603 read_inter_frame_mode_info(pbi, xd, counts, tile, mi_row, mi_col, r); 555 read_inter_frame_mode_info(cm, xd, tile, mi_row, mi_col, r);
604 556
605 for (h = 0; h < y_mis; ++h) { 557 for (h = 0; h < y_mis; ++h) {
606 MV_REF *const frame_mv = frame_mvs + h * cm->mi_cols; 558 MV_REF *const frame_mv = frame_mvs + h * cm->mi_cols;
607 for (w = 0; w < x_mis; ++w) { 559 for (w = 0; w < x_mis; ++w) {
608 MV_REF *const mv = frame_mv + w; 560 MV_REF *const mv = frame_mv + w;
609 mv->ref_frame[0] = mi->src_mi->mbmi.ref_frame[0]; 561 mv->ref_frame[0] = mi->src_mi->mbmi.ref_frame[0];
610 mv->ref_frame[1] = mi->src_mi->mbmi.ref_frame[1]; 562 mv->ref_frame[1] = mi->src_mi->mbmi.ref_frame[1];
611 mv->mv[0].as_int = mi->src_mi->mbmi.mv[0].as_int; 563 mv->mv[0].as_int = mi->src_mi->mbmi.mv[0].as_int;
612 mv->mv[1].as_int = mi->src_mi->mbmi.mv[1].as_int; 564 mv->mv[1].as_int = mi->src_mi->mbmi.mv[1].as_int;
613 } 565 }
614 } 566 }
615 } 567 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/decoder/vp9_decodemv.h ('k') | source/libvpx/vp9/decoder/vp9_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698