summaryrefslogtreecommitdiff
path: root/vp9/common/generic/vp9_systemdependent.c
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2012-11-27 13:59:17 -0800
committerJohn Koleszar <jkoleszar@google.com>2012-11-27 14:12:30 -0800
commitfcccbcbb395ce4cf31b54ce1245cc28e5e3ef4c1 (patch)
tree68e128e48e3f5ab1de1c163fa3a12ea47f5d8d51 /vp9/common/generic/vp9_systemdependent.c
parent3bf7b131c8ebb6b4d63a8b70d69066dcbc4ed896 (diff)
downloadlibvpx-fcccbcbb395ce4cf31b54ce1245cc28e5e3ef4c1.tar
libvpx-fcccbcbb395ce4cf31b54ce1245cc28e5e3ef4c1.tar.gz
libvpx-fcccbcbb395ce4cf31b54ce1245cc28e5e3ef4c1.tar.bz2
libvpx-fcccbcbb395ce4cf31b54ce1245cc28e5e3ef4c1.zip
Add vp9_ prefix to all vp9 files
Support for gyp which doesn't support multiple objects in the same static library having the same basename. Change-Id: Ib947eefbaf68f8b177a796d23f875ccdfa6bc9dc
Diffstat (limited to 'vp9/common/generic/vp9_systemdependent.c')
-rw-r--r--vp9/common/generic/vp9_systemdependent.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/vp9/common/generic/vp9_systemdependent.c b/vp9/common/generic/vp9_systemdependent.c
new file mode 100644
index 000000000..29d1c3057
--- /dev/null
+++ b/vp9/common/generic/vp9_systemdependent.c
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+
+#include "vpx_ports/config.h"
+#include "vp9_rtcd.h"
+#include "vp9/common/vp9_subpixel.h"
+#include "vp9/common/vp9_loopfilter.h"
+#include "vp9/common/vp9_onyxc_int.h"
+
+extern void vp9_arch_x86_common_init(VP9_COMMON *ctx);
+extern void vp9_arch_arm_common_init(VP9_COMMON *ctx);
+
+void vp9_machine_specific_config(VP9_COMMON *ctx) {
+#if CONFIG_RUNTIME_CPU_DETECT
+ VP9_COMMON_RTCD *rtcd = &ctx->rtcd;
+
+#if CONFIG_POSTPROC || (CONFIG_VP9_ENCODER && CONFIG_INTERNAL_STATS)
+ rtcd->postproc.down = vp9_mbpost_proc_down_c;
+ rtcd->postproc.across = vp9_mbpost_proc_across_ip_c;
+ rtcd->postproc.downacross = vp9_post_proc_down_and_across_c;
+ rtcd->postproc.addnoise = vp9_plane_add_noise_c;
+ rtcd->postproc.blend_mb_inner = vp9_blend_mb_inner_c;
+ rtcd->postproc.blend_mb_outer = vp9_blend_mb_outer_c;
+ rtcd->postproc.blend_b = vp9_blend_b_c;
+#endif
+
+#endif
+
+#if ARCH_X86 || ARCH_X86_64
+ vp9_arch_x86_common_init(ctx);
+#endif
+
+#if ARCH_ARM
+ vp9_arch_arm_common_init(ctx);
+#endif
+
+ vp9_rtcd();
+}