#[repr(i32)]pub enum HdrMode {
Off = 0,
MultiExposureUnmerged = 1,
MultiExposure = 2,
SingleExposure = 3,
Night = 4,
}
Expand description
Set the mode to be used for High Dynamic Range (HDR) imaging.
HDR techniques typically include multiple exposure, image fusion and tone mapping techniques to improve the dynamic range of the resulting images.
When using an HDR mode, images are captured with different sets of AGC settings called HDR channels. Channels indicate in particular the type of exposure (short, medium or long) used to capture the raw image, before fusion. Each HDR image is tagged with the corresponding channel using the HdrChannel control.
\sa HdrChannel
Variants§
Off = 0
HDR is disabled.
Metadata for this frame will not include the HdrChannel control.
MultiExposureUnmerged = 1
Multiple exposures will be generated in an alternating fashion.
The multiple exposures will not be merged together and will be returned to the application as they are. Each image will be tagged with the correct HDR channel, indicating what kind of exposure it is. The tag should be the same as in the HdrModeMultiExposure case.
The expectation is that an application using this mode would merge the frames to create HDR images for itself if it requires them.
MultiExposure = 2
Multiple exposures will be generated and merged to create HDR images.
Each image will be tagged with the HDR channel (long, medium or short) that arrived and which caused this image to be output.
Systems that use two channels for HDR will return images tagged alternately as the short and long channel. Systems that use three channels for HDR will cycle through the short, medium and long channel before repeating.
SingleExposure = 3
Multiple frames all at a single exposure will be used to create HDR images.
These images should be reported as all corresponding to the HDR short channel.
Night = 4
Multiple frames will be combined to produce “night mode” images.
It is up to the implementation exactly which HDR channels it uses, and the images will all be tagged accordingly with the correct HDR channel information.