chore(video): sample decoded frames periodically
Some checks failed
Mirror to GitHub / mirror (push) Failing after 26s
Build Release Binaries / build-amd64 (push) Failing after 3m30s

This commit is contained in:
Siavash Sameni
2026-05-25 21:14:32 +04:00
parent 0115b11de7
commit e8f139588a
3 changed files with 72 additions and 4 deletions

View File

@@ -12,4 +12,9 @@ pub trait VideoDecoder: Send {
/// Returns `Ok(Some(frame))` when a frame is ready, `Ok(None)` if more
/// data is needed (e.g., for reordering), or an error.
fn decode(&mut self, access_unit: &[u8]) -> Result<Option<VideoFrame>, VideoError>;
/// Compact implementation-specific state useful for field diagnostics.
fn debug_snapshot(&self) -> Option<String> {
None
}
}