#[non_exhaustive]pub struct OutputSignaling {
pub colorspace: Option<Colorspace>,
pub hdr_metadata: Option<HdrSourceMetadata>,
pub hdr_downgraded: bool,
}Expand description
What the scene wants declared on the connector for one frame.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.colorspace: Option<Colorspace>The Colorspace to write, or None to leave the property alone.
None when no layer said what it was in. Writing a guess would
override whatever the last client left, which on a connector is
sticky.
hdr_metadata: Option<HdrSourceMetadata>The metadata to publish, or None for no HDR signaling.
hdr_downgraded: boolWhether HDR was called for and could not be carried.
The layers asked for it and the connector cannot: no
HDR_OUTPUT_METADATA, or no max bpc that reaches 10. The metadata
is dropped rather than sent, and this says so – a caller that wants
to tone-map itself, or tell the user, has no other way to find out.
Trait Implementations§
Source§impl Clone for OutputSignaling
impl Clone for OutputSignaling
Source§impl Debug for OutputSignaling
impl Debug for OutputSignaling
Source§impl Default for OutputSignaling
impl Default for OutputSignaling
Source§impl PartialEq for OutputSignaling
impl PartialEq for OutputSignaling
impl StructuralPartialEq for OutputSignaling
Auto Trait Implementations§
impl Freeze for OutputSignaling
impl RefUnwindSafe for OutputSignaling
impl Send for OutputSignaling
impl Sync for OutputSignaling
impl Unpin for OutputSignaling
impl UnsafeUnpin for OutputSignaling
impl UnwindSafe for OutputSignaling
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