csystemdependent.c 1.31 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5
6
 *  that can be found in the LICENSE file in the root of the source
 *  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.
John Koleszar's avatar
John Koleszar committed
9
10
11
12
 */


#include "vpx_ports/config.h"
13
14
#include "vp9/encoder/variance.h"
#include "vp9/encoder/onyx_int.h"
John Koleszar's avatar
John Koleszar committed
15
16


17
void vp9_arch_x86_encoder_init(VP9_COMP *cpi);
18
void vp9_arch_arm_encoder_init(VP9_COMP *cpi);
John Koleszar's avatar
John Koleszar committed
19

20
21
22
23
24
25
void (*vp9_yv12_copy_partial_frame_ptr)(YV12_BUFFER_CONFIG *src_ybc,
                                        YV12_BUFFER_CONFIG *dst_ybc,
                                        int fraction);
extern void vp9_yv12_copy_partial_frame(YV12_BUFFER_CONFIG *src_ybc,
                                        YV12_BUFFER_CONFIG *dst_ybc,
                                        int fraction);
John Koleszar's avatar
John Koleszar committed
26

27
void vp9_cmachine_specific_config(VP9_COMP *cpi) {
John Koleszar's avatar
John Koleszar committed
28
#if CONFIG_RUNTIME_CPU_DETECT
John Koleszar's avatar
John Koleszar committed
29
  cpi->rtcd.common                    = &cpi->common.rtcd;
John Koleszar's avatar
John Koleszar committed
30
31
#endif

32
  vp9_yv12_copy_partial_frame_ptr = vp9_yv12_copy_partial_frame;
John Koleszar's avatar
John Koleszar committed
33
34

#if ARCH_X86 || ARCH_X86_64
35
  vp9_arch_x86_encoder_init(cpi);
John Koleszar's avatar
John Koleszar committed
36
37
#endif

38
#if ARCH_ARM
39
  vp9_arch_arm_encoder_init(cpi);
40
41
#endif

42

John Koleszar's avatar
John Koleszar committed
43
}