| OLD | NEW |
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 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 // Lossless decoder: internal header. | 10 // Lossless decoder: internal header. |
| 11 // | 11 // |
| 12 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 13 // Vikas Arora(vikaas.arora@gmail.com) | 13 // Vikas Arora(vikaas.arora@gmail.com) |
| 14 | 14 |
| 15 #ifndef WEBP_DEC_VP8LI_H_ | 15 #ifndef WEBP_DEC_VP8LI_H_ |
| 16 #define WEBP_DEC_VP8LI_H_ | 16 #define WEBP_DEC_VP8LI_H_ |
| 17 | 17 |
| 18 #include <string.h> // for memcpy() | 18 #include <string.h> // for memcpy() |
| 19 #include "./webpi.h" | 19 #include "./webpi_dec.h" |
| 20 #include "../utils/bit_reader.h" | 20 #include "../utils/bit_reader_utils.h" |
| 21 #include "../utils/color_cache.h" | 21 #include "../utils/color_cache_utils.h" |
| 22 #include "../utils/huffman.h" | 22 #include "../utils/huffman_utils.h" |
| 23 | 23 |
| 24 #ifdef __cplusplus | 24 #ifdef __cplusplus |
| 25 extern "C" { | 25 extern "C" { |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 typedef enum { | 28 typedef enum { |
| 29 READ_DATA = 0, | 29 READ_DATA = 0, |
| 30 READ_HDR = 1, | 30 READ_HDR = 1, |
| 31 READ_DIM = 2 | 31 READ_DIM = 2 |
| 32 } VP8LDecodeState; | 32 } VP8LDecodeState; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Clears and deallocate a lossless decoder instance. | 126 // Clears and deallocate a lossless decoder instance. |
| 127 void VP8LDelete(VP8LDecoder* const dec); | 127 void VP8LDelete(VP8LDecoder* const dec); |
| 128 | 128 |
| 129 //------------------------------------------------------------------------------ | 129 //------------------------------------------------------------------------------ |
| 130 | 130 |
| 131 #ifdef __cplusplus | 131 #ifdef __cplusplus |
| 132 } // extern "C" | 132 } // extern "C" |
| 133 #endif | 133 #endif |
| 134 | 134 |
| 135 #endif /* WEBP_DEC_VP8LI_H_ */ | 135 #endif /* WEBP_DEC_VP8LI_H_ */ |
| OLD | NEW |