mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
LibGfx/ICC: Extract matrix computation functions
No behavior (or perf) change.
This commit is contained in:
parent
5c5a24c6b7
commit
19d434b229
2 changed files with 33 additions and 25 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <LibGfx/CIELAB.h>
|
||||
#include <LibGfx/ICC/DistinctFourCC.h>
|
||||
#include <LibGfx/ICC/TagTypes.h>
|
||||
#include <LibGfx/Matrix3x3.h>
|
||||
#include <LibGfx/Vector3.h>
|
||||
|
||||
namespace Gfx::ICC {
|
||||
|
@ -247,6 +248,10 @@ private:
|
|||
// FIXME: The color conversion stuff should be in some other class.
|
||||
ErrorOr<FloatVector3> to_pcs_a_to_b(TagData const& tag_data, ReadonlyBytes) const;
|
||||
ErrorOr<void> from_pcs_b_to_a(TagData const& tag_data, FloatVector3 const&, Bytes) const;
|
||||
|
||||
// Only valid for RGB matrix-based profiles.
|
||||
ErrorOr<FloatMatrix3x3> xyz_to_rgb_matrix() const;
|
||||
FloatMatrix3x3 rgb_to_xyz_matrix() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue