#[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
The details of an output format for a camera device.
Cameras often support multiple formats; each one will be encapsulated in this struct.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_GetCameraSupportedFormats See Also: SDL_GetCameraFormat
Fields§
§format: SDL_PixelFormat< Frame format
colorspace: SDL_Colorspace< Frame colorspace
width: c_int< Frame width
height: c_int< Frame height
framerate_numerator: c_int< Frame rate numerator ((num / denom) == FPS, (denom / num) == duration in seconds)
framerate_denominator: c_int< Frame 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§impl Hash for SDL_CameraSpec
impl Hash for SDL_CameraSpec
impl Copy 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 UnsafeUnpin 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