Class TurboJpegDecoder
A IJpegDecoder implementation using the TurboJPEG library. Provides methods for decoding JPEG images.
Inheritance
System.Object
TurboJpegDecoder
Namespace: MarcusW.VncClient.Protocol.Implementation.Services.Communication
Assembly: MarcusW.VncClient.dll
Syntax
public sealed class TurboJpegDecoder : object, IJpegDecoder, IDisposable
Properties
| Improve this Doc View SourceIsAvailable
Gets whether this decoder is available on the current system.
Declaration
public static bool IsAvailable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDecodeJpegTo32Bit(Span<Byte>, Span<Byte>, Int32, Int32, PixelFormat, out PixelFormat, CancellationToken)
Declaration
public void DecodeJpegTo32Bit(Span<byte> jpegBuffer, Span<byte> pixelsBuffer, int expectedWidth, int expectedHeight, PixelFormat preferredPixelFormat, out PixelFormat usedPixelFormat, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Span<System.Byte> | jpegBuffer | |
Span<System.Byte> | pixelsBuffer | |
System.Int32 | expectedWidth | |
System.Int32 | expectedHeight | |
PixelFormat | preferredPixelFormat | |
PixelFormat | usedPixelFormat | |
CancellationToken | cancellationToken |
Dispose()
Declaration
public void Dispose()
Finalize()
Declaration
protected void Finalize()
Implements
IDisposable