| OLD | NEW |
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // This code is licensed under the same terms as WebM: | 3 // Use of this source code is governed by a BSD-style license |
| 4 // Software License Agreement: http://www.webmproject.org/license/software/ | 4 // that can be found in the COPYING file in the root of the source |
| 5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. |
| 6 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 7 // | 9 // |
| 8 // Lossless decoder: internal header. | 10 // Lossless decoder: internal header. |
| 9 // | 11 // |
| 10 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 11 // Vikas Arora(vikaas.arora@gmail.com) | 13 // Vikas Arora(vikaas.arora@gmail.com) |
| 12 | 14 |
| 13 #ifndef WEBP_DEC_VP8LI_H_ | 15 #ifndef WEBP_DEC_VP8LI_H_ |
| 14 #define WEBP_DEC_VP8LI_H_ | 16 #define WEBP_DEC_VP8LI_H_ |
| 15 | 17 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } VP8LMetadata; | 58 } VP8LMetadata; |
| 57 | 59 |
| 58 typedef struct { | 60 typedef struct { |
| 59 VP8StatusCode status_; | 61 VP8StatusCode status_; |
| 60 VP8LDecodeState action_; | 62 VP8LDecodeState action_; |
| 61 VP8LDecodeState state_; | 63 VP8LDecodeState state_; |
| 62 VP8Io *io_; | 64 VP8Io *io_; |
| 63 | 65 |
| 64 const WebPDecBuffer *output_; // shortcut to io->opaque->output | 66 const WebPDecBuffer *output_; // shortcut to io->opaque->output |
| 65 | 67 |
| 66 uint32_t *argb_; // Internal data: always in BGRA color mode. | 68 uint32_t *pixels_; // Internal data: either uint8_t* for alpha |
| 69 // or uint32_t* for BGRA. |
| 67 uint32_t *argb_cache_; // Scratch buffer for temporary BGRA storage. | 70 uint32_t *argb_cache_; // Scratch buffer for temporary BGRA storage. |
| 68 | 71 |
| 69 VP8LBitReader br_; | 72 VP8LBitReader br_; |
| 70 | 73 |
| 71 int width_; | 74 int width_; |
| 72 int height_; | 75 int height_; |
| 73 int last_row_; // last input row decoded so far. | 76 int last_row_; // last input row decoded so far. |
| 74 int last_out_row_; // last row output so far. | 77 int last_out_row_; // last row output so far. |
| 75 | 78 |
| 76 VP8LMetadata hdr_; | 79 VP8LMetadata hdr_; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Clears and deallocate a lossless decoder instance. | 115 // Clears and deallocate a lossless decoder instance. |
| 113 void VP8LDelete(VP8LDecoder* const dec); | 116 void VP8LDelete(VP8LDecoder* const dec); |
| 114 | 117 |
| 115 //------------------------------------------------------------------------------ | 118 //------------------------------------------------------------------------------ |
| 116 | 119 |
| 117 #if defined(__cplusplus) || defined(c_plusplus) | 120 #if defined(__cplusplus) || defined(c_plusplus) |
| 118 } // extern "C" | 121 } // extern "C" |
| 119 #endif | 122 #endif |
| 120 | 123 |
| 121 #endif /* WEBP_DEC_VP8LI_H_ */ | 124 #endif /* WEBP_DEC_VP8LI_H_ */ |
| OLD | NEW |