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 // Image transforms and color space conversion methods for lossless decoder. | 10 // Image transforms and color space conversion methods for lossless decoder. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels, | 50 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels, |
51 uint8_t* dst); | 51 uint8_t* dst); |
52 extern VP8LConvertFunc VP8LConvertBGRAToRGB; | 52 extern VP8LConvertFunc VP8LConvertBGRAToRGB; |
53 extern VP8LConvertFunc VP8LConvertBGRAToRGBA; | 53 extern VP8LConvertFunc VP8LConvertBGRAToRGBA; |
54 extern VP8LConvertFunc VP8LConvertBGRAToRGBA4444; | 54 extern VP8LConvertFunc VP8LConvertBGRAToRGBA4444; |
55 extern VP8LConvertFunc VP8LConvertBGRAToRGB565; | 55 extern VP8LConvertFunc VP8LConvertBGRAToRGB565; |
56 extern VP8LConvertFunc VP8LConvertBGRAToBGR; | 56 extern VP8LConvertFunc VP8LConvertBGRAToBGR; |
57 | 57 |
58 // Expose some C-only fallback functions | 58 // Expose some C-only fallback functions |
59 extern void VP8LTransformColor_C(const VP8LMultipliers* const m, | 59 void VP8LTransformColor_C(const VP8LMultipliers* const m, |
| 60 uint32_t* data, int num_pixels); |
| 61 void VP8LTransformColorInverse_C(const VP8LMultipliers* const m, |
60 uint32_t* data, int num_pixels); | 62 uint32_t* data, int num_pixels); |
61 extern void VP8LTransformColorInverse_C(const VP8LMultipliers* const m, | |
62 uint32_t* data, int num_pixels); | |
63 | 63 |
64 extern void VP8LConvertBGRAToRGB_C(const uint32_t* src, | 64 void VP8LConvertBGRAToRGB_C(const uint32_t* src, int num_pixels, uint8_t* dst); |
65 int num_pixels, uint8_t* dst); | 65 void VP8LConvertBGRAToRGBA_C(const uint32_t* src, int num_pixels, uint8_t* dst); |
66 extern void VP8LConvertBGRAToRGBA_C(const uint32_t* src, | 66 void VP8LConvertBGRAToRGBA4444_C(const uint32_t* src, |
67 int num_pixels, uint8_t* dst); | 67 int num_pixels, uint8_t* dst); |
68 extern void VP8LConvertBGRAToRGBA4444_C(const uint32_t* src, | 68 void VP8LConvertBGRAToRGB565_C(const uint32_t* src, |
69 int num_pixels, uint8_t* dst); | 69 int num_pixels, uint8_t* dst); |
70 extern void VP8LConvertBGRAToRGB565_C(const uint32_t* src, | 70 void VP8LConvertBGRAToBGR_C(const uint32_t* src, int num_pixels, uint8_t* dst); |
71 int num_pixels, uint8_t* dst); | 71 void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, int num_pixels); |
72 extern void VP8LConvertBGRAToBGR_C(const uint32_t* src, | 72 void VP8LAddGreenToBlueAndRed_C(uint32_t* data, int num_pixels); |
73 int num_pixels, uint8_t* dst); | |
74 extern void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, | |
75 int num_pixels); | |
76 extern void VP8LAddGreenToBlueAndRed_C(uint32_t* data, int num_pixels); | |
77 | 73 |
78 // Must be called before calling any of the above methods. | 74 // Must be called before calling any of the above methods. |
79 void VP8LDspInit(void); | 75 void VP8LDspInit(void); |
80 | 76 |
81 //------------------------------------------------------------------------------ | 77 //------------------------------------------------------------------------------ |
82 // Image transforms. | 78 // Image transforms. |
83 | 79 |
84 struct VP8LTransform; // Defined in dec/vp8li.h. | 80 struct VP8LTransform; // Defined in dec/vp8li.h. |
85 | 81 |
86 // Performs inverse transform of data given transform information, start and end | 82 // Performs inverse transform of data given transform information, start and end |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 void VP8LBundleColorMap(const uint8_t* const row, int width, | 240 void VP8LBundleColorMap(const uint8_t* const row, int width, |
245 int xbits, uint32_t* const dst); | 241 int xbits, uint32_t* const dst); |
246 | 242 |
247 //------------------------------------------------------------------------------ | 243 //------------------------------------------------------------------------------ |
248 | 244 |
249 #ifdef __cplusplus | 245 #ifdef __cplusplus |
250 } // extern "C" | 246 } // extern "C" |
251 #endif | 247 #endif |
252 | 248 |
253 #endif // WEBP_DSP_LOSSLESS_H_ | 249 #endif // WEBP_DSP_LOSSLESS_H_ |
OLD | NEW |