mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17: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
|
@ -87,4 +87,19 @@ private:
|
||||||
NonnullOwnPtr<ImageDecoderPlugin> mutable m_plugin;
|
NonnullOwnPtr<ImageDecoderPlugin> mutable m_plugin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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];
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,21 +21,6 @@ namespace Gfx {
|
||||||
|
|
||||||
namespace {
|
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
|
// https://developers.google.com/speed/webp/docs/riff_container#webp_file_header
|
||||||
struct WebPFileHeader {
|
struct WebPFileHeader {
|
||||||
FourCC riff;
|
FourCC riff;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue