Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license |
michael@0 | 5 | * that can be found in the LICENSE file in the root of the source |
michael@0 | 6 | * tree. An additional intellectual property rights grant can be found |
michael@0 | 7 | * in the file PATENTS. All contributing project authors may |
michael@0 | 8 | * be found in the AUTHORS file in the root of the source tree. |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | |
michael@0 | 12 | #ifndef VP9_COMMON_X86_VP9_POSTPROC_X86_H_ |
michael@0 | 13 | #define VP9_COMMON_X86_VP9_POSTPROC_X86_H_ |
michael@0 | 14 | |
michael@0 | 15 | /* Note: |
michael@0 | 16 | * |
michael@0 | 17 | * This platform is commonly built for runtime CPU detection. If you modify |
michael@0 | 18 | * any of the function mappings present in this file, be sure to also update |
michael@0 | 19 | * them in the function pointer initialization code |
michael@0 | 20 | */ |
michael@0 | 21 | |
michael@0 | 22 | #if HAVE_MMX |
michael@0 | 23 | extern prototype_postproc_inplace(vp9_mbpost_proc_down_mmx); |
michael@0 | 24 | extern prototype_postproc(vp9_post_proc_down_and_across_mmx); |
michael@0 | 25 | extern prototype_postproc_addnoise(vp9_plane_add_noise_mmx); |
michael@0 | 26 | |
michael@0 | 27 | #if !CONFIG_RUNTIME_CPU_DETECT |
michael@0 | 28 | #undef vp9_postproc_down |
michael@0 | 29 | #define vp9_postproc_down vp9_mbpost_proc_down_mmx |
michael@0 | 30 | |
michael@0 | 31 | #undef vp9_postproc_downacross |
michael@0 | 32 | #define vp9_postproc_downacross vp9_post_proc_down_and_across_mmx |
michael@0 | 33 | |
michael@0 | 34 | #undef vp9_postproc_addnoise |
michael@0 | 35 | #define vp9_postproc_addnoise vp9_plane_add_noise_mmx |
michael@0 | 36 | |
michael@0 | 37 | #endif |
michael@0 | 38 | #endif |
michael@0 | 39 | |
michael@0 | 40 | |
michael@0 | 41 | #if HAVE_SSE2 |
michael@0 | 42 | extern prototype_postproc_inplace(vp9_mbpost_proc_down_xmm); |
michael@0 | 43 | extern prototype_postproc_inplace(vp9_mbpost_proc_across_ip_xmm); |
michael@0 | 44 | extern prototype_postproc(vp9_post_proc_down_and_across_xmm); |
michael@0 | 45 | extern prototype_postproc_addnoise(vp9_plane_add_noise_wmt); |
michael@0 | 46 | |
michael@0 | 47 | #if !CONFIG_RUNTIME_CPU_DETECT |
michael@0 | 48 | #undef vp9_postproc_down |
michael@0 | 49 | #define vp9_postproc_down vp9_mbpost_proc_down_xmm |
michael@0 | 50 | |
michael@0 | 51 | #undef vp9_postproc_across |
michael@0 | 52 | #define vp9_postproc_across vp9_mbpost_proc_across_ip_xmm |
michael@0 | 53 | |
michael@0 | 54 | #undef vp9_postproc_downacross |
michael@0 | 55 | #define vp9_postproc_downacross vp9_post_proc_down_and_across_xmm |
michael@0 | 56 | |
michael@0 | 57 | #undef vp9_postproc_addnoise |
michael@0 | 58 | #define vp9_postproc_addnoise vp9_plane_add_noise_wmt |
michael@0 | 59 | |
michael@0 | 60 | |
michael@0 | 61 | #endif |
michael@0 | 62 | #endif |
michael@0 | 63 | |
michael@0 | 64 | #endif // VP9_COMMON_X86_VP9_POSTPROC_X86_H_ |