| 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 |
| 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 Loading... |
| 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 |
| OLD | NEW |