| 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 "boolhuff.h" | 12 #include "boolhuff.h" |
| 13 | 13 |
| 14 #if defined(SECTIONBITS_OUTPUT) | 14 #if defined(SECTIONBITS_OUTPUT) |
| 15 unsigned __int64 Sectionbits[500]; | 15 unsigned __int64 Sectionbits[500]; |
| 16 | 16 |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 #ifdef ENTROPY_STATS | 19 #ifdef VP8_ENTROPY_STATS |
| 20 unsigned int active_section = 0; | 20 unsigned int active_section = 0; |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 const unsigned int vp8_prob_cost[256] = | 23 const unsigned int vp8_prob_cost[256] = |
| 24 { | 24 { |
| 25 2047, 2047, 1791, 1641, 1535, 1452, 1385, 1328, 1279, 1235, 1196, 1161, 1129
, 1099, 1072, 1046, | 25 2047, 2047, 1791, 1641, 1535, 1452, 1385, 1328, 1279, 1235, 1196, 1161, 1129
, 1099, 1072, 1046, |
| 26 1023, 1000, 979, 959, 940, 922, 905, 889, 873, 858, 843, 829, 816
, 803, 790, 778, | 26 1023, 1000, 979, 959, 940, 922, 905, 889, 873, 858, 843, 829, 816
, 803, 790, 778, |
| 27 767, 755, 744, 733, 723, 713, 703, 693, 684, 675, 666, 657, 649,
641, 633, 625, | 27 767, 755, 744, 733, 723, 713, 703, 693, 684, 675, 666, 657, 649,
641, 633, 625, |
| 28 617, 609, 602, 594, 587, 580, 573, 567, 560, 553, 547, 541, 534,
528, 522, 516, | 28 617, 609, 602, 594, 587, 580, 573, 567, 560, 553, 547, 541, 534,
528, 522, 516, |
| 29 511, 505, 499, 494, 488, 483, 477, 472, 467, 462, 457, 452, 447,
442, 437, 433, | 29 511, 505, 499, 494, 488, 483, 477, 472, 467, 462, 457, 452, 447,
442, 437, 433, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 | 62 |
| 63 void vp8_encode_value(BOOL_CODER *br, int data, int bits) | 63 void vp8_encode_value(BOOL_CODER *br, int data, int bits) |
| 64 { | 64 { |
| 65 int bit; | 65 int bit; |
| 66 | 66 |
| 67 for (bit = bits - 1; bit >= 0; bit--) | 67 for (bit = bits - 1; bit >= 0; bit--) |
| 68 vp8_encode_bool(br, (1 & (data >> bit)), 0x80); | 68 vp8_encode_bool(br, (1 & (data >> bit)), 0x80); |
| 69 | 69 |
| 70 } | 70 } |
| OLD | NEW |