OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ | 5 #ifndef COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ |
6 #define COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ | 6 #define COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ |
7 | 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
8 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "third_party/libwebp/webp/decode.h" | 13 #include "third_party/libwebp/webp/decode.h" |
12 | 14 |
13 @class NSData; | 15 @class NSData; |
14 | 16 |
15 namespace webp_transcode { | 17 namespace webp_transcode { |
16 | 18 |
17 // Decodes a WebP image into either JPEG, PNG or uncompressed TIFF. | 19 // Decodes a WebP image into either JPEG, PNG or uncompressed TIFF. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 WebpDecoder::State state_; | 67 WebpDecoder::State state_; |
66 scoped_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_; | 68 scoped_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_; |
67 base::scoped_nsobject<NSData> output_buffer_; | 69 base::scoped_nsobject<NSData> output_buffer_; |
68 base::scoped_nsobject<NSMutableData> features_; | 70 base::scoped_nsobject<NSMutableData> features_; |
69 int has_alpha_; | 71 int has_alpha_; |
70 }; | 72 }; |
71 | 73 |
72 } // namespace webp_transcode | 74 } // namespace webp_transcode |
73 | 75 |
74 #endif // COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ | 76 #endif // COMPONENTS_WEBP_TRANSCODE_WEBP_DECODER_H_ |
OLD | NEW |