| OLD | NEW |
| 1 // Copyright 2010 Google Inc. All Rights Reserved. | 1 // Copyright 2010 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license | 3 // Use of this source code is governed by a BSD-style license |
| 4 // that can be found in the COPYING file in the root of the source | 4 // that can be found in the COPYING file in the root of the source |
| 5 // tree. An additional intellectual property rights grant can be found | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
| 8 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 9 // | 9 // |
| 10 // Boolean decoder non-inlined methods | 10 // Boolean decoder non-inlined methods |
| 11 // | 11 // |
| 12 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 13 | 13 |
| 14 #ifdef HAVE_CONFIG_H | 14 #ifdef HAVE_CONFIG_H |
| 15 #include "../webp/config.h" | 15 #include "../webp/config.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #include "./bit_reader_inl.h" | 18 #include "./bit_reader_inl_utils.h" |
| 19 #include "../utils/utils.h" | 19 #include "../utils/utils.h" |
| 20 | 20 |
| 21 //------------------------------------------------------------------------------ | 21 //------------------------------------------------------------------------------ |
| 22 // VP8BitReader | 22 // VP8BitReader |
| 23 | 23 |
| 24 void VP8BitReaderSetBuffer(VP8BitReader* const br, | 24 void VP8BitReaderSetBuffer(VP8BitReader* const br, |
| 25 const uint8_t* const start, | 25 const uint8_t* const start, |
| 26 size_t size) { | 26 size_t size) { |
| 27 br->buf_ = start; | 27 br->buf_ = start; |
| 28 br->buf_end_ = start + size; | 28 br->buf_end_ = start + size; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 br->bit_pos_ = new_bits; | 213 br->bit_pos_ = new_bits; |
| 214 ShiftBytes(br); | 214 ShiftBytes(br); |
| 215 return val; | 215 return val; |
| 216 } else { | 216 } else { |
| 217 VP8LSetEndOfStream(br); | 217 VP8LSetEndOfStream(br); |
| 218 return 0; | 218 return 0; |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 | 221 |
| 222 //------------------------------------------------------------------------------ | 222 //------------------------------------------------------------------------------ |
| OLD | NEW |