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

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

Issue 10832153: libwebp: update snapshot to v0.2.0-rc1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698