|
1 | 1 | //! Generated by `cargo run --bin generate_rust controls`
|
2 | 2 |
|
3 |
| -use crate::control::{Control, ControlEntry, DynControlEntry}; |
4 |
| -use crate::control_value::{ControlValue, ControlValueError}; |
| 3 | +use std::ops::{Deref, DerefMut}; |
| 4 | + |
| 5 | +use num_enum::{IntoPrimitive, TryFromPrimitive}; |
| 6 | + |
5 | 7 | #[allow(unused_imports)]
|
6 | 8 | use crate::geometry::{Rectangle, Size};
|
7 |
| -use num_enum::{IntoPrimitive, TryFromPrimitive}; |
8 |
| -use std::ops::{Deref, DerefMut}; |
| 9 | +use crate::{ |
| 10 | + control::{Control, ControlEntry, DynControlEntry}, |
| 11 | + control_value::{ControlValue, ControlValueError}, |
| 12 | +}; |
9 | 13 |
|
10 | 14 | #[derive(Debug, Clone, Copy, Eq, PartialEq, TryFromPrimitive, IntoPrimitive)]
|
11 | 15 | #[repr(u32)]
|
@@ -108,7 +112,8 @@ pub enum ControlId {
|
108 | 112 | ///
|
109 | 113 | /// \sa AwbEnable
|
110 | 114 | ColourGains = 15,
|
111 |
| - /// Report the current estimate of the colour temperature, in kelvin, for this frame. The ColourTemperature control can only be returned in metadata. |
| 115 | + /// Report the current estimate of the colour temperature, in kelvin, for this frame. The ColourTemperature control |
| 116 | + /// can only be returned in metadata. |
112 | 117 | ColourTemperature = 16,
|
113 | 118 | /// Specify a fixed saturation parameter. Normal saturation is given by
|
114 | 119 | /// the value 1.0; larger values produce more saturated colours; 0.0
|
@@ -503,11 +508,15 @@ impl Control for AeMeteringMode {}
|
503 | 508 | #[derive(Debug, Clone, Copy, Eq, PartialEq, TryFromPrimitive, IntoPrimitive)]
|
504 | 509 | #[repr(i32)]
|
505 | 510 | pub enum AeConstraintMode {
|
506 |
| - /// Default constraint mode. This mode aims to balance the exposure of different parts of the image so as to reach a reasonable average level. However, highlights in the image may appear over-exposed and lowlights may appear under-exposed. |
| 511 | + /// Default constraint mode. This mode aims to balance the exposure of different parts of the image so as to reach |
| 512 | + /// a reasonable average level. However, highlights in the image may appear over-exposed and lowlights may appear |
| 513 | + /// under-exposed. |
507 | 514 | ConstraintNormal = 0,
|
508 |
| - /// Highlight constraint mode. This mode adjusts the exposure levels in order to try and avoid over-exposing the brightest parts (highlights) of an image. Other non-highlight parts of the image may appear under-exposed. |
| 515 | + /// Highlight constraint mode. This mode adjusts the exposure levels in order to try and avoid over-exposing the |
| 516 | + /// brightest parts (highlights) of an image. Other non-highlight parts of the image may appear under-exposed. |
509 | 517 | ConstraintHighlight = 1,
|
510 |
| - /// Shadows constraint mode. This mode adjusts the exposure levels in order to try and avoid under-exposing the dark parts (shadows) of an image. Other normally exposed parts of the image may appear over-exposed. |
| 518 | + /// Shadows constraint mode. This mode adjusts the exposure levels in order to try and avoid under-exposing the |
| 519 | + /// dark parts (shadows) of an image. Other normally exposed parts of the image may appear over-exposed. |
511 | 520 | ConstraintShadows = 2,
|
512 | 521 | /// Custom constraint mode.
|
513 | 522 | ConstraintCustom = 3,
|
@@ -1002,7 +1011,8 @@ impl ControlEntry for ColourGains {
|
1002 | 1011 |
|
1003 | 1012 | impl Control for ColourGains {}
|
1004 | 1013 |
|
1005 |
| -/// Report the current estimate of the colour temperature, in kelvin, for this frame. The ColourTemperature control can only be returned in metadata. |
| 1014 | +/// Report the current estimate of the colour temperature, in kelvin, for this frame. The ColourTemperature control can |
| 1015 | +/// only be returned in metadata. |
1006 | 1016 | #[derive(Debug, Clone)]
|
1007 | 1017 | pub struct ColourTemperature(pub i32);
|
1008 | 1018 |
|
@@ -1689,7 +1699,8 @@ impl Control for AfSpeed {}
|
1689 | 1699 | pub enum AfMetering {
|
1690 | 1700 | /// The AF algorithm should decide for itself where it will measure focus.
|
1691 | 1701 | Auto = 0,
|
1692 |
| - /// The AF algorithm should use the rectangles defined by the AfWindows control to measure focus. If no windows are specified the behaviour is platform dependent. |
| 1702 | + /// The AF algorithm should use the rectangles defined by the AfWindows control to measure focus. If no windows are |
| 1703 | + /// specified the behaviour is platform dependent. |
1693 | 1704 | Windows = 1,
|
1694 | 1705 | }
|
1695 | 1706 |
|
|
0 commit comments