Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
header.hpp File Reference
#include <haio_codec.hpp>
#include <optional>
#include <string_view>
Include dependency graph for header.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Haio::Codecs::Tga::Header

Namespaces

namespace  Haio
namespace  Haio::Codecs
namespace  Haio::Codecs::Tga

Functions

bool Haio::Codecs::Tga::hasFooter (Bytes data)
Result< Header > Haio::Codecs::Tga::readHeader (Bytes data)
std::optional< Color > Haio::Codecs::Tga::colorOf (const Header &header)

Variables

constexpr size_t Haio::Codecs::Tga::headerBytes = 18
constexpr size_t Haio::Codecs::Tga::maxPixels = size_t{1} << 28
constexpr std::string_view Haio::Codecs::Tga::footerSignature = "TRUEVISION-XFILE."
constexpr size_t Haio::Codecs::Tga::footerBytes = 26