makepad_platform/
decoding_api.rs

1use crate::makepad_live_id::LiveId;
2
3pub type VideoDecodingInputFn = Box<dyn FnMut(Vec<u8>) + Send  + 'static>;
4
5pub trait CxDecodingApi {
6    fn video_decoding_input<F>(&mut self, index: LiveId, f: F) where F: FnMut(Vec<u8>) + Send  + 'static{
7        self.video_decoding_input_box(index, Box::new(f))
8    }
9
10    fn video_decoding_input_box(&mut self, index: LiveId, f: VideoDecodingInputFn);
11}