_gifDecoder.Dispose();
_jpegDecoder.Dispose();
_pngDecoder.Dispose();
+ _webPDecoder.Dispose();
+ _heifDecoder.Dispose();
}
[Test]
}
[Test]
+ [Category("P1")]
+ [Description("Decode webp image using input buffer")]
+ [Property("SPEC", "Tizen.Multimedia.Util.ImageDecoder.DecodeAsync M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ [Property("COVPARAM", "byte[]")]
+ public async Task DecodeAsync_INPUTBUFFER_WEBP_CHECK_RETURN_VALUE()
+ {
+ var frame = (await _webPDecoder.DecodeAsync(File.ReadAllBytes(ImageUtilConstants.WebPPath))).FirstOrDefault();
+
+ Assert.That(frame.Size.Height, Is.Positive);
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Decode webp image using input path")]
+ [Property("SPEC", "Tizen.Multimedia.Util.ImageDecoder.DecodeAsync M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ [Property("COVPARAM", "string")]
+ public async Task DecodeAsync_INPUTPATH_WEBP_CHECK_RETURN_VALUE()
+ {
+ var frame = (await _webPDecoder.DecodeAsync(ImageUtilConstants.WebPPath)).FirstOrDefault();
+
+ Assert.That(frame.Size.Height, Is.Positive);
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Decode heif image using input buffer")]
+ [Property("SPEC", "Tizen.Multimedia.Util.ImageDecoder.DecodeAsync M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ [Property("COVPARAM", "byte[]")]
+ public async Task DecodeAsync_INPUTBUFFER_HEIF_CHECK_RETURN_VALUE()
+ {
+ var frame = (await _heifDecoder.DecodeAsync(File.ReadAllBytes(ImageUtilConstants.HeifPath))).FirstOrDefault();
+
+ Assert.That(frame.Size.Height, Is.Positive);
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Decode heif image using input path")]
+ [Property("SPEC", "Tizen.Multimedia.Util.ImageDecoder.DecodeAsync M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+ [Property("COVPARAM", "string")]
+ public async Task DecodeAsync_INPUTPATH_HEIF_CHECK_RETURN_VALUE()
+ {
+ var frame = (await _heifDecoder.DecodeAsync(ImageUtilConstants.HeifPath)).FirstOrDefault();
+
+ Assert.That(frame.Size.Height, Is.Positive);
+ }
+
+ [Test]
[Category("P2")]
[Description("Check if it throws argument exception for setting color space with an invalid color space value")]
[Property("SPEC", "Tizen.Multimedia.Util.ImageDecoder.SetColorSpace M")]