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: