blob: f6e568cdcddb1a03b13b8e26f3763adcef418f97 [file] [log] [blame]
John Koleszar0ea50ce2010-05-18 11:58:33 -04001/*
John Koleszarc2140b82010-09-09 08:16:39 -04002 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar0ea50ce2010-05-18 11:58:33 -04003 *
John Koleszar94c52e42010-06-18 12:39:21 -04004 * Use of this source code is governed by a BSD-style license
John Koleszar09202d82010-06-04 16:19:40 -04005 * 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 Koleszar94c52e42010-06-18 12:39:21 -04007 * in the file PATENTS. All contributing project authors may
John Koleszar09202d82010-06-04 16:19:40 -04008 * be found in the AUTHORS file in the root of the source tree.
John Koleszar0ea50ce2010-05-18 11:58:33 -04009 */
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
23extern prototype_idct(vp8_short_idct4x4llm_1_mmx);
24extern prototype_idct(vp8_short_idct4x4llm_mmx);
Jeff Muizelaar98fcccf2010-06-03 10:16:07 -040025extern prototype_idct_scalar_add(vp8_dc_only_idct_add_mmx);
John Koleszar0ea50ce2010-05-18 11:58:33 -040026
27extern prototype_second_order(vp8_short_inv_walsh4x4_mmx);
28extern 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 Muizelaar98fcccf2010-06-03 10:16:07 -040037#undef vp8_idct_idct1_scalar_add
38#define vp8_idct_idct1_scalar_add vp8_dc_only_idct_add_mmx
39
John Koleszar0ea50ce2010-05-18 11:58:33 -040040#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
51extern 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