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

Side by Side Diff: third_party/libwebp/dsp/rescaler_mips32.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.c ('k') | third_party/libwebp/dsp/rescaler_mips_dsp_r2.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 2014 Google Inc. All Rights Reserved. 1 // Copyright 2014 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 // MIPS version of rescaling functions 10 // MIPS version of rescaling functions
11 // 11 //
12 // Author(s): Djordje Pesut (djordje.pesut@imgtec.com) 12 // Author(s): Djordje Pesut (djordje.pesut@imgtec.com)
13 13
14 #include "./dsp.h" 14 #include "./dsp.h"
15 15
16 #if defined(WEBP_USE_MIPS32) 16 #if defined(WEBP_USE_MIPS32)
17 17
18 #include <assert.h> 18 #include <assert.h>
19 #include "../utils/rescaler.h" 19 #include "../utils/rescaler_utils.h"
20 20
21 //------------------------------------------------------------------------------ 21 //------------------------------------------------------------------------------
22 // Row import 22 // Row import
23 23
24 static void ImportRowShrink(WebPRescaler* const wrk, const uint8_t* src) { 24 static void ImportRowShrink(WebPRescaler* const wrk, const uint8_t* src) {
25 const int x_stride = wrk->num_channels; 25 const int x_stride = wrk->num_channels;
26 const int x_out_max = wrk->dst_width * wrk->num_channels; 26 const int x_out_max = wrk->dst_width * wrk->num_channels;
27 const int fx_scale = wrk->fx_scale; 27 const int fx_scale = wrk->fx_scale;
28 const int x_add = wrk->x_add; 28 const int x_add = wrk->x_add;
29 const int x_sub = wrk->x_sub; 29 const int x_sub = wrk->x_sub;
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 WebPRescalerImportRowShrink = ImportRowShrink; 282 WebPRescalerImportRowShrink = ImportRowShrink;
283 WebPRescalerExportRowExpand = ExportRowExpand; 283 WebPRescalerExportRowExpand = ExportRowExpand;
284 WebPRescalerExportRowShrink = ExportRowShrink; 284 WebPRescalerExportRowShrink = ExportRowShrink;
285 } 285 }
286 286
287 #else // !WEBP_USE_MIPS32 287 #else // !WEBP_USE_MIPS32
288 288
289 WEBP_DSP_INIT_STUB(WebPRescalerDspInitMIPS32) 289 WEBP_DSP_INIT_STUB(WebPRescalerDspInitMIPS32)
290 290
291 #endif // WEBP_USE_MIPS32 291 #endif // WEBP_USE_MIPS32
OLDNEW
« no previous file with comments | « third_party/libwebp/dsp/rescaler.c ('k') | third_party/libwebp/dsp/rescaler_mips_dsp_r2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698