TryReadHeader(ReadOnlySpan, ImageFilterContext, out ImageHeader) Method

Definition

Assembly Broadside.dll

Reads the codestream's header without decoding the samples.

bool TryReadHeader(ReadOnlySpan<byte> encoded, ImageFilterContext context, scoped out ImageHeader header)

Parameters

encoded
ReadOnlySpan<Byte>

The data the filter would decode.

context
ImageFilterContext

The image's dictionary values, limits and the filter context.

header
ImageHeader

The image's size and components as the codestream declares them.

Returns

Boolean
false when the header cannot be read; DecodeImage(ReadOnlyMemory<Byte>, ImageFilterContext) is then not called.

Remarks

ISO 32000-2 §7.4.9 (JPEG 2000 dimensions win over the dictionary's).