internal virtual void Initialize(ImageDecoderHandle handle) { if (_colorSpace.HasValue) { SetColorspace(Handle, _colorSpace.Value.ToImageColorSpace()).ThrowIfFailed("Failed to set color space"); } }
internal static extern ImageUtilError DecodeRun(ImageDecoderHandle handle, out int width, out int height, out ulong size);
internal static extern ImageUtilError DecodeRunAsync(ImageDecoderHandle handle, DecodeCompletedCallback callback, IntPtr userData = default(IntPtr));
internal static extern ImageUtilError SetJpegDownscale(ImageDecoderHandle handle, JpegDownscale downscale);
internal static extern ImageUtilError SetColorspace(ImageDecoderHandle handle, ImageColorSpace colorspace);
internal static extern ImageUtilError SetOutputBuffer(ImageDecoderHandle handle, out IntPtr dstBuffer);
internal static extern ImageUtilError SetInputBuffer(ImageDecoderHandle handle, byte[] srcBuffer, ulong srcSize);
internal static extern ImageUtilError SetInputPath(ImageDecoderHandle handle, IntPtr path);
public static extern ImageUtilError Create(out ImageDecoderHandle handle);
internal override void Initialize(ImageDecoderHandle handle) { base.Initialize(handle); SetJpegDownscale(handle, Downscale).ThrowIfFailed("Failed to set downscale for decoding"); }
internal static extern ImageUtilError DecodeRun(ImageDecoderHandle handle, out IntPtr imageHandle);