Define RDCOST only once
[libvpx.git] / vpx_scale / generic / scalesystemdependent.c
blob926feb7cd14fbb4a3f603c8f02b06612283fdc16
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
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 */
12 #include "vpx_ports/config.h"
13 #include "vpx_scale/vpxscale.h"
16 void (*vp8_yv12_extend_frame_borders_ptr)(YV12_BUFFER_CONFIG *ybf);
17 extern void vp8_yv12_extend_frame_borders(YV12_BUFFER_CONFIG *ybf);
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);
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);
25 /****************************************************************************
26 * Imports
27 *****************************************************************************/
29 /****************************************************************************
31 * ROUTINE : vp8_scale_machine_specific_config
33 * INPUTS : UINT32 Version : Codec version number.
35 * OUTPUTS : None.
37 * RETURNS : void
39 * FUNCTION : Checks for machine specifc features such as MMX support
40 * sets appropriate flags and function pointers.
42 * SPECIAL NOTES : None.
44 ****************************************************************************/
45 void vp8_scale_machine_specific_config()
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;
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
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;