2 * Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license and patent
5 * grant that can be found in the LICENSE file in the root of the source
6 * tree. All contributing project authors may be found in the AUTHORS
7 * file in the root of the source tree.
14 #define prototype_fdct(sym) void (sym)(short *input, short *output, int pitch)
16 #if ARCH_X86 || ARCH_X86_64
17 #include "x86/dct_x86.h"
21 #include "arm/dct_arm.h"
24 #ifndef vp8_fdct_short4x4
25 #define vp8_fdct_short4x4 vp8_short_fdct4x4_c
27 extern prototype_fdct(vp8_fdct_short4x4);
29 #ifndef vp8_fdct_short8x4
30 #define vp8_fdct_short8x4 vp8_short_fdct8x4_c
32 extern prototype_fdct(vp8_fdct_short8x4);
34 #ifndef vp8_fdct_fast4x4
35 #define vp8_fdct_fast4x4 vp8_fast_fdct4x4_c
37 extern prototype_fdct(vp8_fdct_fast4x4);
39 #ifndef vp8_fdct_fast8x4
40 #define vp8_fdct_fast8x4 vp8_fast_fdct8x4_c
42 extern prototype_fdct(vp8_fdct_fast8x4);
44 #ifndef vp8_fdct_walsh_short4x4
45 #define vp8_fdct_walsh_short4x4 vp8_short_walsh4x4_c
47 extern prototype_fdct(vp8_fdct_walsh_short4x4);
49 typedef prototype_fdct(*vp8_fdct_fn_t);
52 vp8_fdct_fn_t short4x4;
53 vp8_fdct_fn_t short8x4;
54 vp8_fdct_fn_t fast4x4;
55 vp8_fdct_fn_t fast8x4;
56 vp8_fdct_fn_t walsh_short4x4;
57 } vp8_fdct_rtcd_vtable_t;
59 #if CONFIG_RUNTIME_CPU_DETECT
60 #define FDCT_INVOKE(ctx,fn) (ctx)->fn
62 #define FDCT_INVOKE(ctx,fn) vp8_fdct_##fn