57b16a1a35f0ac3d95598972b3b56cde44426f6f
[profile/ivi/libvpx.git] / vpx_scale / arm / scalesystemdependent.c
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_config.h"
13 #include "vpx_ports/arm.h"
14 #include "vpx_scale/vpxscale.h"
15 #include "vpx_scale/yv12extend.h"
16
17 void vp8_arch_arm_vpx_scale_init()
18 {
19 #if HAVE_NEON
20 #if CONFIG_RUNTIME_CPU_DETECT
21     int flags = arm_cpu_caps();
22     if (flags & HAS_NEON)
23 #endif
24     {
25         vp8_yv12_extend_frame_borders_ptr = vp8_yv12_extend_frame_borders_neon;
26         vp8_yv12_copy_y_ptr               = vp8_yv12_copy_y_neon;
27         vp8_yv12_copy_frame_ptr           = vp8_yv12_copy_frame_neon;
28     }
29 #endif
30 }