We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f40299 commit 04e5341Copy full SHA for 04e5341
src/codec_aom.c
@@ -591,6 +591,11 @@ static avifResult aomCodecEncodeImage(avifCodec * codec,
591
if (aomCpuUsed != -1) {
592
aom_codec_control(&codec->internal->encoder, AOME_SET_CPUUSED, aomCpuUsed);
593
}
594
+ if (addImageFlags & AVIF_ADD_IMAGE_FLAG_SINGLE) {
595
+ // Disable temporal filtering on key frames, otherwise we will lose a good amount of compression
596
+ // performance.
597
+ aom_codec_control(&codec->internal->encoder, AV1E_SET_ENABLE_KEYFRAME_FILTERING, 0);
598
+ }
599
if (!avifProcessAOMOptionsPostInit(codec)) {
600
return AVIF_RESULT_INVALID_CODEC_SPECIFIC_OPTION;
601
0 commit comments