1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibGfx: Remove ExifOrientedBitmap::Orientation in favor of TIFF's enum

ExifOrientedBitmap was implemented before the introduction of the TIFF
decoder. So we had to provide a definition of the Orientation enum. Now
that we have a TIFF implementation that comes with some enum
definitions, we should prefer this source.
This commit is contained in:
Lucas CHOLLET 2024-01-06 23:44:02 -05:00 committed by Andreas Kling
parent e9ebe59081
commit ef10a58522
2 changed files with 7 additions and 17 deletions

View file

@ -1718,7 +1718,7 @@ public:
auto const width = m_channels[0].width();
auto const height = m_channels[0].height();
auto const orientation = static_cast<ExifOrientedBitmap::Orientation>(metadata.orientation);
auto const orientation = static_cast<TIFF::Orientation>(metadata.orientation);
auto oriented_bitmap = TRY(ExifOrientedBitmap::create(BitmapFormat::BGRA8888, { width, height }, orientation));
auto const alpha_channel = metadata.alpha_channel();