Initial WebM release
[platform/upstream/libvpx.git] / vp8 / decoder / arm / dsystemdependent.c
1 /*
2  *  Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license and patent
5  *  grant that can be found in the LICENSE file in the root of the source
6  *  tree. All contributing project authors may be found in the AUTHORS
7  *  file in the root of the source tree.
8  */
9
10
11 #include "vpx_ports/config.h"
12 #include "blockd.h"
13 #include "pragmas.h"
14 #include "postproc.h"
15 #include "dboolhuff.h"
16 #include "dequantize.h"
17 #include "onyxd_int.h"
18
19 void vp8_dmachine_specific_config(VP8D_COMP *pbi)
20 {
21 #if CONFIG_RUNTIME_CPU_DETECT
22     pbi->mb.rtcd         = &pbi->common.rtcd;
23 #if HAVE_ARMV7
24     pbi->dequant.block   = vp8_dequantize_b_neon;
25     pbi->dequant.idct    = vp8_dequant_idct_neon;
26     pbi->dequant.idct_dc = vp8_dequant_dc_idct_neon;
27     pbi->dboolhuff.start = vp8dx_start_decode_c;
28     pbi->dboolhuff.stop  = vp8dx_stop_decode_c;
29     pbi->dboolhuff.fill  = vp8dx_bool_decoder_fill_c;
30     pbi->dboolhuff.debool = vp8dx_decode_bool_c;
31     pbi->dboolhuff.devalue = vp8dx_decode_value_c;
32
33 #elif HAVE_ARMV6
34     pbi->dequant.block   = vp8_dequantize_b_v6;
35     pbi->dequant.idct    = vp8_dequant_idct_v6;
36     pbi->dequant.idct_dc = vp8_dequant_dc_idct_v6;
37     pbi->dboolhuff.start = vp8dx_start_decode_c;
38     pbi->dboolhuff.stop  = vp8dx_stop_decode_c;
39     pbi->dboolhuff.fill  = vp8dx_bool_decoder_fill_c;
40     pbi->dboolhuff.debool = vp8dx_decode_bool_c;
41     pbi->dboolhuff.devalue = vp8dx_decode_value_c;
42 #endif
43 #endif
44 }