diff --git a/crates/ec-h264/tests/it/mbaff_x264.rs b/crates/ec-h264/tests/it/mbaff_x264.rs index 9084d4fd..1a3e217f 100644 --- a/crates/ec-h264/tests/it/mbaff_x264.rs +++ b/crates/ec-h264/tests/it/mbaff_x264.rs @@ -171,9 +171,8 @@ const fn case( } /// Small pictures: every coding tool once, quick enough for every run. -#[test] -fn x264_mbaff_small() { - sweep(&[ +fn mbaff_small_cases() -> Vec { + vec![ case("i-cabac-tff", "testsrc2", "192x128", 3, "tff=1:keyint=1"), case("i-cabac-bff", "testsrc2", "192x128", 3, "bff=1:keyint=1"), case( @@ -296,12 +295,11 @@ fn x264_mbaff_small() { 8, "tff=1:bframes=3:subme=9:trellis=2:me=umh", ), - ]); + ] } /// High 10 MBAFF. -#[test] -fn x264_mbaff_high10() { +fn mbaff_high10_cases() -> Vec { let t = |tag, params| Case { tag, src: "testsrc2", @@ -310,19 +308,18 @@ fn x264_mbaff_high10() { ten_bit: true, params, }; - sweep(&[ + vec![ t("h10-i-cabac", "tff=1:keyint=1"), t("h10-i-cavlc", "cabac=0:bff=1:keyint=1"), t("h10-b-cabac", "tff=1:bframes=3"), t("h10-b-cavlc", "cabac=0:bff=1:bframes=3"), t("h10-weightp", "tff=1:bframes=2:weightp=2:weightb=1"), - ]); + ] } /// 720x576 (the broadcast interlaced size). -#[test] -fn x264_mbaff_sd() { - sweep(&[ +fn mbaff_sd_cases() -> Vec { + vec![ case("sd-cabac-tff", "testsrc2", "720x576", 6, "tff=1:bframes=3"), case( "sd-cabac-bff", @@ -352,13 +349,12 @@ fn x264_mbaff_sd() { 6, "tff=1:bframes=2:weightp=2:weightb=1", ), - ]); + ] } /// 1920x1080. -#[test] -fn x264_mbaff_hd() { - sweep(&[ +fn mbaff_hd_cases() -> Vec { + vec![ case( "hd-cabac-tff", "testsrc2", @@ -401,5 +397,15 @@ fn x264_mbaff_hd() { 5, "bff=1:bframes=2:weightp=2:weightb=1", ), - ]); + ] +} + +#[test] +fn x264_mbaff() { + let mut cases = Vec::new(); + cases.extend(mbaff_small_cases()); + cases.extend(mbaff_high10_cases()); + cases.extend(mbaff_sd_cases()); + cases.extend(mbaff_hd_cases()); + sweep(&cases); }