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. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 //------------------------------------------------------------------------------ | 93 //------------------------------------------------------------------------------ |
94 // internal functions. Not public. | 94 // internal functions. Not public. |
95 | 95 |
96 struct ALPHDecoder; // Defined in dec/alphai.h. | 96 struct ALPHDecoder; // Defined in dec/alphai.h. |
97 | 97 |
98 // in vp8l.c | 98 // in vp8l.c |
99 | 99 |
100 // Decodes image header for alpha data stored using lossless compression. | 100 // Decodes image header for alpha data stored using lossless compression. |
101 // Returns false in case of error. | 101 // Returns false in case of error. |
102 int VP8LDecodeAlphaHeader(struct ALPHDecoder* const alph_dec, | 102 int VP8LDecodeAlphaHeader(struct ALPHDecoder* const alph_dec, |
103 const uint8_t* const data, size_t data_size, | 103 const uint8_t* const data, size_t data_size); |
104 uint8_t* const output); | |
105 | 104 |
106 // Decodes *at least* 'last_row' rows of alpha. If some of the initial rows are | 105 // Decodes *at least* 'last_row' rows of alpha. If some of the initial rows are |
107 // already decoded in previous call(s), it will resume decoding from where it | 106 // already decoded in previous call(s), it will resume decoding from where it |
108 // was paused. | 107 // was paused. |
109 // Returns false in case of bitstream error. | 108 // Returns false in case of bitstream error. |
110 int VP8LDecodeAlphaImageStream(struct ALPHDecoder* const alph_dec, | 109 int VP8LDecodeAlphaImageStream(struct ALPHDecoder* const alph_dec, |
111 int last_row); | 110 int last_row); |
112 | 111 |
113 // Allocates and initialize a new lossless decoder instance. | 112 // Allocates and initialize a new lossless decoder instance. |
114 VP8LDecoder* VP8LNew(void); | 113 VP8LDecoder* VP8LNew(void); |
(...skipping 12 matching lines...) Expand all Loading... |
127 // Clears and deallocate a lossless decoder instance. | 126 // Clears and deallocate a lossless decoder instance. |
128 void VP8LDelete(VP8LDecoder* const dec); | 127 void VP8LDelete(VP8LDecoder* const dec); |
129 | 128 |
130 //------------------------------------------------------------------------------ | 129 //------------------------------------------------------------------------------ |
131 | 130 |
132 #ifdef __cplusplus | 131 #ifdef __cplusplus |
133 } // extern "C" | 132 } // extern "C" |
134 #endif | 133 #endif |
135 | 134 |
136 #endif /* WEBP_DEC_VP8LI_H_ */ | 135 #endif /* WEBP_DEC_VP8LI_H_ */ |
OLD | NEW |