using SkiaSharp; namespace Jellyfin.Drawing.Skia { /// /// Class containing helper methods for working with SkiaSharp. /// public static class SkiaHelper { /// /// Ensures the result is a success /// by throwing an exception when that's not the case. /// /// The result returned by Skia. public static void EnsureSuccess(SKCodecResult result) { if (result != SKCodecResult.Success) { throw new SkiaCodecException(result); } } } }