2 * Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
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.
12 #include "vpx_ports/config.h"
16 #include "loopfilter.h"
19 #include "onyxc_int.h"
21 void (*vp8_build_intra_predictors_mby_ptr)(MACROBLOCKD *x);
22 extern void vp8_build_intra_predictors_mby(MACROBLOCKD *x);
23 extern void vp8_build_intra_predictors_mby_neon(MACROBLOCKD *x);
25 void (*vp8_build_intra_predictors_mby_s_ptr)(MACROBLOCKD *x);
26 extern void vp8_build_intra_predictors_mby_s(MACROBLOCKD *x);
27 extern void vp8_build_intra_predictors_mby_s_neon(MACROBLOCKD *x);
29 void vp8_machine_specific_config(VP8_COMMON *ctx)
31 #if CONFIG_RUNTIME_CPU_DETECT
32 VP8_COMMON_RTCD *rtcd = &ctx->rtcd;
35 rtcd->subpix.sixtap16x16 = vp8_sixtap_predict16x16_neon;
36 rtcd->subpix.sixtap8x8 = vp8_sixtap_predict8x8_neon;
37 rtcd->subpix.sixtap8x4 = vp8_sixtap_predict8x4_neon;
38 rtcd->subpix.sixtap4x4 = vp8_sixtap_predict_neon;
39 rtcd->subpix.bilinear16x16 = vp8_bilinear_predict16x16_neon;
40 rtcd->subpix.bilinear8x8 = vp8_bilinear_predict8x8_neon;
41 rtcd->subpix.bilinear8x4 = vp8_bilinear_predict8x4_neon;
42 rtcd->subpix.bilinear4x4 = vp8_bilinear_predict4x4_neon;
44 rtcd->idct.idct1 = vp8_short_idct4x4llm_1_neon;
45 rtcd->idct.idct16 = vp8_short_idct4x4llm_neon;
46 rtcd->idct.iwalsh1 = vp8_short_inv_walsh4x4_1_neon;
47 rtcd->idct.iwalsh16 = vp8_short_inv_walsh4x4_neon;
49 rtcd->loopfilter.normal_mb_v = vp8_loop_filter_mbv_neon;
50 rtcd->loopfilter.normal_b_v = vp8_loop_filter_bv_neon;
51 rtcd->loopfilter.normal_mb_h = vp8_loop_filter_mbh_neon;
52 rtcd->loopfilter.normal_b_h = vp8_loop_filter_bh_neon;
53 rtcd->loopfilter.simple_mb_v = vp8_loop_filter_mbvs_neon;
54 rtcd->loopfilter.simple_b_v = vp8_loop_filter_bvs_neon;
55 rtcd->loopfilter.simple_mb_h = vp8_loop_filter_mbhs_neon;
56 rtcd->loopfilter.simple_b_h = vp8_loop_filter_bhs_neon;
58 rtcd->recon.copy16x16 = vp8_copy_mem16x16_neon;
59 rtcd->recon.copy8x8 = vp8_copy_mem8x8_neon;
60 rtcd->recon.copy8x4 = vp8_copy_mem8x4_neon;
61 rtcd->recon.recon = vp8_recon_b_neon;
62 rtcd->recon.recon2 = vp8_recon2b_neon;
63 rtcd->recon.recon4 = vp8_recon4b_neon;
66 rtcd->subpix.sixtap16x16 = vp8_sixtap_predict16x16_armv6;
67 rtcd->subpix.sixtap8x8 = vp8_sixtap_predict8x8_armv6;
68 rtcd->subpix.sixtap8x4 = vp8_sixtap_predict8x4_armv6;
69 rtcd->subpix.sixtap4x4 = vp8_sixtap_predict_armv6;
70 rtcd->subpix.bilinear16x16 = vp8_bilinear_predict16x16_armv6;
71 rtcd->subpix.bilinear8x8 = vp8_bilinear_predict8x8_armv6;
72 rtcd->subpix.bilinear8x4 = vp8_bilinear_predict8x4_armv6;
73 rtcd->subpix.bilinear4x4 = vp8_bilinear_predict4x4_armv6;
75 rtcd->idct.idct1 = vp8_short_idct4x4llm_1_v6;
76 rtcd->idct.idct16 = vp8_short_idct4x4llm_v6_dual;
77 rtcd->idct.iwalsh1 = vp8_short_inv_walsh4x4_1_armv6;
78 rtcd->idct.iwalsh16 = vp8_short_inv_walsh4x4_armv6;
80 rtcd->loopfilter.normal_mb_v = vp8_loop_filter_mbv_armv6;
81 rtcd->loopfilter.normal_b_v = vp8_loop_filter_bv_armv6;
82 rtcd->loopfilter.normal_mb_h = vp8_loop_filter_mbh_armv6;
83 rtcd->loopfilter.normal_b_h = vp8_loop_filter_bh_armv6;
84 rtcd->loopfilter.simple_mb_v = vp8_loop_filter_mbvs_armv6;
85 rtcd->loopfilter.simple_b_v = vp8_loop_filter_bvs_armv6;
86 rtcd->loopfilter.simple_mb_h = vp8_loop_filter_mbhs_armv6;
87 rtcd->loopfilter.simple_b_h = vp8_loop_filter_bhs_armv6;
89 rtcd->recon.copy16x16 = vp8_copy_mem16x16_v6;
90 rtcd->recon.copy8x8 = vp8_copy_mem8x8_v6;
91 rtcd->recon.copy8x4 = vp8_copy_mem8x4_v6;
92 rtcd->recon.recon = vp8_recon_b_armv6;
93 rtcd->recon.recon2 = vp8_recon2b_armv6;
94 rtcd->recon.recon4 = vp8_recon4b_armv6;
97 rtcd->idct.idct1 = vp8_short_idct4x4llm_1_c;
98 rtcd->idct.idct16 = vp8_short_idct4x4llm_c;
99 rtcd->idct.idct1_scalar = vp8_dc_only_idct_c;
100 rtcd->idct.iwalsh1 = vp8_short_inv_walsh4x4_1_c;
101 rtcd->idct.iwalsh16 = vp8_short_inv_walsh4x4_c;
103 rtcd->recon.copy16x16 = vp8_copy_mem16x16_c;
104 rtcd->recon.copy8x8 = vp8_copy_mem8x8_c;
105 rtcd->recon.copy8x4 = vp8_copy_mem8x4_c;
106 rtcd->recon.recon = vp8_recon_b_c;
107 rtcd->recon.recon2 = vp8_recon2b_c;
108 rtcd->recon.recon4 = vp8_recon4b_c;
110 rtcd->subpix.sixtap16x16 = vp8_sixtap_predict16x16_c;
111 rtcd->subpix.sixtap8x8 = vp8_sixtap_predict8x8_c;
112 rtcd->subpix.sixtap8x4 = vp8_sixtap_predict8x4_c;
113 rtcd->subpix.sixtap4x4 = vp8_sixtap_predict_c;
114 rtcd->subpix.bilinear16x16 = vp8_bilinear_predict16x16_c;
115 rtcd->subpix.bilinear8x8 = vp8_bilinear_predict8x8_c;
116 rtcd->subpix.bilinear8x4 = vp8_bilinear_predict8x4_c;
117 rtcd->subpix.bilinear4x4 = vp8_bilinear_predict4x4_c;
119 rtcd->loopfilter.normal_mb_v = vp8_loop_filter_mbv_c;
120 rtcd->loopfilter.normal_b_v = vp8_loop_filter_bv_c;
121 rtcd->loopfilter.normal_mb_h = vp8_loop_filter_mbh_c;
122 rtcd->loopfilter.normal_b_h = vp8_loop_filter_bh_c;
123 rtcd->loopfilter.simple_mb_v = vp8_loop_filter_mbvs_c;
124 rtcd->loopfilter.simple_b_v = vp8_loop_filter_bvs_c;
125 rtcd->loopfilter.simple_mb_h = vp8_loop_filter_mbhs_c;
126 rtcd->loopfilter.simple_b_h = vp8_loop_filter_bhs_c;
129 #if CONFIG_POSTPROC || (CONFIG_VP8_ENCODER && CONFIG_PSNR)
130 rtcd->postproc.down = vp8_mbpost_proc_down_c;
131 rtcd->postproc.across = vp8_mbpost_proc_across_ip_c;
132 rtcd->postproc.downacross = vp8_post_proc_down_and_across_c;
133 rtcd->postproc.addnoise = vp8_plane_add_noise_c;
138 vp8_build_intra_predictors_mby_ptr = vp8_build_intra_predictors_mby_neon;
139 vp8_build_intra_predictors_mby_s_ptr = vp8_build_intra_predictors_mby_s_neon;
141 vp8_build_intra_predictors_mby_ptr = vp8_build_intra_predictors_mby;
142 vp8_build_intra_predictors_mby_s_ptr = vp8_build_intra_predictors_mby_s;
144 vp8_build_intra_predictors_mby_ptr = vp8_build_intra_predictors_mby;
145 vp8_build_intra_predictors_mby_s_ptr = vp8_build_intra_predictors_mby_s;