color-management: use more consistent naming
This commit is contained in:
parent
32db933242
commit
83e79b68e6
65 changed files with 439 additions and 510 deletions
|
|
@ -138,7 +138,7 @@ impl TestBackend {
|
|||
non_desktop: false,
|
||||
non_desktop_effective: false,
|
||||
vrr_capable: false,
|
||||
transfer_functions: vec![],
|
||||
eotfs: vec![],
|
||||
color_spaces: vec![],
|
||||
primaries: Primaries::SRGB,
|
||||
luminance: None,
|
||||
|
|
@ -152,7 +152,7 @@ impl TestBackend {
|
|||
tearing: false,
|
||||
format: XRGB8888,
|
||||
color_space: Default::default(),
|
||||
transfer_function: Default::default(),
|
||||
eotf: Default::default(),
|
||||
},
|
||||
};
|
||||
Self {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use {
|
||||
crate::{
|
||||
cmm::cmm_transfer_function::TransferFunction,
|
||||
cmm::cmm_eotf::Eotf,
|
||||
it::{
|
||||
test_error::TestResult, test_ifs::test_buffer::TestBuffer, test_object::TestObject,
|
||||
test_transport::TestTransport,
|
||||
|
|
@ -32,7 +32,7 @@ impl TestSinglePixelBufferManager {
|
|||
destroyed: Cell::new(false),
|
||||
});
|
||||
let map = |c: f32| (c as f64 * u32::MAX as f64) as u32;
|
||||
let [r, g, b, a] = color.to_array(TransferFunction::Gamma22);
|
||||
let [r, g, b, a] = color.to_array(Eotf::Gamma22);
|
||||
self.tran.send(CreateU32RgbaBuffer {
|
||||
self_id: self.id,
|
||||
id: obj.id,
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ async fn test(run: Rc<TestRun>) -> TestResult {
|
|||
non_desktop: false,
|
||||
non_desktop_effective: false,
|
||||
vrr_capable: false,
|
||||
transfer_functions: vec![],
|
||||
eotfs: vec![],
|
||||
color_spaces: vec![],
|
||||
primaries: Primaries::SRGB,
|
||||
luminance: None,
|
||||
|
|
@ -65,7 +65,7 @@ async fn test(run: Rc<TestRun>) -> TestResult {
|
|||
tearing: false,
|
||||
format: XRGB8888,
|
||||
color_space: Default::default(),
|
||||
transfer_function: Default::default(),
|
||||
eotf: Default::default(),
|
||||
},
|
||||
};
|
||||
run.backend
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue