You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Save the quality of the first layer because it's useful for further decision making
663
+
if (encoder->extraLayerCount>0&&codec->internal->currentLayer==0) {
664
+
codec->internal->qualityFirstLayer=quality;
665
+
}
666
+
667
+
// All-intra encoding is beneficial when encoding a two-layer image item and the quality of the first layer is very low.
668
+
// Switching to all-intra encoding comes with the following benefits:
669
+
// - The first layer will be smaller than the second layer (which is often not the case with inter encoding)
670
+
// - Outputs have predictable file sizes: the sum of the first layer (quality <= 10) plus the second layer (quality set by the caller)
671
+
// - Because the first layer is very small, layered encoding overhead is also smaller and more stable (about 5-8% for quality 40 and 2-4% for quality 60)
672
+
// - Option of choosing tune IQ (which requires AOM_USAGE_ALL_INTRA)
// libavm to set still_picture and reduced_still_picture_header to
548
550
// 1 in AV2 sequence headers.
549
551
cfg->g_limit=1;
552
+
}
553
+
554
+
// All-intra encoding is beneficial when encoding a two-layer image item and the quality of the first layer is very low.
555
+
// Switching to all-intra encoding comes with the following benefits:
556
+
// - The first layer will be smaller than the second layer (which is often not the case with inter encoding)
557
+
// - Outputs have predictable file sizes: the sum of the first layer (quality <= 10) plus the second layer (quality set by the caller)
558
+
// - Because the first layer is very small, layered encoding overhead is also smaller and more stable (about 5-8% for quality 40 and 2-4% for quality 60)
0 commit comments