PeachImage

PeachImage.Formats.Avif.AvifEncoderOptions

AvifEncoderOptions.Effort Property

How exhaustively the encoder searches for the smallest output, 0 (slowest, most thorough) to 9 (fastest, most pruned). Defaults to 2. For lossless encoding this mirrors libaom’s own --cpu-used under AV1’s ALL_INTRA usage mode (see below).

Lossy (Losslessfalse): 0 and 1 try every luma intra mode and angle delta with full transform and entropy costing (slowest). From 2 upward only the luma candidates with the best prediction-residual SATD get that full costing (16 at effort 2, 10 at 3-4, 6 at 5-6, 4 at 7-9), the partition search ranks leaf-vs-split with a much smaller shortlist, and the chroma search is restricted by the luma winner. The default is roughly 5x faster than effort 0 for well under 1% larger output on photographic content.

Lossless: validated but not yet load-bearing. This value is threaded through and computed into the full libaom speed-feature table, but no lossless search decision consults it yet – an initial attempt at wiring it into the mode-search prescreen measurably regressed lossless output size and was reverted. Every Effort value currently produces identical lossless output.

public int Effort { get; init; }

Property Value

System.Int32