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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_encodeframe.c

Issue 290613006: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 set_skip_context(xd, mi_row, mi_col); 194 set_skip_context(xd, mi_row, mi_col);
195 195
196 // Activity map pointer 196 // Activity map pointer
197 x->in_active_map = check_active_map(cpi, x, mi_row, mi_col, bsize); 197 x->in_active_map = check_active_map(cpi, x, mi_row, mi_col, bsize);
198 198
199 set_modeinfo_offsets(cm, xd, mi_row, mi_col); 199 set_modeinfo_offsets(cm, xd, mi_row, mi_col);
200 200
201 mbmi = &xd->mi[0]->mbmi; 201 mbmi = &xd->mi[0]->mbmi;
202 202
203 // Set up destination pointers. 203 // Set up destination pointers.
204 vp9_setup_dst_planes(xd, get_frame_new_buffer(cm), mi_row, mi_col); 204 vp9_setup_dst_planes(xd->plane, get_frame_new_buffer(cm), mi_row, mi_col);
205 205
206 // Set up limit values for MV components. 206 // Set up limit values for MV components.
207 // Mv beyond the range do not produce new/different prediction block. 207 // Mv beyond the range do not produce new/different prediction block.
208 x->mv_row_min = -(((mi_row + mi_height) * MI_SIZE) + VP9_INTERP_EXTEND); 208 x->mv_row_min = -(((mi_row + mi_height) * MI_SIZE) + VP9_INTERP_EXTEND);
209 x->mv_col_min = -(((mi_col + mi_width) * MI_SIZE) + VP9_INTERP_EXTEND); 209 x->mv_col_min = -(((mi_col + mi_width) * MI_SIZE) + VP9_INTERP_EXTEND);
210 x->mv_row_max = (cm->mi_rows - mi_row) * MI_SIZE + VP9_INTERP_EXTEND; 210 x->mv_row_max = (cm->mi_rows - mi_row) * MI_SIZE + VP9_INTERP_EXTEND;
211 x->mv_col_max = (cm->mi_cols - mi_col) * MI_SIZE + VP9_INTERP_EXTEND; 211 x->mv_col_max = (cm->mi_cols - mi_col) * MI_SIZE + VP9_INTERP_EXTEND;
212 212
213 // Set up distance of MB to edge of frame in 1/8th pel units. 213 // Set up distance of MB to edge of frame in 1/8th pel units.
214 assert(!(mi_col & (mi_width - 1)) && !(mi_row & (mi_height - 1))); 214 assert(!(mi_col & (mi_width - 1)) && !(mi_row & (mi_height - 1)));
(...skipping 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3387 tx_size = (bsize >= BLOCK_8X8) ? mbmi->tx_size : TX_4X4; 3387 tx_size = (bsize >= BLOCK_8X8) ? mbmi->tx_size : TX_4X4;
3388 } 3388 }
3389 3389
3390 for (y = 0; y < mi_height; y++) 3390 for (y = 0; y < mi_height; y++)
3391 for (x = 0; x < mi_width; x++) 3391 for (x = 0; x < mi_width; x++)
3392 if (mi_col + x < cm->mi_cols && mi_row + y < cm->mi_rows) 3392 if (mi_col + x < cm->mi_cols && mi_row + y < cm->mi_rows)
3393 mi_8x8[mis * y + x]->mbmi.tx_size = tx_size; 3393 mi_8x8[mis * y + x]->mbmi.tx_size = tx_size;
3394 } 3394 }
3395 } 3395 }
3396 } 3396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698