| OLD | NEW |
| 1 // Copyright 2014 Google Inc. All Rights Reserved. | 1 // Copyright 2014 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 // WebPPicture tools: alpha handling, etc. | 10 // WebPPicture tools: alpha handling, etc. |
| 11 // | 11 // |
| 12 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 13 | 13 |
| 14 #include <assert.h> | 14 #include <assert.h> |
| 15 | 15 |
| 16 #include "./vp8enci.h" | 16 #include "./vp8i_enc.h" |
| 17 #include "../dsp/yuv.h" | 17 #include "../dsp/yuv.h" |
| 18 | 18 |
| 19 static WEBP_INLINE uint32_t MakeARGB32(int r, int g, int b) { | 19 static WEBP_INLINE uint32_t MakeARGB32(int r, int g, int b) { |
| 20 return (0xff000000u | (r << 16) | (g << 8) | b); | 20 return (0xff000000u | (r << 16) | (g << 8) | b); |
| 21 } | 21 } |
| 22 | 22 |
| 23 //------------------------------------------------------------------------------ | 23 //------------------------------------------------------------------------------ |
| 24 // Helper: clean up fully transparent area to help compressibility. | 24 // Helper: clean up fully transparent area to help compressibility. |
| 25 | 25 |
| 26 #define SIZE 8 | 26 #define SIZE 8 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 217 } |
| 218 argb += pic->argb_stride; | 218 argb += pic->argb_stride; |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| 223 #undef BLEND | 223 #undef BLEND |
| 224 #undef BLEND_10BIT | 224 #undef BLEND_10BIT |
| 225 | 225 |
| 226 //------------------------------------------------------------------------------ | 226 //------------------------------------------------------------------------------ |
| OLD | NEW |