Skip to content

Commit

Permalink
split device type into plane variants
Browse files Browse the repository at this point in the history
  • Loading branch information
illegalprime committed Apr 14, 2023
1 parent 30a4fe4 commit ff5f5cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ use crate::v4l2::videodev::v4l2_ext_controls;
use crate::v4l_sys::*;
use crate::{capability::Capabilities, control::Control};

pub const PLANES_ONE: bool = false;
pub const PLANES_MANY: bool = true;

pub type Device = PlanarDevice<PLANES_ONE>;

/// Linux capture device abstraction
pub struct Device {
pub struct PlanarDevice<const P: bool> {
/// Raw handle
handle: Arc<Handle>,
}
Expand Down

0 comments on commit ff5f5cb

Please sign in to comment.