1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibGfx: Use enum instead of magic numbers for PNG Color and Filter types

This commit is contained in:
Karol Kosek 2022-07-10 00:08:32 +02:00 committed by Andreas Kling
parent 9dbec601b0
commit ebc20f7ac3
4 changed files with 81 additions and 48 deletions

View file

@ -9,6 +9,7 @@
#include <AK/Vector.h>
#include <LibGfx/Forward.h>
#include <LibGfx/PNGShared.h>
namespace Gfx {
@ -24,7 +25,7 @@ private:
Vector<u8> m_data;
void add_chunk(PNGChunk&);
void add_png_header();
void add_IHDR_chunk(u32 width, u32 height, u8 bit_depth, u8 color_type, u8 compression_method, u8 filter_method, u8 interlace_method);
void add_IHDR_chunk(u32 width, u32 height, u8 bit_depth, PNG::ColorType color_type, u8 compression_method, u8 filter_method, u8 interlace_method);
void add_IDAT_chunk(Gfx::Bitmap const&);
void add_IEND_chunk();
};