| OLD | NEW |
| 1 // Copyright 2011 Google Inc. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // This code is licensed under the same terms as WebM: | 3 // This code is licensed under the same terms as WebM: |
| 4 // Software License Agreement: http://www.webmproject.org/license/software/ | 4 // Software License Agreement: http://www.webmproject.org/license/software/ |
| 5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ | 5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ |
| 6 // ----------------------------------------------------------------------------- | 6 // ----------------------------------------------------------------------------- |
| 7 // | 7 // |
| 8 // SSE2 version of speed-critical encoding functions. | 8 // SSE2 version of speed-critical encoding functions. |
| 9 // | 9 // |
| 10 // Author: Christian Duvivier (cduvivier@google.com) | 10 // Author: Christian Duvivier (cduvivier@google.com) |
| 11 | 11 |
| 12 #if defined(__SSE2__) || defined(_MSC_VER) | 12 #include "./dsp.h" |
| 13 |
| 14 #if defined(WEBP_USE_SSE2) |
| 15 #include <stdlib.h> // for abs() |
| 13 #include <emmintrin.h> | 16 #include <emmintrin.h> |
| 14 | 17 |
| 15 #include "../enc/vp8enci.h" | 18 #include "../enc/vp8enci.h" |
| 16 | 19 |
| 17 #if defined(__cplusplus) || defined(c_plusplus) | 20 #if defined(__cplusplus) || defined(c_plusplus) |
| 18 extern "C" { | 21 extern "C" { |
| 19 #endif | 22 #endif |
| 20 | 23 |
| 21 //------------------------------------------------------------------------------ | 24 //------------------------------------------------------------------------------ |
| 22 // Compute susceptibility based on DCT-coeff histograms: | 25 // Compute susceptibility based on DCT-coeff histograms: |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 VP8FTransform = FTransformSSE2; | 827 VP8FTransform = FTransformSSE2; |
| 825 VP8SSE4x4 = SSE4x4SSE2; | 828 VP8SSE4x4 = SSE4x4SSE2; |
| 826 VP8TDisto4x4 = Disto4x4SSE2; | 829 VP8TDisto4x4 = Disto4x4SSE2; |
| 827 VP8TDisto16x16 = Disto16x16SSE2; | 830 VP8TDisto16x16 = Disto16x16SSE2; |
| 828 } | 831 } |
| 829 | 832 |
| 830 #if defined(__cplusplus) || defined(c_plusplus) | 833 #if defined(__cplusplus) || defined(c_plusplus) |
| 831 } // extern "C" | 834 } // extern "C" |
| 832 #endif | 835 #endif |
| 833 | 836 |
| 834 #endif //__SSE2__ | 837 #endif // WEBP_USE_SSE2 |
| OLD | NEW |