Home | History | Annotate | Download | only in leapster
      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 
     25 /****************************************************************************
     26 *  Imports
     27 *****************************************************************************/
     28 extern int register_generic_scalers(void);
     29 extern int de_register_generic_scalers(void);
     30 
     31 /****************************************************************************
     32  *
     33  *  ROUTINE       : vp8_scale_machine_specific_config
     34  *
     35  *  INPUTS        : UINT32 Version : Codec version number.
     36  *
     37  *  OUTPUTS       : None.
     38  *
     39  *  RETURNS       : int
     40  *
     41  *  FUNCTION      : Checks for machine specifc features such as MMX support
     42  *                  sets appropriate flags and function pointers.
     43  *
     44  *  SPECIAL NOTES : None.
     45  *
     46  ****************************************************************************/
     47 int
     48 vp8_scale_machine_specific_config()
     49 {
     50     return register_generic_scalers();
     51 }
     52 
     53 /****************************************************************************
     54  *
     55  *  ROUTINE       : vp8_scale_machine_specific_config
     56  *
     57  *  INPUTS        : UINT32 Version : Codec version number.
     58  *
     59  *  OUTPUTS       : None.
     60  *
     61  *  RETURNS       : int
     62  *
     63  *  FUNCTION      : Resets the funtion pointers and deallocates memory.
     64  *
     65  *  SPECIAL NOTES : None.
     66  *
     67  ****************************************************************************/
     68 int
     69 scale_machine_specific_de_config()
     70 {
     71     return de_register_generic_scalers();
     72 }
     73