Commit 44f24b53 authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato
Browse files

Move the decode tests in their own module

parent ac0aeff7
......@@ -180,12 +180,6 @@ pub mod version {
#[cfg(all(test, any(feature="decode_test", feature="decode_test_dav1d")))]
mod test_encode_decode;
#[cfg(all(test, feature="decode_test"))]
mod test_encode_decode_aom;
#[cfg(all(test, feature="decode_test_dav1d"))]
mod test_encode_decode_dav1d;
#[cfg(feature="bench")]
pub mod bench {
pub mod api { pub use crate::api::*; }
......
......@@ -14,13 +14,19 @@ use rand::{Rng, SeedableRng};
use rand_chacha::ChaChaRng;
use std::sync::Arc;
use crate::util::Pixel;
#[cfg(feature="decode_test")]
use crate::test_encode_decode_aom::AomDecoder;
#[cfg(feature="decode_test_dav1d")]
use crate::test_encode_decode_dav1d::Dav1dDecoder;
use std::collections::VecDeque;
use interpolate_name::interpolate_test;
#[cfg(all(test, feature="decode_test"))]
mod aom;
#[cfg(all(test, feature="decode_test_dav1d"))]
mod dav1d;
#[cfg(feature="decode_test")]
use aom::AomDecoder;
#[cfg(feature="decode_test_dav1d")]
use dav1d::Dav1dDecoder;
fn fill_frame<T: Pixel>(ra: &mut ChaChaRng, frame: &mut Frame<T>) {
for plane in frame.planes.iter_mut() {
let stride = plane.cfg.stride;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment