John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 1 | /* |
John Koleszar | c2140b8 | 2010-09-09 08:16:39 -0400 | [diff] [blame] | 2 | * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 3 | * |
John Koleszar | 94c52e4 | 2010-06-18 12:39:21 -0400 | [diff] [blame] | 4 | * Use of this source code is governed by a BSD-style license |
John Koleszar | 09202d8 | 2010-06-04 16:19:40 -0400 | [diff] [blame] | 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
John Koleszar | 94c52e4 | 2010-06-18 12:39:21 -0400 | [diff] [blame] | 7 | * in the file PATENTS. All contributing project authors may |
John Koleszar | 09202d8 | 2010-06-04 16:19:40 -0400 | [diff] [blame] | 8 | * be found in the AUTHORS file in the root of the source tree. |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | |
| 12 | #ifndef IDCT_X86_H |
| 13 | #define IDCT_X86_H |
| 14 | |
| 15 | /* Note: |
| 16 | * |
| 17 | * This platform is commonly built for runtime CPU detection. If you modify |
| 18 | * any of the function mappings present in this file, be sure to also update |
| 19 | * them in the function pointer initialization code |
| 20 | */ |
| 21 | |
| 22 | #if HAVE_MMX |
| 23 | extern prototype_idct(vp8_short_idct4x4llm_1_mmx); |
| 24 | extern prototype_idct(vp8_short_idct4x4llm_mmx); |
Jeff Muizelaar | 98fcccf | 2010-06-03 10:16:07 -0400 | [diff] [blame] | 25 | extern prototype_idct_scalar_add(vp8_dc_only_idct_add_mmx); |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 26 | |
| 27 | extern prototype_second_order(vp8_short_inv_walsh4x4_mmx); |
| 28 | extern prototype_second_order(vp8_short_inv_walsh4x4_1_mmx); |
| 29 | |
| 30 | #if !CONFIG_RUNTIME_CPU_DETECT |
| 31 | #undef vp8_idct_idct1 |
| 32 | #define vp8_idct_idct1 vp8_short_idct4x4llm_1_mmx |
| 33 | |
| 34 | #undef vp8_idct_idct16 |
| 35 | #define vp8_idct_idct16 vp8_short_idct4x4llm_mmx |
| 36 | |
Jeff Muizelaar | 98fcccf | 2010-06-03 10:16:07 -0400 | [diff] [blame] | 37 | #undef vp8_idct_idct1_scalar_add |
| 38 | #define vp8_idct_idct1_scalar_add vp8_dc_only_idct_add_mmx |
| 39 | |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 40 | #undef vp8_idct_iwalsh16 |
| 41 | #define vp8_idct_iwalsh16 vp8_short_inv_walsh4x4_mmx |
| 42 | |
| 43 | #undef vp8_idct_iwalsh1 |
| 44 | #define vp8_idct_iwalsh1 vp8_short_inv_walsh4x4_1_mmx |
| 45 | |
| 46 | #endif |
| 47 | #endif |
| 48 | |
| 49 | #if HAVE_SSE2 |
| 50 | |
| 51 | extern prototype_second_order(vp8_short_inv_walsh4x4_sse2); |
| 52 | |
| 53 | #if !CONFIG_RUNTIME_CPU_DETECT |
| 54 | |
| 55 | #undef vp8_idct_iwalsh16 |
| 56 | #define vp8_idct_iwalsh16 vp8_short_inv_walsh4x4_sse2 |
| 57 | |
| 58 | #endif |
| 59 | |
| 60 | #endif |
| 61 | |
| 62 | |
| 63 | |
| 64 | #endif |