mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
icc: Dump some of lutAToBType and lutBToAType curve data
This commit is contained in:
parent
c4b650cf4e
commit
b15a889ca4
Notes:
sideshowbarker
2024-07-17 00:47:29 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/b15a889ca4 Pull-request: https://github.com/SerenityOS/serenity/pull/17453 Reviewed-by: https://github.com/linusg
1 changed files with 28 additions and 0 deletions
|
@ -175,6 +175,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
auto& a_to_b = static_cast<Gfx::ICC::LutAToBTagData&>(*tag_data);
|
auto& a_to_b = static_cast<Gfx::ICC::LutAToBTagData&>(*tag_data);
|
||||||
outln(" {} input channels, {} output channels", a_to_b.number_of_input_channels(), a_to_b.number_of_output_channels());
|
outln(" {} input channels, {} output channels", a_to_b.number_of_input_channels(), a_to_b.number_of_output_channels());
|
||||||
|
|
||||||
|
if (auto const& optional_a_curves = a_to_b.a_curves(); optional_a_curves.has_value()) {
|
||||||
|
outln(" a curves: {} curves", optional_a_curves->size()); // FIXME: Dump more
|
||||||
|
} else {
|
||||||
|
outln(" a curves: (not set)");
|
||||||
|
}
|
||||||
|
|
||||||
if (auto const& optional_clut = a_to_b.clut(); optional_clut.has_value()) {
|
if (auto const& optional_clut = a_to_b.clut(); optional_clut.has_value()) {
|
||||||
auto const& clut = optional_clut.value();
|
auto const& clut = optional_clut.value();
|
||||||
outln(" color lookup table: {} grid points, {}",
|
outln(" color lookup table: {} grid points, {}",
|
||||||
|
@ -186,6 +192,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
outln(" color lookup table: (not set)");
|
outln(" color lookup table: (not set)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (auto const& optional_m_curves = a_to_b.m_curves(); optional_m_curves.has_value()) {
|
||||||
|
outln(" m curves: {} curves", optional_m_curves->size()); // FIXME: Dump more
|
||||||
|
} else {
|
||||||
|
outln(" m curves: (not set)");
|
||||||
|
}
|
||||||
|
|
||||||
if (auto const& optional_e = a_to_b.e_matrix(); optional_e.has_value()) {
|
if (auto const& optional_e = a_to_b.e_matrix(); optional_e.has_value()) {
|
||||||
auto const& e = optional_e.value();
|
auto const& e = optional_e.value();
|
||||||
outln(" e = [ {}, {}, {}, {},", e[0], e[1], e[2], e[9]);
|
outln(" e = [ {}, {}, {}, {},", e[0], e[1], e[2], e[9]);
|
||||||
|
@ -194,10 +206,14 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
} else {
|
} else {
|
||||||
outln(" e = (not set)");
|
outln(" e = (not set)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
outln(" b curves: {} curves", a_to_b.b_curves().size()); // FIXME: Dump more
|
||||||
} else if (tag_data->type() == Gfx::ICC::LutBToATagData::Type) {
|
} else if (tag_data->type() == Gfx::ICC::LutBToATagData::Type) {
|
||||||
auto& b_to_a = static_cast<Gfx::ICC::LutBToATagData&>(*tag_data);
|
auto& b_to_a = static_cast<Gfx::ICC::LutBToATagData&>(*tag_data);
|
||||||
outln(" {} input channels, {} output channels", b_to_a.number_of_input_channels(), b_to_a.number_of_output_channels());
|
outln(" {} input channels, {} output channels", b_to_a.number_of_input_channels(), b_to_a.number_of_output_channels());
|
||||||
|
|
||||||
|
outln(" b curves: {} curves", b_to_a.b_curves().size()); // FIXME: Dump more
|
||||||
|
|
||||||
if (auto const& optional_e = b_to_a.e_matrix(); optional_e.has_value()) {
|
if (auto const& optional_e = b_to_a.e_matrix(); optional_e.has_value()) {
|
||||||
auto const& e = optional_e.value();
|
auto const& e = optional_e.value();
|
||||||
outln(" e = [ {}, {}, {}, {},", e[0], e[1], e[2], e[9]);
|
outln(" e = [ {}, {}, {}, {},", e[0], e[1], e[2], e[9]);
|
||||||
|
@ -207,6 +223,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
outln(" e = (not set)");
|
outln(" e = (not set)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (auto const& optional_m_curves = b_to_a.m_curves(); optional_m_curves.has_value()) {
|
||||||
|
outln(" m curves: {} curves", optional_m_curves->size()); // FIXME: Dump more
|
||||||
|
} else {
|
||||||
|
outln(" m curves: (not set)");
|
||||||
|
}
|
||||||
|
|
||||||
if (auto const& optional_clut = b_to_a.clut(); optional_clut.has_value()) {
|
if (auto const& optional_clut = b_to_a.clut(); optional_clut.has_value()) {
|
||||||
auto const& clut = optional_clut.value();
|
auto const& clut = optional_clut.value();
|
||||||
outln(" color lookup table: {} grid points, {}",
|
outln(" color lookup table: {} grid points, {}",
|
||||||
|
@ -217,6 +239,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
} else {
|
} else {
|
||||||
outln(" color lookup table: (not set)");
|
outln(" color lookup table: (not set)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (auto const& optional_a_curves = b_to_a.a_curves(); optional_a_curves.has_value()) {
|
||||||
|
outln(" a curves: {} curves", optional_a_curves->size()); // FIXME: Dump more
|
||||||
|
} else {
|
||||||
|
outln(" a curves: (not set)");
|
||||||
|
}
|
||||||
} else if (tag_data->type() == Gfx::ICC::MeasurementTagData::Type) {
|
} else if (tag_data->type() == Gfx::ICC::MeasurementTagData::Type) {
|
||||||
auto& measurement = static_cast<Gfx::ICC::MeasurementTagData&>(*tag_data);
|
auto& measurement = static_cast<Gfx::ICC::MeasurementTagData&>(*tag_data);
|
||||||
outln(" standard observer: {}", Gfx::ICC::MeasurementTagData::standard_observer_name(measurement.standard_observer()));
|
outln(" standard observer: {}", Gfx::ICC::MeasurementTagData::standard_observer_name(measurement.standard_observer()));
|
||||||
|
|
Loading…
Reference in a new issue