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

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

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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
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 "vpx_mem/vpx_mem.h" 11 #include "vpx_mem/vpx_mem.h"
12 #include "vpx_ports/mem.h" 12 #include "vpx_ports/mem.h"
13 13
14 #include "vp9/common/vp9_blockd.h" 14 #include "vp9/common/vp9_blockd.h"
15 #include "vp9/common/vp9_common.h" 15 #include "vp9/common/vp9_common.h"
16 #include "vp9/common/vp9_entropy.h" 16 #include "vp9/common/vp9_entropy.h"
17 #if CONFIG_COEFFICIENT_RANGE_CHECKING 17 #if CONFIG_COEFFICIENT_RANGE_CHECKING
18 #include "vp9/common/vp9_idct.h" 18 #include "vp9/common/vp9_idct.h"
19 #endif 19 #endif
20 #include "vp9/common/vp9_scan.h"
20 21
21 #include "vp9/decoder/vp9_detokenize.h" 22 #include "vp9/decoder/vp9_detokenize.h"
22 23
23 #define EOB_CONTEXT_NODE 0 24 #define EOB_CONTEXT_NODE 0
24 #define ZERO_CONTEXT_NODE 1 25 #define ZERO_CONTEXT_NODE 1
25 #define ONE_CONTEXT_NODE 2 26 #define ONE_CONTEXT_NODE 2
26 #define LOW_VAL_CONTEXT_NODE 0 27 #define LOW_VAL_CONTEXT_NODE 0
27 #define TWO_CONTEXT_NODE 1 28 #define TWO_CONTEXT_NODE 1
28 #define THREE_CONTEXT_NODE 2 29 #define THREE_CONTEXT_NODE 2
29 #define HIGH_LOW_CONTEXT_NODE 3 30 #define HIGH_LOW_CONTEXT_NODE 3
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 pd->left_context + y); 214 pd->left_context + y);
214 const scan_order *so = get_scan(xd, tx_size, pd->plane_type, block); 215 const scan_order *so = get_scan(xd, tx_size, pd->plane_type, block);
215 const int eob = decode_coefs(cm, xd, counts, pd->plane_type, 216 const int eob = decode_coefs(cm, xd, counts, pd->plane_type,
216 BLOCK_OFFSET(pd->dqcoeff, block), tx_size, 217 BLOCK_OFFSET(pd->dqcoeff, block), tx_size,
217 dequant, ctx, so->scan, so->neighbors, r); 218 dequant, ctx, so->scan, so->neighbors, r);
218 vp9_set_contexts(xd, pd, plane_bsize, tx_size, eob > 0, x, y); 219 vp9_set_contexts(xd, pd, plane_bsize, tx_size, eob > 0, x, y);
219 return eob; 220 return eob;
220 } 221 }
221 222
222 223
OLDNEW
« no previous file with comments | « source/libvpx/vp9/decoder/vp9_decoder.c ('k') | source/libvpx/vp9/encoder/arm/neon/vp9_variance_neon.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698