HeifContextSetMaximumDecodingThreads Method

Sets the maximum number of threads that LibHeif can use for decoding images.

Definition

Namespace: LibHeifSharp
Assembly: LibHeifSharp (in LibHeifSharp.dll) Version: 3.2.0
C#
public void SetMaximumDecodingThreads(
	int maxDecodingThreads
)

Parameters

maxDecodingThreads  Int32
The maximum number of threads that LibHeif can use for decoding images.

Remarks

This method allows callers to limit the number of threads that LibHeif can use when decoding images. The value will replace the default limit that LibHeif uses when decoding images in this instance.

It is supported starting with LibHeif version 1.13.0, and will be ignored on older versions.

Exceptions

ArgumentOutOfRangeExceptionmaxDecodingThreads is less than or equal to zero.
ObjectDisposedExceptionThe object has been disposed.

See Also