docs.rs failed to build video-capture-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
video-capture-0.1.1
video-capture
This project provides a cross-platform abstraction for capturing multimedia content from camera.
Getting Started
To get started, add the following dependencies to your Cargo.toml:
[]
= "0.1"
// Create a default instance of camera manager
let mut cam_mgr = match default ;
// List all camera devices
let devices = cam_mgr.list;
for device in devices
// Get the first camera
let device = match cam_mgr.index_mut ;
// Set the output handler for the camera
if let Err = device.set_output_handler ;
// Map the video frame for memory access
if let Ok = frame.map
// Create a video frame that can be sent across threads
let shared_frame = new;
// Get supported formats
let formats = device.formats;
if let Ok = formats
// Configure the camera
let mut option = new_dict;
option = 1280.into;
option = 720.into;
option = 30.0.into;
if let Err = device.configure
// Start the camera
if let Err = device.start
// Stop the camera
if let Err = device.stop