OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license and patent |
| 5 * grant that can be found in the LICENSE file in the root of the source |
| 6 * tree. All contributing project authors may be found in the AUTHORS |
| 7 * file in the root of the source tree. |
| 8 */ |
| 9 |
| 10 #ifndef VP9_ENCODER_X86_VP9_QUANTIZE_X86_H_ |
| 11 #define VP9_ENCODER_X86_VP9_QUANTIZE_X86_H_ |
| 12 |
| 13 |
| 14 /* Note: |
| 15 * |
| 16 * This platform is commonly built for runtime CPU detection. If you modify |
| 17 * any of the function mappings present in this file, be sure to also update |
| 18 * them in the function pointer initialization code |
| 19 */ |
| 20 #if HAVE_MMX |
| 21 |
| 22 #endif /* HAVE_MMX */ |
| 23 |
| 24 |
| 25 #if HAVE_SSE2 |
| 26 extern prototype_quantize_block(vp9_regular_quantize_b_sse2); |
| 27 #if !CONFIG_RUNTIME_CPU_DETECT |
| 28 |
| 29 #undef vp9_quantize_quantb |
| 30 #define vp9_quantize_quantb vp9_regular_quantize_b_sse2 |
| 31 #endif /* !CONFIG_RUNTIME_CPU_DETECT */ |
| 32 |
| 33 #endif /* HAVE_SSE2 */ |
| 34 |
| 35 |
| 36 #if HAVE_SSE4_1 |
| 37 extern prototype_quantize_block(vp9_regular_quantize_b_sse4); |
| 38 |
| 39 #if !CONFIG_RUNTIME_CPU_DETECT |
| 40 |
| 41 #undef vp9_quantize_quantb |
| 42 #define vp9_quantize_quantb vp9_regular_quantize_b_sse4 |
| 43 |
| 44 #endif /* !CONFIG_RUNTIME_CPU_DETECT */ |
| 45 |
| 46 #endif /* HAVE_SSE4_1 */ |
| 47 |
| 48 #endif /* QUANTIZE_X86_H */ |
OLD | NEW |