Function videostream_sys::vsl_camera_init_device
source · pub unsafe extern "C" fn vsl_camera_init_device(
ctx: *mut vsl_camera,
width: *mut c_int,
height: *mut c_int,
buf_count: *mut c_int,
fourcc: *mut u32
) -> c_intExpand description
Initialized the camera device in @param ctx for streaming and allocate camera buffers.
Then requests the camera to stream at the requested @param width and @param height using the requested @param fourcc code.
The @param width, @param height, @param fourcc parameters will be set to the actual width and height and fourcc that the camera driver sets the device to.
Returns -1 if an error is encountered when initializing the camera to stream, otherwise returns 0
@memberof VSLCamera