From 560c9c8d9859afb2875c10d54c743a2da9d4c2f0 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Wed, 6 May 2020 23:39:45 +0200 Subject: [PATCH] Make tests faster --- FFMpegCore.Test/VideoTest.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/FFMpegCore.Test/VideoTest.cs b/FFMpegCore.Test/VideoTest.cs index 0f4fc7f..e45d59c 100644 --- a/FFMpegCore.Test/VideoTest.cs +++ b/FFMpegCore.Test/VideoTest.cs @@ -219,13 +219,6 @@ public void Convert(VideoType type, ArgumentContainer container) } } - public void ConvertFromPipe(VideoType type, ArgumentContainer container) - { - ConvertFromPipe(type, container, PixelFormat.Format24bppRgb); - ConvertFromPipe(type, container, PixelFormat.Format32bppArgb); - ConvertFromPipe(type, container, PixelFormat.Format48bppRgb); - } - public void ConvertFromPipe(VideoType type, ArgumentContainer container, PixelFormat fmt) { var output = Input.OutputLocation(type); @@ -294,7 +287,7 @@ public void Video_ToMP4_Args() public void Video_ToMP4_Args_Pipe() { var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) }; - ConvertFromPipe(VideoType.Mp4, container); + ConvertFromPipe(VideoType.Mp4, container, PixelFormat.Format24bppRgb); } [TestMethod] @@ -395,7 +388,7 @@ public void Video_ToTS_Args_Pipe() { new ForceFormatArgument(VideoCodec.MpegTs) }; - ConvertFromPipe(VideoType.Ts, container); + ConvertFromPipe(VideoType.Ts, container, PixelFormat.Format32bppArgb); } [TestMethod] @@ -423,7 +416,7 @@ public void Video_ToOGV_Resize_Args_Pipe() new ScaleArgument(VideoSize.Ed), new VideoCodecArgument(VideoCodec.LibTheora) }; - ConvertFromPipe(VideoType.Ogv, container); + ConvertFromPipe(VideoType.Ogv, container, PixelFormat.Format48bppRgb); } [TestMethod] @@ -448,10 +441,9 @@ public void Video_ToMP4_Resize_Args_Pipe() { var container = new ArgumentContainer { - new ScaleArgument(VideoSize.Ld), new VideoCodecArgument(VideoCodec.LibX264) }; - ConvertFromPipe(VideoType.Mp4, container); + ConvertFromPipe(VideoType.Mp4, container, PixelFormat.Format24bppRgb); } [TestMethod]