Show / Hide Table of Contents

Interface IJpegDecoder

Provides methods for decoding JPEG images.

Namespace: MarcusW.VncClient.Protocol.Services
Assembly: MarcusW.VncClient.dll
Syntax
public interface IJpegDecoder : IDisposable
Remarks

It's not necessary that implementations of this interface are thread-safe because the processing of received frames always happens synchronously in a single thread. Because of this, calls to methods of such implementations should never come from multiple threads.

Methods

| Improve this Doc View Source

DecodeJpegTo32Bit(Span<Byte>, Span<Byte>, Int32, Int32, PixelFormat, out PixelFormat, CancellationToken)

Decompresses a JPEG encoded image to a 32bit .

Declaration
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

The compressed data.

Span<System.Byte> pixelsBuffer

The 32bit target buffer.

System.Int32 expectedWidth

The expected width of the decompressed image.

System.Int32 expectedHeight

The expected height of the decompressed image.

PixelFormat preferredPixelFormat

The preferred 32bit target pixel format.

PixelFormat usedPixelFormat

The pixel format that was chosen for the pixels written to the .

CancellationToken cancellationToken

The cancellation token.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX