1
0
Fork 0
forked from wry/wry

wp-color-management-v1: update to version 2

This commit is contained in:
Julian Orth 2025-12-18 16:51:57 +01:00
parent 5090b45918
commit 3e3cb3114c
12 changed files with 143 additions and 23 deletions

View file

@ -1,3 +1,4 @@
use crate::object::Version;
pub use consts::*;
pub mod wp_color_management_output_v1;
@ -6,8 +7,12 @@ pub mod wp_color_manager_v1;
pub mod wp_image_description_creator_icc_v1;
pub mod wp_image_description_creator_params_v1;
pub mod wp_image_description_info_v1;
pub mod wp_image_description_reference_v1;
pub mod wp_image_description_v1;
const UNIQUE_CM_IDS_SINCE: Version = Version(2);
const SRGB_DEPRECATED_SINCE: Version = Version(2);
const PRIMARIES_MUL: f64 = 1_000_000.0;
const PRIMARIES_MUL_INV: f64 = 1.0 / PRIMARIES_MUL;
@ -55,6 +60,7 @@ mod consts {
pub const TRANSFER_FUNCTION_ST2084_PQ: u32 = 11;
pub const TRANSFER_FUNCTION_ST428: u32 = 12;
pub const TRANSFER_FUNCTION_HLG: u32 = 13;
pub const TRANSFER_FUNCTION_COMPOUND_POWER_2_4: u32 = 14;
pub const CAUSE_LOW_VERSION: u32 = 0;
pub const CAUSE_UNSUPPORTED: u32 = 1;