압축률 조정

This commit is contained in:
dahyeon committed 2025-10-21 20:10:21 +09:00
1 parent 8f7f59af86
commit 9216aa1a6f
1 file changed
+18 -3
+18 -3
View File
@@ -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