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.
12 #ifndef __INC_VP8_TEMPORAL_FILTER_H
13 #define __INC_VP8_TEMPORAL_FILTER_H
15 #define prototype_apply(sym)\
18 unsigned char *frame1, \
19 unsigned int stride, \
20 unsigned char *frame2, \
21 unsigned int block_size, \
24 unsigned int *accumulator, \
25 unsigned short *count \
28 #if ARCH_X86 || ARCH_X86_64
29 #include "x86/temporal_filter_x86.h"
32 #ifndef vp8_temporal_filter_apply
33 #define vp8_temporal_filter_apply vp8_temporal_filter_apply_c
35 extern prototype_apply(vp8_temporal_filter_apply
);
39 prototype_apply(*apply
);
40 } vp8_temporal_rtcd_vtable_t
;
42 #if CONFIG_RUNTIME_CPU_DETECT
43 #define TEMPORAL_INVOKE(ctx,fn) (ctx)->fn
45 #define TEMPORAL_INVOKE(ctx,fn) vp8_temporal_filter_##fn
48 #endif // __INC_VP8_TEMPORAL_FILTER_H