1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 07:37:35 +00:00

LibGfx/ICC: Fastpath for matrix->matrix image conversions

Doesn't help with PDF at all since that doesn't call convert_image()
(-‸ლ)
This commit is contained in:
Nico Weber 2024-01-08 18:12:15 -05:00 committed by Andreas Kling
parent 7772637d03
commit 2fc6ec0f46
2 changed files with 78 additions and 0 deletions

View file

@ -248,6 +248,8 @@ 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;
bool is_matrix_matrix_conversion(Profile const& source_profile) const;
ErrorOr<void> convert_image_matrix_matrix(Gfx::Bitmap& bitmap, Profile const& source_profile) const;
// Cached values.
bool m_cached_has_any_a_to_b_tag { false };