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

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

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