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 #include <assert.h> | 11 #include <assert.h> |
12 #include <math.h> | 12 #include <math.h> |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include "vpx_mem/vpx_mem.h" | 16 #include "vpx_mem/vpx_mem.h" |
17 | 17 |
18 #include "vp9/common/vp9_entropy.h" | 18 #include "vp9/common/vp9_entropy.h" |
19 #include "vp9/common/vp9_pred_common.h" | 19 #include "vp9/common/vp9_pred_common.h" |
| 20 #include "vp9/common/vp9_scan.h" |
20 #include "vp9/common/vp9_seg_common.h" | 21 #include "vp9/common/vp9_seg_common.h" |
21 | 22 |
22 #include "vp9/encoder/vp9_cost.h" | 23 #include "vp9/encoder/vp9_cost.h" |
23 #include "vp9/encoder/vp9_encoder.h" | 24 #include "vp9/encoder/vp9_encoder.h" |
24 #include "vp9/encoder/vp9_tokenize.h" | 25 #include "vp9/encoder/vp9_tokenize.h" |
25 | 26 |
26 static const TOKENVALUE dct_cat_lt_10_value_tokens[] = { | 27 static const TOKENVALUE dct_cat_lt_10_value_tokens[] = { |
27 {9, 63}, {9, 61}, {9, 59}, {9, 57}, {9, 55}, {9, 53}, {9, 51}, {9, 49}, | 28 {9, 63}, {9, 61}, {9, 59}, {9, 57}, {9, 55}, {9, 53}, {9, 51}, {9, 49}, |
28 {9, 47}, {9, 45}, {9, 43}, {9, 41}, {9, 39}, {9, 37}, {9, 35}, {9, 33}, | 29 {9, 47}, {9, 45}, {9, 43}, {9, 41}, {9, 39}, {9, 37}, {9, 35}, {9, 33}, |
29 {9, 31}, {9, 29}, {9, 27}, {9, 25}, {9, 23}, {9, 21}, {9, 19}, {9, 17}, | 30 {9, 31}, {9, 29}, {9, 27}, {9, 25}, {9, 23}, {9, 21}, {9, 19}, {9, 17}, |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 return; | 625 return; |
625 } | 626 } |
626 | 627 |
627 if (!dry_run) { | 628 if (!dry_run) { |
628 td->counts->skip[ctx][0] += skip_inc; | 629 td->counts->skip[ctx][0] += skip_inc; |
629 vp9_foreach_transformed_block(xd, bsize, tokenize_b, &arg); | 630 vp9_foreach_transformed_block(xd, bsize, tokenize_b, &arg); |
630 } else { | 631 } else { |
631 vp9_foreach_transformed_block(xd, bsize, set_entropy_context_b, &arg); | 632 vp9_foreach_transformed_block(xd, bsize, set_entropy_context_b, &arg); |
632 } | 633 } |
633 } | 634 } |
OLD | NEW |