@@ -18,12 +18,14 @@ use crate::include::common::intops::iclip;
18
18
use crate :: include:: dav1d:: picture:: {
19
19
FFISafeRav1dPictureDataComponentOffset , Rav1dPictureDataComponentOffset ,
20
20
} ;
21
+ #[ cfg( not( all( feature = "asm" , target_feature = "neon" ) ) ) ]
22
+ use crate :: itx_1d:: rav1d_inv_wht4_1d_c;
21
23
use crate :: itx_1d:: {
22
24
rav1d_inv_adst16_1d_c, rav1d_inv_adst4_1d_c, rav1d_inv_adst8_1d_c, rav1d_inv_dct16_1d_c,
23
25
rav1d_inv_dct32_1d_c, rav1d_inv_dct4_1d_c, rav1d_inv_dct64_1d_c, rav1d_inv_dct8_1d_c,
24
26
rav1d_inv_flipadst16_1d_c, rav1d_inv_flipadst4_1d_c, rav1d_inv_flipadst8_1d_c,
25
27
rav1d_inv_identity16_1d_c, rav1d_inv_identity32_1d_c, rav1d_inv_identity4_1d_c,
26
- rav1d_inv_identity8_1d_c, rav1d_inv_wht4_1d_c ,
28
+ rav1d_inv_identity8_1d_c,
27
29
} ;
28
30
use crate :: levels:: {
29
31
TxfmSize , TxfmType , ADST_ADST , ADST_DCT , ADST_FLIPADST , DCT_ADST , DCT_DCT , DCT_FLIPADST ,
@@ -187,7 +189,16 @@ fn inv_txfm_add_rust<const W: usize, const H: usize, const TYPE: TxfmType, BD: B
187
189
H_FLIPADST => ( Identity , FlipAdst ) ,
188
190
V_ADST => ( Adst , Identity ) ,
189
191
V_FLIPADST => ( FlipAdst , Identity ) ,
190
- WHT_WHT if ( W , H ) == ( 4 , 4 ) => return inv_txfm_add_wht_wht_4x4_rust ( dst, coeff, bd) ,
192
+
193
+ WHT_WHT if ( W , H ) == ( 4 , 4 ) => {
194
+ cfg_if ! {
195
+ if #[ cfg( not( all( feature = "asm" , target_feature = "neon" ) ) ) ] {
196
+ return inv_txfm_add_wht_wht_4x4_rust( dst, coeff, bd)
197
+ } else {
198
+ unreachable!( )
199
+ }
200
+ }
201
+ }
191
202
_ => unreachable ! ( ) ,
192
203
} ;
193
204
@@ -288,6 +299,7 @@ pub struct Rav1dInvTxfmDSPContext {
288
299
pub itxfm_add : [ [ itxfm:: Fn ; N_TX_TYPES_PLUS_LL ] ; TxfmSize :: COUNT ] ,
289
300
}
290
301
302
+ #[ cfg( not( all( feature = "asm" , target_feature = "neon" ) ) ) ]
291
303
fn inv_txfm_add_wht_wht_4x4_rust < BD : BitDepth > (
292
304
dst : Rav1dPictureDataComponentOffset ,
293
305
coeff : & mut [ BD :: Coef ] ,
0 commit comments