metal: allow configuring color space and transfer function
This commit is contained in:
parent
04f280aabe
commit
bb56efb968
38 changed files with 1365 additions and 160 deletions
|
|
@ -136,6 +136,12 @@ impl ConnectorHandler {
|
|||
info.height_mm,
|
||||
&output_id,
|
||||
&desired_state,
|
||||
info.transfer_functions.clone(),
|
||||
info.transfer_function,
|
||||
info.color_spaces.clone(),
|
||||
info.color_space,
|
||||
info.primaries,
|
||||
info.luminance,
|
||||
));
|
||||
let schedule = Rc::new(OutputSchedule::new(
|
||||
&self.state.ring,
|
||||
|
|
@ -270,6 +276,9 @@ impl ConnectorHandler {
|
|||
on.global.formats.set(formats);
|
||||
on.global.format.set(format);
|
||||
}
|
||||
ConnectorEvent::ColorsChanged(bcs, btf) => {
|
||||
on.update_btf_and_bcs(btf, bcs);
|
||||
}
|
||||
ev => unreachable!("received unexpected event {:?}", ev),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue