| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |