mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
LibGfx: Move QOIWriter implementation-only things into cpp file
No behavior change.
This commit is contained in:
parent
85f3de6331
commit
ecc321e099
2 changed files with 15 additions and 12 deletions
|
@ -10,6 +10,19 @@
|
||||||
|
|
||||||
namespace Gfx {
|
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)
|
ByteBuffer QOIWriter::encode(Bitmap const& bitmap)
|
||||||
{
|
{
|
||||||
QOIWriter writer;
|
QOIWriter writer;
|
||||||
|
|
|
@ -11,18 +11,8 @@
|
||||||
|
|
||||||
namespace Gfx {
|
namespace Gfx {
|
||||||
|
|
||||||
static constexpr Array<u8, 4> qoi_magic_bytes = { 'q', 'o', 'i', 'f' };
|
enum class Colorspace;
|
||||||
static constexpr Array<u8, 8> qoi_end_marker = { 0, 0, 0, 0, 0, 0, 0, 1 };
|
enum class Channels;
|
||||||
|
|
||||||
enum class Colorspace {
|
|
||||||
sRGB,
|
|
||||||
Linear,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum class Channels {
|
|
||||||
RGB,
|
|
||||||
RGBA,
|
|
||||||
};
|
|
||||||
|
|
||||||
class QOIWriter {
|
class QOIWriter {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue