#[repr(C)]
pub struct retro_camera_callback { pub caps: u64, pub width: c_uint, pub height: c_uint, pub start: retro_camera_start_t, pub stop: retro_camera_stop_t, pub frame_raw_framebuffer: retro_camera_frame_raw_framebuffer_t, pub frame_opengl_texture: retro_camera_frame_opengl_texture_t, pub initialized: retro_camera_lifetime_status_t, pub deinitialized: retro_camera_lifetime_status_t, }

Fields§

§caps: u64

Set by libretro core. Example bitmask: caps = (1 << RETRO_CAMERA_BUFFER_OPENGL_TEXTURE) | (1 << RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER).

§width: c_uint

Desired resolution for camera. Is only used as a hint.

§height: c_uint§start: retro_camera_start_t

Set by frontend.

§stop: retro_camera_stop_t§frame_raw_framebuffer: retro_camera_frame_raw_framebuffer_t

Set by libretro core if raw framebuffer callbacks will be used.

§frame_opengl_texture: retro_camera_frame_opengl_texture_t

Set by libretro core if OpenGL texture callbacks will be used.

§initialized: retro_camera_lifetime_status_t

Set by libretro core. Called after camera driver is initialized and ready to be started. Can be NULL, in which this callback is not called.

§deinitialized: retro_camera_lifetime_status_t

Set by libretro core. Called right before camera driver is deinitialized. Can be NULL, in which this callback is not called.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.