#[repr(C)]pub struct SDL_CameraSpec {
pub format: SDL_PixelFormat,
pub colorspace: SDL_Colorspace,
pub width: c_int,
pub height: c_int,
pub framerate_numerator: c_int,
pub framerate_denominator: c_int,
}Expand description
Fields§
§format: SDL_PixelFormatFrame format
colorspace: SDL_ColorspaceFrame colorspace
width: c_intFrame width
height: c_intFrame height
framerate_numerator: c_intFrame rate numerator ((num / denom) == FPS, (denom / num) == duration in seconds)
framerate_denominator: c_intFrame rate denominator ((num / denom) == FPS, (denom / num) == duration in seconds)
Trait Implementations§
Source§impl Clone for SDL_CameraSpec
impl Clone for SDL_CameraSpec
Source§fn clone(&self) -> SDL_CameraSpec
fn clone(&self) -> SDL_CameraSpec
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 SDL_CameraSpec
impl Debug for SDL_CameraSpec
Source§impl Default for SDL_CameraSpec
impl Default for SDL_CameraSpec
Source§fn default() -> SDL_CameraSpec
fn default() -> SDL_CameraSpec
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_CameraSpec
impl Hash for SDL_CameraSpec
Source§impl PartialEq for SDL_CameraSpec
impl PartialEq for SDL_CameraSpec
impl Copy for SDL_CameraSpec
impl Eq for SDL_CameraSpec
impl StructuralPartialEq for SDL_CameraSpec
Auto Trait Implementations§
impl Freeze for SDL_CameraSpec
impl RefUnwindSafe for SDL_CameraSpec
impl Send for SDL_CameraSpec
impl Sync for SDL_CameraSpec
impl Unpin for SDL_CameraSpec
impl UnwindSafe for SDL_CameraSpec
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