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 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 12 /**************************************************************************** 13 * 14 * Module Title : system_dependant.c 15 * 16 * Description : Miscellaneous system dependant functions 17 * 18 ****************************************************************************/ 19 20 /**************************************************************************** 21 * Header Files 22 ****************************************************************************/ 23 #include "vpx_scale/vpxscale.h" 24 #include "cpuidlib.h" 25 26 /**************************************************************************** 27 * Imports 28 *****************************************************************************/ 29 extern void register_generic_scalers(void); 30 extern void register_mmxscalers(void); 31 32 /**************************************************************************** 33 * 34 * ROUTINE : post_proc_machine_specific_config 35 * 36 * INPUTS : UINT32 Version : Codec version number. 37 * 38 * OUTPUTS : None. 39 * 40 * RETURNS : void 41 * 42 * FUNCTION : Checks for machine specifc features such as MMX support 43 * sets appropriate flags and function pointers. 44 * 45 * SPECIAL NOTES : None. 46 * 47 ****************************************************************************/ 48 void 49 vp8_scale_machine_specific_config(void) 50 { 51 int wmt_enabled = 1; 52 53 if (wmt_enabled) 54 { 55 register_mmxscalers(); 56 } 57 else 58 { 59 register_generic_scalers(); 60 } 61 } 62