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

Method decode

libs/scrap/src/common/aom.rs:487–499  ·  view source on GitHub ↗
(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

485 }
486
487 pub fn decode(&mut self, data: &[u8]) -> Result<DecodeFrames> {
488 call_aom!(aom_codec_decode(
489 &mut self.ctx,
490 data.as_ptr(),
491 data.len() as _,
492 ptr::null_mut(),
493 ));
494
495 Ok(DecodeFrames {
496 ctx: &mut self.ctx,
497 iter: ptr::null(),
498 })
499 }
500
501 /// Notify the decoder to return any pending frame
502 pub fn flush(&mut self) -> Result<DecodeFrames> {

Callers 8

test_vpxFunction · 0.45
test_av1Function · 0.45
test_decoderFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_vpxFunction · 0.36
test_av1Function · 0.36
test_decoderFunction · 0.36