MCPcopy Create free account
hub / github.com/Recordscript/recordscript / write_video

Method write_video

libs/scrap/src/common/record.rs:287–302  ·  view source on GitHub ↗
(&mut self, frame: &EncodedVideoFrame)

Source from the content-addressed store, hash-verified

285 }
286
287 fn write_video(&mut self, frame: &EncodedVideoFrame) -> bool {
288 if frame.key {
289 self.key = true;
290 }
291 if self.key {
292 let ok = self
293 .vt
294 .add_frame(&frame.data, frame.pts as u64 * 1_000_000, frame.key);
295 if ok {
296 self.written = true;
297 }
298 ok
299 } else {
300 false
301 }
302 }
303}
304
305impl Drop for WebmRecorder {

Callers 1

write_frameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected