MCPcopy Index your code
hub / github.com/Recordscript/recordscript / flush

Method flush

libs/scrap/src/common/vpxcodec.rs:285–299  ·  view source on GitHub ↗

Notify the encoder to return any pending packets

(&mut self)

Source from the content-addressed store, hash-verified

283
284 /// Notify the encoder to return any pending packets
285 pub fn flush(&mut self) -> Result<EncodeFrames> {
286 call_vpx!(vpx_codec_encode(
287 &mut self.ctx,
288 ptr::null(),
289 -1, // PTS
290 1, // Duration
291 0, // Flags
292 VPX_DL_REALTIME as _,
293 ));
294
295 Ok(EncodeFrames {
296 ctx: &mut self.ctx,
297 iter: ptr::null(),
298 })
299 }
300
301 #[inline]
302 pub fn create_video_frame(

Callers 1

encode_to_messageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected