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

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

Issue 2651883004: libwebp-0.6.0-rc1 (Closed)
Patch Set: Created 3 years, 11 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_mips32.c ('k') | third_party/libwebp/dsp/enc_msa.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 speed-critical encoding functions. 10 // MIPS version of speed-critical encoding functions.
11 // 11 //
12 // Author(s): Darko Laus (darko.laus@imgtec.com) 12 // Author(s): Darko Laus (darko.laus@imgtec.com)
13 // Mirko Raus (mirko.raus@imgtec.com) 13 // Mirko Raus (mirko.raus@imgtec.com)
14 14
15 #include "./dsp.h" 15 #include "./dsp.h"
16 16
17 #if defined(WEBP_USE_MIPS_DSP_R2) 17 #if defined(WEBP_USE_MIPS_DSP_R2)
18 18
19 #include "./mips_macro.h" 19 #include "./mips_macro.h"
20 #include "../enc/cost.h" 20 #include "../enc/cost_enc.h"
21 #include "../enc/vp8enci.h" 21 #include "../enc/vp8i_enc.h"
22 22
23 static const int kC1 = 20091 + (1 << 16); 23 static const int kC1 = 20091 + (1 << 16);
24 static const int kC2 = 35468; 24 static const int kC2 = 35468;
25 25
26 // O - output 26 // O - output
27 // I - input (macro doesn't change it) 27 // I - input (macro doesn't change it)
28 #define ADD_SUB_HALVES_X4(O0, O1, O2, O3, O4, O5, O6, O7, \ 28 #define ADD_SUB_HALVES_X4(O0, O1, O2, O3, O4, O5, O6, O7, \
29 I0, I1, I2, I3, I4, I5, I6, I7) \ 29 I0, I1, I2, I3, I4, I5, I6, I7) \
30 "addq.ph %[" #O0 "], %[" #I0 "], %[" #I1 "] \n\t" \ 30 "addq.ph %[" #O0 "], %[" #I0 "], %[" #I1 "] \n\t" \
31 "subq.ph %[" #O1 "], %[" #I0 "], %[" #I1 "] \n\t" \ 31 "subq.ph %[" #O1 "], %[" #I0 "], %[" #I1 "] \n\t" \
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 VP8EncQuantize2Blocks = Quantize2Blocks; 1501 VP8EncQuantize2Blocks = Quantize2Blocks;
1502 VP8FTransformWHT = FTransformWHT; 1502 VP8FTransformWHT = FTransformWHT;
1503 VP8CollectHistogram = CollectHistogram; 1503 VP8CollectHistogram = CollectHistogram;
1504 } 1504 }
1505 1505
1506 #else // !WEBP_USE_MIPS_DSP_R2 1506 #else // !WEBP_USE_MIPS_DSP_R2
1507 1507
1508 WEBP_DSP_INIT_STUB(VP8EncDspInitMIPSdspR2) 1508 WEBP_DSP_INIT_STUB(VP8EncDspInitMIPSdspR2)
1509 1509
1510 #endif // WEBP_USE_MIPS_DSP_R2 1510 #endif // WEBP_USE_MIPS_DSP_R2
OLDNEW
« no previous file with comments | « third_party/libwebp/dsp/enc_mips32.c ('k') | third_party/libwebp/dsp/enc_msa.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698