Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
detect.cpp
Go to the documentation of this file.
1#include <haio_codec.hpp>
2#include <haio_util.hpp>
3
4namespace Haio::Codecs {
5
6/** every layer inside is a ppm, so rgba is what the encoder takes in */
7template <> struct DefaultColor<Format::ZCIS> { static constexpr Color value = Color::RGBA8888; };
8
9/**
10 * @addtogroup detect
11 * @{
12 */
13/**
14 * @todo zcis has no decoder at all, so a .zcis round trip is impossible. it also
15 * cannot say which colour is inside without reading the member names.
16 */
17template <>
19 return Util::matches(data, "!<arch>\n");
20}
21/** @} */
22
23}
bool Detect< Format::ZCIS, Color::RGBA8888 >(Bytes data)
Definition detect.cpp:18
bool matches(Bytes data, Bytes magic)
Definition matches.cpp:7
std::span< const uint8_t > Bytes