/// <inheritdoc cref="NvJpegAPI.Decode( /// IntPtr, /// IntPtr, /// ReadOnlySpan{byte}, /// NvJpegOutputFormat, /// in NvJpegImage, CudaStream)"/> public unsafe NvJpegStatus Decode( NvJpegState state, ReadOnlySpan <byte> imageBytes, NvJpegOutputFormat outputFormat, in NvJpegImage destination,
/// <summary> /// Performs single image decode. /// </summary> /// <param name="libHandle">The NvJPEG library handle</param> /// <param name="stateHandle">The NvJPEG state handle.</param> /// <param name="imageBytes">The JPEG image bytes.</param> /// <param name="outputFormat">The desired output format.</param> /// <param name="destination">The destination buffer.</param> /// <param name="stream">The accelerator stream.</param> /// <returns>The error code.</returns> public unsafe NvJpegStatus Decode( IntPtr libHandle, IntPtr stateHandle, ReadOnlySpan <byte> imageBytes, NvJpegOutputFormat outputFormat, in NvJpegImage destination,