mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 16:45:08 +00:00
29 lines
469 B
C++
29 lines
469 B
C++
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Gfx::PNG {
|
|
|
|
// https://www.w3.org/TR/PNG/#6Colour-values
|
|
enum class ColorType : u8 {
|
|
Greyscale = 0,
|
|
Truecolor = 2, // RGB
|
|
IndexedColor = 3,
|
|
GreyscaleWithAlpha = 4,
|
|
TruecolorWithAlpha = 6,
|
|
};
|
|
|
|
// https://www.w3.org/TR/PNG/#9Filter-types
|
|
enum class FilterType : u8 {
|
|
None,
|
|
Sub,
|
|
Up,
|
|
Average,
|
|
Paeth,
|
|
};
|
|
|
|
};
|