| 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 ColorCodeToMultipliers(*pred++, &m); | 1171 ColorCodeToMultipliers(*pred++, &m); |
| 1172 VP8LTransformColorInverse(&m, data, tile_width); | 1172 VP8LTransformColorInverse(&m, data, tile_width); |
| 1173 data += tile_width; | 1173 data += tile_width; |
| 1174 } | 1174 } |
| 1175 if (data < data_end) { // Left-overs using C-version. | 1175 if (data < data_end) { // Left-overs using C-version. |
| 1176 ColorCodeToMultipliers(*pred++, &m); | 1176 ColorCodeToMultipliers(*pred++, &m); |
| 1177 VP8LTransformColorInverse(&m, data, remaining_width); | 1177 VP8LTransformColorInverse(&m, data, remaining_width); |
| 1178 data += remaining_width; | 1178 data += remaining_width; |
| 1179 } | 1179 } |
| 1180 ++y; | 1180 ++y; |
| 1181 if ((y & mask) == 0) pred_row += tiles_per_row;; | 1181 if ((y & mask) == 0) pred_row += tiles_per_row; |
| 1182 } | 1182 } |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 // Separate out pixels packed together using pixel-bundling. | 1185 // Separate out pixels packed together using pixel-bundling. |
| 1186 // We define two methods for ARGB data (uint32_t) and alpha-only data (uint8_t). | 1186 // We define two methods for ARGB data (uint32_t) and alpha-only data (uint8_t). |
| 1187 #define COLOR_INDEX_INVERSE(FUNC_NAME, TYPE, GET_INDEX, GET_VALUE) \ | 1187 #define COLOR_INDEX_INVERSE(FUNC_NAME, TYPE, GET_INDEX, GET_VALUE) \ |
| 1188 void FUNC_NAME(const VP8LTransform* const transform, \ | 1188 void FUNC_NAME(const VP8LTransform* const transform, \ |
| 1189 int y_start, int y_end, const TYPE* src, TYPE* dst) { \ | 1189 int y_start, int y_end, const TYPE* src, TYPE* dst) { \ |
| 1190 int y; \ | 1190 int y; \ |
| 1191 const int bits_per_pixel = 8 >> transform->bits_; \ | 1191 const int bits_per_pixel = 8 >> transform->bits_; \ |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 #endif | 1630 #endif |
| 1631 #if defined(WEBP_USE_MIPS32) | 1631 #if defined(WEBP_USE_MIPS32) |
| 1632 if (VP8GetCPUInfo(kMIPS32)) { | 1632 if (VP8GetCPUInfo(kMIPS32)) { |
| 1633 VP8LDspInitMIPS32(); | 1633 VP8LDspInitMIPS32(); |
| 1634 } | 1634 } |
| 1635 #endif | 1635 #endif |
| 1636 } | 1636 } |
| 1637 } | 1637 } |
| 1638 | 1638 |
| 1639 //------------------------------------------------------------------------------ | 1639 //------------------------------------------------------------------------------ |
| OLD | NEW |