/*
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */


#include "vpx_config.h"
#include "vp8/common/dequantize.h"
#include "vp8/decoder/onyxd_int.h"

extern void vp8_arch_x86_decode_init(VP8D_COMP *pbi);
extern void vp8_arch_arm_decode_init(VP8D_COMP *pbi);
extern void vp8_arch_opencl_decode_init(VP8D_COMP *pbi);

void vp8_dmachine_specific_config(VP8D_COMP *pbi)
{
    /* Pure C: */
#if CONFIG_RUNTIME_CPU_DETECT
    pbi->mb.rtcd                               = &pbi->common.rtcd;
#endif

#if ARCH_X86 || ARCH_X86_64
    vp8_arch_x86_decode_init(pbi);
#endif

#if ARCH_ARM
    vp8_arch_arm_decode_init(pbi);
#endif

#if CONFIG_OPENCL && (ENABLE_CL_IDCT_DEQUANT)
    vp8_arch_opencl_decode_init(pbi);
#endif
}
