Skip to content

Commit 0fbb758

Browse files
committed
WIP
The ref frame code that has slot_idx math I don't understand is at src/encoder.rs:1040-1080
1 parent f4d6fc6 commit 0fbb758

File tree

5 files changed

+289
-310
lines changed

5 files changed

+289
-310
lines changed

src/api/config/encoder.rs

+8
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@ impl EncoderConfig {
228228
!self.speed_settings.transform.tx_domain_distortion
229229
}
230230

231+
pub const fn reorder(&self) -> bool {
232+
!self.low_latency
233+
}
234+
235+
pub const fn multiref(&self) -> bool {
236+
self.reorder() || self.speed_settings.multiref
237+
}
238+
231239
/// Describes whether the output is targeted as HDR
232240
pub fn is_hdr(&self) -> bool {
233241
self

0 commit comments

Comments
 (0)