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