| 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 typedef struct | 29 typedef struct |
| 30 { | 30 { |
| 31 unsigned int lowvalue; | 31 unsigned int lowvalue; |
| 32 unsigned int range; | 32 unsigned int range; |
| 33 int count; | 33 int count; |
| 34 unsigned int pos; | 34 unsigned int pos; |
| 35 unsigned char *buffer; | 35 unsigned char *buffer; |
| 36 unsigned char *buffer_end; | 36 unsigned char *buffer_end; |
| 37 struct vpx_internal_error_info *error; | 37 struct vpx_internal_error_info *error; |
| 38 | |
| 39 /* Variables used to track bit costs without outputing to the bitstream */ | |
| 40 unsigned int measure_cost; | |
| 41 unsigned long bit_counter; | |
| 42 } BOOL_CODER; | 38 } BOOL_CODER; |
| 43 | 39 |
| 44 extern void vp8_start_encode(BOOL_CODER *bc, unsigned char *buffer, unsigned cha
r *buffer_end); | 40 extern void vp8_start_encode(BOOL_CODER *bc, unsigned char *buffer, unsigned cha
r *buffer_end); |
| 45 | 41 |
| 46 extern void vp8_encode_value(BOOL_CODER *br, int data, int bits); | 42 extern void vp8_encode_value(BOOL_CODER *br, int data, int bits); |
| 47 extern void vp8_stop_encode(BOOL_CODER *bc); | 43 extern void vp8_stop_encode(BOOL_CODER *bc); |
| 48 extern const unsigned int vp8_prob_cost[256]; | 44 extern const unsigned int vp8_prob_cost[256]; |
| 49 | 45 |
| 50 | 46 |
| 51 DECLARE_ALIGNED(16, extern const unsigned char, vp8_norm[256]); | 47 DECLARE_ALIGNED(16, extern const unsigned char, vp8_norm[256]); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 br->count = count; | 123 br->count = count; |
| 128 br->lowvalue = lowvalue; | 124 br->lowvalue = lowvalue; |
| 129 br->range = range; | 125 br->range = range; |
| 130 } | 126 } |
| 131 | 127 |
| 132 #ifdef __cplusplus | 128 #ifdef __cplusplus |
| 133 } // extern "C" | 129 } // extern "C" |
| 134 #endif | 130 #endif |
| 135 | 131 |
| 136 #endif // VP8_ENCODER_BOOLHUFF_H_ | 132 #endif // VP8_ENCODER_BOOLHUFF_H_ |
| OLD | NEW |