Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustOtomeLab/RustEng
/ take_latest_frame
Method
take_latest_frame
src/media/video_player.rs:136–139 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
134
}
135
136
pub(crate) fn take_latest_frame(&self) -> Option<Image> {
137
let buf = self.latest_frame.lock().ok()?.take()?;
138
Some(Image::from_rgba8(buf))
139
}
140
141
#[allow(dead_code)]
142
pub(crate) fn path(&self) -> &str {
Callers
1
start_video
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected