#[repr(C)]pub struct OH_Pixelmap_HdrGainmapMetadata {
pub writerVersion: u16,
pub miniVersion: u16,
pub gainmapChannelNum: u8,
pub useBaseColorFlag: bool,
pub baseHeadroom: f32,
pub alternateHeadroom: f32,
pub gainmapMax: [f32; 3],
pub gainmapMin: [f32; 3],
pub gamma: [f32; 3],
pub baselineOffset: [f32; 3],
pub alternateOffset: [f32; 3],
}Expand description
@brief Value for HDR_GAINMAP_METADATA.
@since 12
Fields§
§writerVersion: u16The version used by the writer.
miniVersion: u16The minimum version a parser needs to understand.
gainmapChannelNum: u8The number of gain map channels, with a value of 1 or 3.
useBaseColorFlag: boolIndicate whether to use the color space of the base image.
baseHeadroom: f32The baseline hdr headroom.
alternateHeadroom: f32The alternate hdr headroom.
gainmapMax: [f32; 3]The per-component max gain map values.
gainmapMin: [f32; 3]The per-component min gain map values.
gamma: [f32; 3]The per-component gamma values.
baselineOffset: [f32; 3]The per-component baseline offset.
alternateOffset: [f32; 3]The per-component alternate offset.
Trait Implementations§
Source§impl Clone for OH_Pixelmap_HdrGainmapMetadata
impl Clone for OH_Pixelmap_HdrGainmapMetadata
Source§fn clone(&self) -> OH_Pixelmap_HdrGainmapMetadata
fn clone(&self) -> OH_Pixelmap_HdrGainmapMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OH_Pixelmap_HdrGainmapMetadata
Auto Trait Implementations§
impl Freeze for OH_Pixelmap_HdrGainmapMetadata
impl RefUnwindSafe for OH_Pixelmap_HdrGainmapMetadata
impl Send for OH_Pixelmap_HdrGainmapMetadata
impl Sync for OH_Pixelmap_HdrGainmapMetadata
impl Unpin for OH_Pixelmap_HdrGainmapMetadata
impl UnsafeUnpin for OH_Pixelmap_HdrGainmapMetadata
impl UnwindSafe for OH_Pixelmap_HdrGainmapMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more