ref: f090b6b47b66b556a0cb8ed8fa52e2fef8dc0b76
dir: /vp9/common/generic/systemdependent.c/
/* * 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/subpixel.h" #include "vp9/common/loopfilter.h" #include "vp9/common/idct.h" #include "vp9/common/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; rtcd->idct.idct1 = vp9_short_idct4x4llm_1_c; rtcd->idct.idct16 = vp9_short_idct4x4llm_c; rtcd->idct.idct1_scalar_add = vp9_dc_only_idct_add_c; rtcd->idct.iwalsh1 = vp9_short_inv_walsh4x4_1_c; rtcd->idct.iwalsh16 = vp9_short_inv_walsh4x4_c; rtcd->idct.idct8 = vp9_short_idct8x8_c; rtcd->idct.idct10_8 = vp9_short_idct10_8x8_c; rtcd->idct.idct1_scalar_add_8x8 = vp9_dc_only_idct_add_8x8_c; rtcd->idct.ihaar2 = vp9_short_ihaar2x2_c; rtcd->idct.idct16x16 = vp9_short_idct16x16_c; rtcd->idct.idct10_16x16 = vp9_short_idct10_16x16_c; #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(); }