Refactor: Update AVIF encoder parameters and add configuration guidance
This commit is contained in:
1 parent
8f7f59af86
commit
2fa3c468e1
1 file changed
+18
-3
@@ -205,9 +205,24 @@ return NULL;
|
||||
|
||||
encode.encoder = avifEncoderCreate();
|
||||
encode.encoder->maxThreads = 64;
|
||||
encode.encoder->speed = AVIF_SPEED_FASTEST;
|
||||
encode.encoder->maxQuantizer = 24;
|
||||
encode.encoder->minQuantizer = 22;
|
||||
encode.encoder->speed = 8;//AVIF_SPEED_FASTEST;
|
||||
encode.encoder->quality = 30;
|
||||
//encode.encoder->maxQuantizer = 24;
|
||||
//encode.encoder->minQuantizer = 22;
|
||||
|
||||
// Configure your encoder here (see avif/avif.h):
|
||||
// * maxThreads
|
||||
// * quality
|
||||
// * qualityAlpha
|
||||
// * tileRowsLog2
|
||||
// * tileColsLog2
|
||||
// * speed
|
||||
// * keyframeInterval
|
||||
// * timescale
|
||||
//avifEncoderSetCodecSpecificOption(encode.encoder, "cq-level", "45"); // constant quality level
|
||||
//avifEncoderSetCodecSpecificOption(encode.encoder, "enable-qm", "1"); // perceptual quantization
|
||||
//avifEncoderSetCodecSpecificOption(encode.encoder, "qm-min", "4");
|
||||
//avifEncoderSetCodecSpecificOption(encode.encoder, "qm-max", "15");
|
||||
|
||||
// Call avifEncoderAddImage() for each image in your sequence
|
||||
// Only set AVIF_ADD_IMAGE_FLAG_SINGLE if you're not encoding a sequence
|
||||
|
||||
Reference in new issue
Block a user