Removed unused vp8_recon_intra4x4mb function
[libvpx.git] / vp8 / encoder / dct.h
blobfec3b4c37ce6ef53792491e2be0ddf3e63f9750e
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
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
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
12 #ifndef __INC_DCT_H
13 #define __INC_DCT_H
15 #define prototype_fdct(sym) void (sym)(short *input, short *output, int pitch)
17 #if ARCH_X86 || ARCH_X86_64
18 #include "x86/dct_x86.h"
19 #endif
21 #if ARCH_ARM
22 #include "arm/dct_arm.h"
23 #endif
25 #ifndef vp8_fdct_short4x4
26 #define vp8_fdct_short4x4 vp8_short_fdct4x4_c
27 #endif
28 extern prototype_fdct(vp8_fdct_short4x4);
30 #ifndef vp8_fdct_short8x4
31 #define vp8_fdct_short8x4 vp8_short_fdct8x4_c
32 #endif
33 extern prototype_fdct(vp8_fdct_short8x4);
35 // There is no fast4x4 (for now)
36 #ifndef vp8_fdct_fast4x4
37 #define vp8_fdct_fast4x4 vp8_short_fdct4x4_c
38 #endif
40 #ifndef vp8_fdct_fast8x4
41 #define vp8_fdct_fast8x4 vp8_short_fdct8x4_c
42 #endif
44 #ifndef vp8_fdct_walsh_short4x4
45 #define vp8_fdct_walsh_short4x4 vp8_short_walsh4x4_c
46 #endif
47 extern prototype_fdct(vp8_fdct_walsh_short4x4);
49 typedef prototype_fdct(*vp8_fdct_fn_t);
50 typedef struct
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
61 #else
62 #define FDCT_INVOKE(ctx,fn) vp8_fdct_##fn
63 #endif
65 #endif