LibGfx: Move QOIWriter implementation-only things into cpp file

No behavior change.
This commit is contained in:
Nico Weber 2023-02-15 12:13:04 -05:00 committed by Jelle Raaijmakers
parent 85f3de6331
commit ecc321e099
Notes: sideshowbarker 2024-07-18 00:34:07 +09:00
2 changed files with 15 additions and 12 deletions

View File

@ -10,6 +10,19 @@
namespace Gfx {
static constexpr Array<u8, 4> qoi_magic_bytes = { 'q', 'o', 'i', 'f' };
static constexpr Array<u8, 8> 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;

View File

@ -11,18 +11,8 @@
namespace Gfx {
static constexpr Array<u8, 4> qoi_magic_bytes = { 'q', 'o', 'i', 'f' };
static constexpr Array<u8, 8> 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: