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

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

Issue 756673003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 int c; 304 int c;
305 TOKENEXTRA *t = *tp; /* store tokens starting here */ 305 TOKENEXTRA *t = *tp; /* store tokens starting here */
306 int eob = p->eobs[block]; 306 int eob = p->eobs[block];
307 const PLANE_TYPE type = pd->plane_type; 307 const PLANE_TYPE type = pd->plane_type;
308 const tran_low_t *qcoeff = BLOCK_OFFSET(p->qcoeff, block); 308 const tran_low_t *qcoeff = BLOCK_OFFSET(p->qcoeff, block);
309 const int segment_id = mbmi->segment_id; 309 const int segment_id = mbmi->segment_id;
310 const int16_t *scan, *nb; 310 const int16_t *scan, *nb;
311 const scan_order *so; 311 const scan_order *so;
312 const int ref = is_inter_block(mbmi); 312 const int ref = is_inter_block(mbmi);
313 unsigned int (*const counts)[COEFF_CONTEXTS][ENTROPY_TOKENS] = 313 unsigned int (*const counts)[COEFF_CONTEXTS][ENTROPY_TOKENS] =
314 cpi->coef_counts[tx_size][type][ref]; 314 cpi->frame_counts->coef_counts[tx_size][type][ref];
315 vp9_prob (*const coef_probs)[COEFF_CONTEXTS][UNCONSTRAINED_NODES] = 315 vp9_prob (*const coef_probs)[COEFF_CONTEXTS][UNCONSTRAINED_NODES] =
316 cpi->common.fc.coef_probs[tx_size][type][ref]; 316 cpi->common.fc->coef_probs[tx_size][type][ref];
317 unsigned int (*const eob_branch)[COEFF_CONTEXTS] = 317 unsigned int (*const eob_branch)[COEFF_CONTEXTS] =
318 cpi->common.counts.eob_branch[tx_size][type][ref]; 318 cpi->common.counts.eob_branch[tx_size][type][ref];
319 const uint8_t *const band = get_band_translate(tx_size); 319 const uint8_t *const band = get_band_translate(tx_size);
320 const int seg_eob = get_tx_eob(&cpi->common.seg, segment_id, tx_size); 320 const int seg_eob = get_tx_eob(&cpi->common.seg, segment_id, tx_size);
321 const TOKENVALUE *dct_value_tokens; 321 const TOKENVALUE *dct_value_tokens;
322 322
323 int aoff, loff; 323 int aoff, loff;
324 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &aoff, &loff); 324 txfrm_block_to_raster_xy(plane_bsize, tx_size, block, &aoff, &loff);
325 325
326 pt = get_entropy_context(tx_size, pd->above_context + aoff, 326 pt = get_entropy_context(tx_size, pd->above_context + aoff,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 } 441 }
442 442
443 if (!dry_run) { 443 if (!dry_run) {
444 cm->counts.skip[ctx][0] += skip_inc; 444 cm->counts.skip[ctx][0] += skip_inc;
445 vp9_foreach_transformed_block(xd, bsize, tokenize_b, &arg); 445 vp9_foreach_transformed_block(xd, bsize, tokenize_b, &arg);
446 } else { 446 } else {
447 vp9_foreach_transformed_block(xd, bsize, set_entropy_context_b, &arg); 447 vp9_foreach_transformed_block(xd, bsize, set_entropy_context_b, &arg);
448 *t = t_backup; 448 *t = t_backup;
449 } 449 }
450 } 450 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_svc_layercontext.c ('k') | source/libvpx/vp9/encoder/vp9_variance.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698