#[repr(C)]pub struct playdate_video {
pub loadVideo: Option<unsafe extern "C" fn(path: *const c_char) -> *mut LCDVideoPlayer>,
pub freePlayer: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>,
pub setContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, context: *mut LCDBitmap) -> c_int>,
pub useScreenContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>,
pub renderFrame: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, n: c_int) -> c_int>,
pub getError: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *const c_char>,
pub getInfo: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, outWidth: *mut c_int, outHeight: *mut c_int, outFrameRate: *mut f32, outFrameCount: *mut c_int, outCurrentFrame: *mut c_int)>,
pub getContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *mut LCDBitmap>,
}Fields§
§loadVideo: Option<unsafe extern "C" fn(path: *const c_char) -> *mut LCDVideoPlayer>§freePlayer: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>§setContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, context: *mut LCDBitmap) -> c_int>§useScreenContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer)>§renderFrame: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, n: c_int) -> c_int>§getError: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *const c_char>§getInfo: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer, outWidth: *mut c_int, outHeight: *mut c_int, outFrameRate: *mut f32, outFrameCount: *mut c_int, outCurrentFrame: *mut c_int)>§getContext: Option<unsafe extern "C" fn(p: *mut LCDVideoPlayer) -> *mut LCDBitmap>Trait Implementations§
Source§impl Clone for playdate_video
impl Clone for playdate_video
Source§fn clone(&self) -> playdate_video
fn clone(&self) -> playdate_video
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for playdate_video
impl Debug for playdate_video
impl Copy for playdate_video
Auto Trait Implementations§
impl Freeze for playdate_video
impl RefUnwindSafe for playdate_video
impl Send for playdate_video
impl Sync for playdate_video
impl Unpin for playdate_video
impl UnwindSafe for playdate_video
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more