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 "vp8/decoder/dequantize.h"
14 : #include "vp8/decoder/onyxd_int.h"
15 :
16 : extern void vp8_arch_x86_decode_init(VP8D_COMP *pbi);
17 : extern void vp8_arch_arm_decode_init(VP8D_COMP *pbi);
18 :
19 0 : void vp8_dmachine_specific_config(VP8D_COMP *pbi)
20 : {
21 : /* Pure C: */
22 : #if CONFIG_RUNTIME_CPU_DETECT
23 0 : pbi->mb.rtcd = &pbi->common.rtcd;
24 0 : pbi->dequant.block = vp8_dequantize_b_c;
25 0 : pbi->dequant.idct_add = vp8_dequant_idct_add_c;
26 0 : pbi->dequant.dc_idct_add = vp8_dequant_dc_idct_add_c;
27 0 : pbi->dequant.dc_idct_add_y_block = vp8_dequant_dc_idct_add_y_block_c;
28 0 : pbi->dequant.idct_add_y_block = vp8_dequant_idct_add_y_block_c;
29 0 : pbi->dequant.idct_add_uv_block = vp8_dequant_idct_add_uv_block_c;
30 : #endif
31 :
32 : #if ARCH_X86 || ARCH_X86_64
33 0 : vp8_arch_x86_decode_init(pbi);
34 : #endif
35 :
36 : #if ARCH_ARM
37 : vp8_arch_arm_decode_init(pbi);
38 : #endif
39 0 : }
|