8000 Failing to create camera with EINVAL in mmap · Issue #9 · loyd/rscam · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Failing to create camera with EINVAL in mmap #9
Open
@porglezomp

Description

@porglezomp

I'm trying to use a PS Eye with a Raspberry pi, and when I try to run the example script in the docs, the mmap returns an OS Error (EINVAL). The exact code adapted for acceptable framerates, resolutions, etc. is:

extern crate rscam;

use rscam::{Camera, Config};

fn main() {
    let mut camera = Camera::new("/dev/video0").unwrap();

    camera.start(&Config {
        interval: (1, 30),
        resolution: (320, 240),
        format: b"RGB3",
        ..Default::default()
    }).unwrap();

    for i in 0..10 {
        let frame = camera.capture().unwrap();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0