Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rs/moq-video/src/capture/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ impl FrameStream {
self.framerate
}

/// The first frame's declared color space, when its capture backend knows it.
pub(crate) fn color(&self) -> Option<crate::Color> {
self.pending.as_ref().and_then(Surface::color)
}

pub(crate) fn device(&self) -> &str {
&self.device
}
Expand Down
Loading
Loading