From ecc321e099b257522df5f2c7508b8b1501fcaad5 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 15 Feb 2023 12:13:04 -0500 Subject: [PATCH] LibGfx: Move QOIWriter implementation-only things into cpp file No behavior change. --- Userland/Libraries/LibGfx/QOIWriter.cpp | 13 +++++++++++++ Userland/Libraries/LibGfx/QOIWriter.h | 14 ++------------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Userland/Libraries/LibGfx/QOIWriter.cpp b/Userland/Libraries/LibGfx/QOIWriter.cpp index 56faf6042d..6bedd443c2 100644 --- a/Userland/Libraries/LibGfx/QOIWriter.cpp +++ b/Userland/Libraries/LibGfx/QOIWriter.cpp @@ -10,6 +10,19 @@ namespace Gfx { +static constexpr Array qoi_magic_bytes = { 'q', 'o', 'i', 'f' }; +static constexpr Array qoi_end_marker = { 0, 0, 0, 0, 0, 0, 0, 1 }; + +enum class Colorspace { + sRGB, + Linear, +}; + +enum class Channels { + RGB, + RGBA, +}; + ByteBuffer QOIWriter::encode(Bitmap const& bitmap) { QOIWriter writer; diff --git a/Userland/Libraries/LibGfx/QOIWriter.h b/Userland/Libraries/LibGfx/QOIWriter.h index f1957aeba0..3bb8b998f1 100644 --- a/Userland/Libraries/LibGfx/QOIWriter.h +++ b/Userland/Libraries/LibGfx/QOIWriter.h @@ -11,18 +11,8 @@ namespace Gfx { -static constexpr Array qoi_magic_bytes = { 'q', 'o', 'i', 'f' }; -static constexpr Array qoi_end_marker = { 0, 0, 0, 0, 0, 0, 0, 1 }; - -enum class Colorspace { - sRGB, - Linear, -}; - -enum class Channels { - RGB, - RGBA, -}; +enum class Colorspace; +enum class Channels; class QOIWriter { public: