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

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

Issue 2651883004: libwebp-0.6.0-rc1 (Closed)
Patch Set: Created 3 years, 10 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/enc_sse2.c ('k') | third_party/libwebp/dsp/filters.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 2015 Google Inc. All Rights Reserved. 1 // Copyright 2015 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 // SSE4 version of some encoding functions. 10 // SSE4 version of some encoding functions.
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 15
16 #if defined(WEBP_USE_SSE41) 16 #if defined(WEBP_USE_SSE41)
17 #include <smmintrin.h> 17 #include <smmintrin.h>
18 #include <stdlib.h> // for abs() 18 #include <stdlib.h> // for abs()
19 19
20 #include "./common_sse2.h" 20 #include "./common_sse2.h"
21 #include "../enc/vp8enci.h" 21 #include "../enc/vp8i_enc.h"
22 22
23 //------------------------------------------------------------------------------ 23 //------------------------------------------------------------------------------
24 // Compute susceptibility based on DCT-coeff histograms. 24 // Compute susceptibility based on DCT-coeff histograms.
25 25
26 static void CollectHistogram(const uint8_t* ref, const uint8_t* pred, 26 static void CollectHistogram(const uint8_t* ref, const uint8_t* pred,
27 int start_block, int end_block, 27 int start_block, int end_block,
28 VP8Histogram* const histo) { 28 VP8Histogram* const histo) {
29 const __m128i max_coeff_thresh = _mm_set1_epi16(MAX_COEFF_THRESH); 29 const __m128i max_coeff_thresh = _mm_set1_epi16(MAX_COEFF_THRESH);
30 int j; 30 int j;
31 int distribution[MAX_COEFF_THRESH + 1] = { 0 }; 31 int distribution[MAX_COEFF_THRESH + 1] = { 0 };
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 VP8EncQuantizeBlockWHT = QuantizeBlockWHT; 330 VP8EncQuantizeBlockWHT = QuantizeBlockWHT;
331 VP8TDisto4x4 = Disto4x4; 331 VP8TDisto4x4 = Disto4x4;
332 VP8TDisto16x16 = Disto16x16; 332 VP8TDisto16x16 = Disto16x16;
333 } 333 }
334 334
335 #else // !WEBP_USE_SSE41 335 #else // !WEBP_USE_SSE41
336 336
337 WEBP_DSP_INIT_STUB(VP8EncDspInitSSE41) 337 WEBP_DSP_INIT_STUB(VP8EncDspInitSSE41)
338 338
339 #endif // WEBP_USE_SSE41 339 #endif // WEBP_USE_SSE41
OLDNEW
« no previous file with comments | « third_party/libwebp/dsp/enc_sse2.c ('k') | third_party/libwebp/dsp/filters.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698