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

Side by Side Diff: third_party/libwebp/dsp/rescaler_neon.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/rescaler_msa.c ('k') | third_party/libwebp/dsp/rescaler_sse2.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 // NEON version of rescaling functions 10 // NEON version of rescaling 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_NEON) 16 #if defined(WEBP_USE_NEON)
17 17
18 #include <arm_neon.h> 18 #include <arm_neon.h>
19 #include <assert.h> 19 #include <assert.h>
20 #include "./neon.h" 20 #include "./neon.h"
21 #include "../utils/rescaler.h" 21 #include "../utils/rescaler_utils.h"
22 22
23 #define ROUNDER (WEBP_RESCALER_ONE >> 1) 23 #define ROUNDER (WEBP_RESCALER_ONE >> 1)
24 #define MULT_FIX_C(x, y) (((uint64_t)(x) * (y) + ROUNDER) >> WEBP_RESCALER_RFIX) 24 #define MULT_FIX_C(x, y) (((uint64_t)(x) * (y) + ROUNDER) >> WEBP_RESCALER_RFIX)
25 25
26 #define LOAD_32x4(SRC, DST) const uint32x4_t DST = vld1q_u32((SRC)) 26 #define LOAD_32x4(SRC, DST) const uint32x4_t DST = vld1q_u32((SRC))
27 #define LOAD_32x8(SRC, DST0, DST1) \ 27 #define LOAD_32x8(SRC, DST0, DST1) \
28 LOAD_32x4(SRC + 0, DST0); \ 28 LOAD_32x4(SRC + 0, DST0); \
29 LOAD_32x4(SRC + 4, DST1) 29 LOAD_32x4(SRC + 4, DST1)
30 30
31 #define STORE_32x8(SRC0, SRC1, DST) do { \ 31 #define STORE_32x8(SRC0, SRC1, DST) do { \
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitNEON(void) { 177 WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitNEON(void) {
178 WebPRescalerExportRowExpand = RescalerExportRowExpand; 178 WebPRescalerExportRowExpand = RescalerExportRowExpand;
179 WebPRescalerExportRowShrink = RescalerExportRowShrink; 179 WebPRescalerExportRowShrink = RescalerExportRowShrink;
180 } 180 }
181 181
182 #else // !WEBP_USE_NEON 182 #else // !WEBP_USE_NEON
183 183
184 WEBP_DSP_INIT_STUB(WebPRescalerDspInitNEON) 184 WEBP_DSP_INIT_STUB(WebPRescalerDspInitNEON)
185 185
186 #endif // WEBP_USE_NEON 186 #endif // WEBP_USE_NEON
OLDNEW
« no previous file with comments | « third_party/libwebp/dsp/rescaler_msa.c ('k') | third_party/libwebp/dsp/rescaler_sse2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698