1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] 2 #[link(name = "windows")] 3 extern "system" {} 4 #[repr(transparent)] 5 pub struct HdmiDisplayColorSpace(pub i32); 6 impl HdmiDisplayColorSpace { 7 pub const RgbLimited: Self = Self(0i32); 8 pub const RgbFull: Self = Self(1i32); 9 pub const BT2020: Self = Self(2i32); 10 pub const BT709: Self = Self(3i32); 11 } 12 impl ::core::marker::Copy for HdmiDisplayColorSpace {} 13 impl ::core::clone::Clone for HdmiDisplayColorSpace { clone(&self) -> Self14 fn clone(&self) -> Self { 15 *self 16 } 17 } 18 #[repr(C)] 19 pub struct HdmiDisplayHdr2086Metadata { 20 pub RedPrimaryX: u16, 21 pub RedPrimaryY: u16, 22 pub GreenPrimaryX: u16, 23 pub GreenPrimaryY: u16, 24 pub BluePrimaryX: u16, 25 pub BluePrimaryY: u16, 26 pub WhitePointX: u16, 27 pub WhitePointY: u16, 28 pub MaxMasteringLuminance: u16, 29 pub MinMasteringLuminance: u16, 30 pub MaxContentLightLevel: u16, 31 pub MaxFrameAverageLightLevel: u16, 32 } 33 impl ::core::marker::Copy for HdmiDisplayHdr2086Metadata {} 34 impl ::core::clone::Clone for HdmiDisplayHdr2086Metadata { clone(&self) -> Self35 fn clone(&self) -> Self { 36 *self 37 } 38 } 39 #[repr(transparent)] 40 pub struct HdmiDisplayHdrOption(pub i32); 41 impl HdmiDisplayHdrOption { 42 pub const None: Self = Self(0i32); 43 pub const EotfSdr: Self = Self(1i32); 44 pub const Eotf2084: Self = Self(2i32); 45 pub const DolbyVisionLowLatency: Self = Self(3i32); 46 } 47 impl ::core::marker::Copy for HdmiDisplayHdrOption {} 48 impl ::core::clone::Clone for HdmiDisplayHdrOption { clone(&self) -> Self49 fn clone(&self) -> Self { 50 *self 51 } 52 } 53 pub type HdmiDisplayInformation = *mut ::core::ffi::c_void; 54 pub type HdmiDisplayMode = *mut ::core::ffi::c_void; 55 #[repr(transparent)] 56 pub struct HdmiDisplayPixelEncoding(pub i32); 57 impl HdmiDisplayPixelEncoding { 58 pub const Rgb444: Self = Self(0i32); 59 pub const Ycc444: Self = Self(1i32); 60 pub const Ycc422: Self = Self(2i32); 61 pub const Ycc420: Self = Self(3i32); 62 } 63 impl ::core::marker::Copy for HdmiDisplayPixelEncoding {} 64 impl ::core::clone::Clone for HdmiDisplayPixelEncoding { clone(&self) -> Self65 fn clone(&self) -> Self { 66 *self 67 } 68 } 69