michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: michael@0: #ifndef VP9_COMMON_X86_VP9_POSTPROC_X86_H_ michael@0: #define VP9_COMMON_X86_VP9_POSTPROC_X86_H_ michael@0: michael@0: /* Note: michael@0: * michael@0: * This platform is commonly built for runtime CPU detection. If you modify michael@0: * any of the function mappings present in this file, be sure to also update michael@0: * them in the function pointer initialization code michael@0: */ michael@0: michael@0: #if HAVE_MMX michael@0: extern prototype_postproc_inplace(vp9_mbpost_proc_down_mmx); michael@0: extern prototype_postproc(vp9_post_proc_down_and_across_mmx); michael@0: extern prototype_postproc_addnoise(vp9_plane_add_noise_mmx); michael@0: michael@0: #if !CONFIG_RUNTIME_CPU_DETECT michael@0: #undef vp9_postproc_down michael@0: #define vp9_postproc_down vp9_mbpost_proc_down_mmx michael@0: michael@0: #undef vp9_postproc_downacross michael@0: #define vp9_postproc_downacross vp9_post_proc_down_and_across_mmx michael@0: michael@0: #undef vp9_postproc_addnoise michael@0: #define vp9_postproc_addnoise vp9_plane_add_noise_mmx michael@0: michael@0: #endif michael@0: #endif michael@0: michael@0: michael@0: #if HAVE_SSE2 michael@0: extern prototype_postproc_inplace(vp9_mbpost_proc_down_xmm); michael@0: extern prototype_postproc_inplace(vp9_mbpost_proc_across_ip_xmm); michael@0: extern prototype_postproc(vp9_post_proc_down_and_across_xmm); michael@0: extern prototype_postproc_addnoise(vp9_plane_add_noise_wmt); michael@0: michael@0: #if !CONFIG_RUNTIME_CPU_DETECT michael@0: #undef vp9_postproc_down michael@0: #define vp9_postproc_down vp9_mbpost_proc_down_xmm michael@0: michael@0: #undef vp9_postproc_across michael@0: #define vp9_postproc_across vp9_mbpost_proc_across_ip_xmm michael@0: michael@0: #undef vp9_postproc_downacross michael@0: #define vp9_postproc_downacross vp9_post_proc_down_and_across_xmm michael@0: michael@0: #undef vp9_postproc_addnoise michael@0: #define vp9_postproc_addnoise vp9_plane_add_noise_wmt michael@0: michael@0: michael@0: #endif michael@0: #endif michael@0: michael@0: #endif // VP9_COMMON_X86_VP9_POSTPROC_X86_H_