| 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 encoder: internal header. | 10 // Lossless encoder: internal header. |
| 11 // | 11 // |
| 12 // Author: Vikas Arora (vikaas.arora@gmail.com) | 12 // Author: Vikas Arora (vikaas.arora@gmail.com) |
| 13 | 13 |
| 14 #ifndef WEBP_ENC_VP8LI_H_ | 14 #ifndef WEBP_ENC_VP8LI_H_ |
| 15 #define WEBP_ENC_VP8LI_H_ | 15 #define WEBP_ENC_VP8LI_H_ |
| 16 | 16 |
| 17 #include "./histogram.h" | 17 #include "./histogram.h" |
| 18 #include "../utils/bit_writer.h" | 18 #include "../utils/bit_writer.h" |
| 19 #include "../webp/encode.h" | 19 #include "../webp/encode.h" |
| 20 #include "../webp/format_constants.h" | 20 #include "../webp/format_constants.h" |
| 21 | 21 |
| 22 #if defined(__cplusplus) || defined(c_plusplus) | 22 #ifdef __cplusplus |
| 23 extern "C" { | 23 extern "C" { |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 typedef struct { | 26 typedef struct { |
| 27 const WebPConfig* config_; // user configuration and parameters | 27 const WebPConfig* config_; // user configuration and parameters |
| 28 const WebPPicture* pic_; // input picture. | 28 const WebPPicture* pic_; // input picture. |
| 29 | 29 |
| 30 uint32_t* argb_; // Transformed argb image data. | 30 uint32_t* argb_; // Transformed argb image data. |
| 31 uint32_t* argb_scratch_; // Scratch memory for argb rows | 31 uint32_t* argb_scratch_; // Scratch memory for argb rows |
| 32 // (used for prediction). | 32 // (used for prediction). |
| (...skipping 23 matching lines...) Expand all Loading... |
| 56 int VP8LEncodeImage(const WebPConfig* const config, | 56 int VP8LEncodeImage(const WebPConfig* const config, |
| 57 const WebPPicture* const picture); | 57 const WebPPicture* const picture); |
| 58 | 58 |
| 59 // Encodes the main image stream using the supplied bit writer. | 59 // Encodes the main image stream using the supplied bit writer. |
| 60 WebPEncodingError VP8LEncodeStream(const WebPConfig* const config, | 60 WebPEncodingError VP8LEncodeStream(const WebPConfig* const config, |
| 61 const WebPPicture* const picture, | 61 const WebPPicture* const picture, |
| 62 VP8LBitWriter* const bw); | 62 VP8LBitWriter* const bw); |
| 63 | 63 |
| 64 //------------------------------------------------------------------------------ | 64 //------------------------------------------------------------------------------ |
| 65 | 65 |
| 66 #if defined(__cplusplus) || defined(c_plusplus) | 66 #ifdef __cplusplus |
| 67 } // extern "C" | 67 } // extern "C" |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 #endif /* WEBP_ENC_VP8LI_H_ */ | 70 #endif /* WEBP_ENC_VP8LI_H_ */ |
| OLD | NEW |