Home | History | Annotate | Download | only in generic
      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 #include "vpx_ports/config.h"
     13 #include "vpx_scale/vpxscale.h"
     14 
     15 
     16 void (*vp8_yv12_extend_frame_borders_ptr)(YV12_BUFFER_CONFIG *ybf);
     17 extern void vp8_yv12_extend_frame_borders(YV12_BUFFER_CONFIG *ybf);
     18 
     19 void (*vp8_yv12_copy_frame_yonly_ptr)(YV12_BUFFER_CONFIG *src_ybc, YV12_BUFFER_CONFIG *dst_ybc);
     20 extern void vp8_yv12_copy_frame_yonly(YV12_BUFFER_CONFIG *src_ybc, YV12_BUFFER_CONFIG *dst_ybc);
     21 
     22 void (*vp8_yv12_copy_frame_ptr)(YV12_BUFFER_CONFIG *src_ybc, YV12_BUFFER_CONFIG *dst_ybc);
     23 extern void vp8_yv12_copy_frame(YV12_BUFFER_CONFIG *src_ybc, YV12_BUFFER_CONFIG *dst_ybc);
     24 
     25 /****************************************************************************
     26 *  Imports
     27 *****************************************************************************/
     28 
     29 /****************************************************************************
     30  *
     31  *  ROUTINE       : vp8_scale_machine_specific_config
     32  *
     33  *  INPUTS        : UINT32 Version : Codec version number.
     34  *
     35  *  OUTPUTS       : None.
     36  *
     37  *  RETURNS       : void
     38  *
     39  *  FUNCTION      : Checks for machine specifc features such as MMX support
     40  *                  sets appropriate flags and function pointers.
     41  *
     42  *  SPECIAL NOTES : None.
     43  *
     44  ****************************************************************************/
     45 void vp8_scale_machine_specific_config()
     46 {
     47 #if CONFIG_SPATIAL_RESAMPLING
     48     vp8_horizontal_line_1_2_scale        = vp8cx_horizontal_line_1_2_scale_c;
     49     vp8_vertical_band_1_2_scale          = vp8cx_vertical_band_1_2_scale_c;
     50     vp8_last_vertical_band_1_2_scale      = vp8cx_last_vertical_band_1_2_scale_c;
     51     vp8_horizontal_line_3_5_scale        = vp8cx_horizontal_line_3_5_scale_c;
     52     vp8_vertical_band_3_5_scale          = vp8cx_vertical_band_3_5_scale_c;
     53     vp8_last_vertical_band_3_5_scale      = vp8cx_last_vertical_band_3_5_scale_c;
     54     vp8_horizontal_line_3_4_scale        = vp8cx_horizontal_line_3_4_scale_c;
     55     vp8_vertical_band_3_4_scale          = vp8cx_vertical_band_3_4_scale_c;
     56     vp8_last_vertical_band_3_4_scale      = vp8cx_last_vertical_band_3_4_scale_c;
     57     vp8_horizontal_line_2_3_scale        = vp8cx_horizontal_line_2_3_scale_c;
     58     vp8_vertical_band_2_3_scale          = vp8cx_vertical_band_2_3_scale_c;
     59     vp8_last_vertical_band_2_3_scale      = vp8cx_last_vertical_band_2_3_scale_c;
     60     vp8_horizontal_line_4_5_scale        = vp8cx_horizontal_line_4_5_scale_c;
     61     vp8_vertical_band_4_5_scale          = vp8cx_vertical_band_4_5_scale_c;
     62     vp8_last_vertical_band_4_5_scale      = vp8cx_last_vertical_band_4_5_scale_c;
     63 
     64 
     65     vp8_vertical_band_5_4_scale           = vp8cx_vertical_band_5_4_scale_c;
     66     vp8_vertical_band_5_3_scale           = vp8cx_vertical_band_5_3_scale_c;
     67     vp8_vertical_band_2_1_scale           = vp8cx_vertical_band_2_1_scale_c;
     68     vp8_vertical_band_2_1_scale_i         = vp8cx_vertical_band_2_1_scale_i_c;
     69     vp8_horizontal_line_2_1_scale         = vp8cx_horizontal_line_2_1_scale_c;
     70     vp8_horizontal_line_5_3_scale         = vp8cx_horizontal_line_5_3_scale_c;
     71     vp8_horizontal_line_5_4_scale         = vp8cx_horizontal_line_5_4_scale_c;
     72 #endif
     73 
     74     vp8_yv12_extend_frame_borders_ptr      = vp8_yv12_extend_frame_borders;
     75     vp8_yv12_copy_frame_yonly_ptr          = vp8_yv12_copy_frame_yonly;
     76     vp8_yv12_copy_frame_ptr           = vp8_yv12_copy_frame;
     77 
     78 }
     79