| OLD | NEW |
| 1 // Copyright 2010 Google Inc. All Rights Reserved. | 1 // Copyright 2010 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 // Speed-critical decoding functions, default plain-C implementations. | 10 // Speed-critical decoding functions, default plain-C implementations. |
| 11 // | 11 // |
| 12 // Author: Skal (pascal.massimino@gmail.com) | 12 // Author: Skal (pascal.massimino@gmail.com) |
| 13 | 13 |
| 14 #include "./dsp.h" | 14 #include "./dsp.h" |
| 15 #include "../dec/vp8i.h" | 15 #include "../dec/vp8i_dec.h" |
| 16 #include "../utils/utils.h" | 16 #include "../utils/utils.h" |
| 17 | 17 |
| 18 //------------------------------------------------------------------------------ | 18 //------------------------------------------------------------------------------ |
| 19 | 19 |
| 20 static WEBP_INLINE uint8_t clip_8b(int v) { | 20 static WEBP_INLINE uint8_t clip_8b(int v) { |
| 21 return (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255; | 21 return (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255; |
| 22 } | 22 } |
| 23 | 23 |
| 24 //------------------------------------------------------------------------------ | 24 //------------------------------------------------------------------------------ |
| 25 // Transforms (Paragraph 14.4) | 25 // Transforms (Paragraph 14.4) |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 } | 786 } |
| 787 #endif | 787 #endif |
| 788 #if defined(WEBP_USE_MSA) | 788 #if defined(WEBP_USE_MSA) |
| 789 if (VP8GetCPUInfo(kMSA)) { | 789 if (VP8GetCPUInfo(kMSA)) { |
| 790 VP8DspInitMSA(); | 790 VP8DspInitMSA(); |
| 791 } | 791 } |
| 792 #endif | 792 #endif |
| 793 } | 793 } |
| 794 dec_last_cpuinfo_used = VP8GetCPUInfo; | 794 dec_last_cpuinfo_used = VP8GetCPUInfo; |
| 795 } | 795 } |
| OLD | NEW |