Notify the decoder to return any pending frame
(&mut self)
| 500 | |
| 501 | /// Notify the decoder to return any pending frame |
| 502 | pub fn flush(&mut self) -> Result<DecodeFrames> { |
| 503 | call_aom!(aom_codec_decode( |
| 504 | &mut self.ctx, |
| 505 | ptr::null(), |
| 506 | 0, |
| 507 | ptr::null_mut(), |
| 508 | )); |
| 509 | Ok(DecodeFrames { |
| 510 | ctx: &mut self.ctx, |
| 511 | iter: ptr::null(), |
| 512 | }) |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | impl Drop for AomDecoder { |
no outgoing calls