mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
LibGfx/WebP: Move FourCC into ImageDecoder.h
It will be shared with upcoming ILBM decoder.
This commit is contained in:
parent
dea91afba7
commit
66d6388b8a
2 changed files with 15 additions and 15 deletions
|
@ -21,21 +21,6 @@ namespace Gfx {
|
|||
|
||||
namespace {
|
||||
|
||||
struct FourCC {
|
||||
constexpr FourCC(char const* name)
|
||||
{
|
||||
cc[0] = name[0];
|
||||
cc[1] = name[1];
|
||||
cc[2] = name[2];
|
||||
cc[3] = name[3];
|
||||
}
|
||||
|
||||
bool operator==(FourCC const&) const = default;
|
||||
bool operator!=(FourCC const&) const = default;
|
||||
|
||||
char cc[4];
|
||||
};
|
||||
|
||||
// https://developers.google.com/speed/webp/docs/riff_container#webp_file_header
|
||||
struct WebPFileHeader {
|
||||
FourCC riff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue