(&mut self, data: &[u8])
| 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> { |
no outgoing calls