Skip to content

Commit

Permalink
Consistent setup for round trip and inverse transform tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barrbrain committed Oct 23, 2023
1 parent 021183f commit 7f01f3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/asm/shared/transform/inverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ pub mod test {
for sub_h in 0..sub_h_iterations {
let mut src_storage = [T::zero(); 64 * 64];
let src = &mut src_storage[..tx_size.area()];
let mut dst = Plane::from_slice(&[T::zero(); 64 * 64], 64);
let mut dst = Plane::from_slice(
&[T::zero(); 64 * 64][..tx_size.area()],
tx_size.width(),
);
let mut res_storage: Aligned<[MaybeUninit<i16>; 64 * 64]> =
unsafe { Aligned::uninitialized() };
let res = &mut res_storage.data[..tx_size.area()];
Expand Down
3 changes: 1 addition & 2 deletions src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,8 @@ mod test {
let coeff_area: usize = av1_get_coded_tx_size(tx_size).area();
let mut src_storage = [T::cast_from(0); 64 * 64];
let src = &mut src_storage[..tx_size.area()];
// dynamic allocation: test
let mut dst = Plane::from_slice(
&vec![T::cast_from(0); tx_size.area()],
&[T::zero(); 64 * 64][..tx_size.area()],
tx_size.width(),
);
let mut res_storage = [0i16; 64 * 64];
Expand Down

0 comments on commit 7f01f3c

Please sign in to comment.