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

Side by Side Diff: source/libvpx/vp8/decoder/detokenize.c

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 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
« no previous file with comments | « source/libvpx/vp8/decoder/decodeframe.c ('k') | source/libvpx/vp8/decoder/error_concealment.c » ('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 11
12 #include "vp8/common/blockd.h" 12 #include "vp8/common/blockd.h"
13 #include "onyxd_int.h" 13 #include "onyxd_int.h"
14 #include "vpx_mem/vpx_mem.h" 14 #include "vpx_mem/vpx_mem.h"
15 #include "vpx_ports/mem.h" 15 #include "vpx_ports/mem.h"
16 #include "detokenize.h" 16 #include "detokenize.h"
17 17
18 void vp8_reset_mb_tokens_context(MACROBLOCKD *x) 18 void vp8_reset_mb_tokens_context(MACROBLOCKD *x)
19 { 19 {
20 ENTROPY_CONTEXT *a_ctx = ((ENTROPY_CONTEXT *)x->above_context); 20 ENTROPY_CONTEXT *a_ctx = ((ENTROPY_CONTEXT *)x->above_context);
21 ENTROPY_CONTEXT *l_ctx = ((ENTROPY_CONTEXT *)x->left_context); 21 ENTROPY_CONTEXT *l_ctx = ((ENTROPY_CONTEXT *)x->left_context);
22 22
23 vpx_memset(a_ctx, 0, sizeof(ENTROPY_CONTEXT_PLANES)-1); 23 memset(a_ctx, 0, sizeof(ENTROPY_CONTEXT_PLANES)-1);
24 vpx_memset(l_ctx, 0, sizeof(ENTROPY_CONTEXT_PLANES)-1); 24 memset(l_ctx, 0, sizeof(ENTROPY_CONTEXT_PLANES)-1);
25 25
26 /* Clear entropy contexts for Y2 blocks */ 26 /* Clear entropy contexts for Y2 blocks */
27 if (!x->mode_info_context->mbmi.is_4x4) 27 if (!x->mode_info_context->mbmi.is_4x4)
28 { 28 {
29 a_ctx[8] = l_ctx[8] = 0; 29 a_ctx[8] = l_ctx[8] = 0;
30 } 30 }
31 } 31 }
32 32
33 /* 33 /*
34 ---------------------------------------------------------------------------- -- 34 ---------------------------------------------------------------------------- --
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 *a = *l = (nonzeros > 0); 236 *a = *l = (nonzeros > 0);
237 237
238 eobs[i] = nonzeros; 238 eobs[i] = nonzeros;
239 eobtotal += nonzeros; 239 eobtotal += nonzeros;
240 qcoeff_ptr += 16; 240 qcoeff_ptr += 16;
241 } 241 }
242 242
243 return eobtotal; 243 return eobtotal;
244 } 244 }
245 245
OLDNEW
« no previous file with comments | « source/libvpx/vp8/decoder/decodeframe.c ('k') | source/libvpx/vp8/decoder/error_concealment.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698