diff --git a/nokhwa-core/src/types.rs b/nokhwa-core/src/types.rs index e86661f..a927166 100644 --- a/nokhwa-core/src/types.rs +++ b/nokhwa-core/src/types.rs @@ -11,10 +11,10 @@ use std::{ /// Tells the init function what camera format to pick. /// - `AbsoluteHighestResolution`: Pick the highest [`Resolution`], then pick the highest frame rate of those provided. /// - `AbsoluteHighestFrameRate`: Pick the highest frame rate, then the highest [`Resolution`]. -/// - `HighestResolution(Option)`: Pick the highest [`Resolution`] for the given framerate (the `Option`). If its `None`, it will pick the highest possible [`Resolution`] -/// - `HighestFrameRate(Option)`: Pick the highest frame rate for the given [`Resolution`] (the `Option`). If it is `None`, it will pick the highest possinle framerate. +/// - `HighestResolution(Resolution)`: Pick the highest [`Resolution`] for the given framerate (the `Option`). +/// - `HighestFrameRate(u32)`: Pick the highest frame rate for the given [`Resolution`] (the `Option`). /// - `Exact`: Pick the exact [`CameraFormat`] provided. -/// - `Closest`: Pick the closest [`CameraFormat`] provided in order of [`FrameFormat`], [`Resolution`], and FPS. Note that if the [`FrameFormat`] does not exist, this will fail to resolve. +/// - `Closest`: Pick the closest [`CameraFormat`] provided in order of [`FrameFormat`], [`Resolution`], and FPS. /// - `None`: Pick a random [`CameraFormat`] #[derive(Copy, Clone, Debug, Hash, Ord, PartialOrd, Eq, PartialEq)] #[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))]