use libuvc::{Context, Error};
fn main() -> Result<(), Error> {
let ctx = Context::new()?;
let dev = ctx.find_device(None, None, None)?;
let devh = dev.open()?;
for format in devh.format_descs() {
println!("{:?}", format.descriptor_subtype());
for frame in format.frame_descs() {
println!(" {:?}", frame.descriptor_subtype());
}
}
Ok(())
}