Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: third_party/libwebp/dsp/lossless.c

Issue 653803003: libwebp: update to 0.4.2-rc2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libwebp/dsp/lossless.h ('k') | third_party/libwebp/enc/alpha.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 //------------------------------------------------------------------------------
OLDNEW
« no previous file with comments | « third_party/libwebp/dsp/lossless.h ('k') | third_party/libwebp/enc/alpha.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698