| 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 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 int vp9_decode_block_tokens(VP9_COMMON *cm, MACROBLOCKD *xd, | 197 int vp9_decode_block_tokens(VP9_COMMON *cm, MACROBLOCKD *xd, |
| 198 int plane, int block, BLOCK_SIZE plane_bsize, | 198 int plane, int block, BLOCK_SIZE plane_bsize, |
| 199 int x, int y, TX_SIZE tx_size, vp9_reader *r) { | 199 int x, int y, TX_SIZE tx_size, vp9_reader *r) { |
| 200 struct macroblockd_plane *const pd = &xd->plane[plane]; | 200 struct macroblockd_plane *const pd = &xd->plane[plane]; |
| 201 const int ctx = get_entropy_context(tx_size, pd->above_context + x, | 201 const int ctx = get_entropy_context(tx_size, pd->above_context + x, |
| 202 pd->left_context + y); | 202 pd->left_context + y); |
| 203 const scan_order *so = get_scan(xd, tx_size, pd->plane_type, block); | 203 const scan_order *so = get_scan(xd, tx_size, pd->plane_type, block); |
| 204 const int eob = decode_coefs(cm, xd, pd->plane_type, | 204 const int eob = decode_coefs(cm, xd, pd->plane_type, |
| 205 BLOCK_OFFSET(pd->dqcoeff, block), tx_size, | 205 BLOCK_OFFSET(pd->dqcoeff, block), tx_size, |
| 206 pd->dequant, ctx, so->scan, so->neighbors, r); | 206 pd->dequant, ctx, so->scan, so->neighbors, r); |
| 207 set_contexts(xd, pd, plane_bsize, tx_size, eob > 0, x, y); | 207 vp9_set_contexts(xd, pd, plane_bsize, tx_size, eob > 0, x, y); |
| 208 return eob; | 208 return eob; |
| 209 } | 209 } |
| 210 | 210 |
| 211 | 211 |
| OLD | NEW |