Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
Encode

Concepts

concept  Haio::Codecs::Encodable

Functions

template<>
Result< Blob > Haio::Codecs::Encode< Format::DDS, Color::RGB565 > (Image< Color::RGB565 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::DDS, Color::RGBA8888 > (Image< Color::RGBA8888 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::KTX, Color::ETC1 > (Image< Color::ETC1 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::KTX, Color::RGB565 > (Image< Color::RGB565 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::KTX, Color::RGBA8888 > (Image< Color::RGBA8888 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::KTX2, Color::ETC1 > (Image< Color::ETC1 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::KTX2, Color::RGB565 > (Image< Color::RGB565 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::KTX2, Color::RGBA8888 > (Image< Color::RGBA8888 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::PPM, Color::RGBA8888 > (Image< Color::RGBA8888 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::PVR, Color::ETC1 > (Image< Color::ETC1 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::PVR, Color::RGB565 > (Image< Color::RGB565 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::PVR, Color::RGBA8888 > (Image< Color::RGBA8888 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::TGA, Color::BGRA8888 > (Image< Color::BGRA8888 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::TGA, Color::BGR888 > (Image< Color::BGR888 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::TGA, Color::RGBA5551 > (Image< Color::RGBA5551 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::TGA, Color::RGB555 > (Image< Color::RGB555 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::TGA, Color::PALETTE > (Image< Color::PALETTE > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::TGA, Color::GRAY8 > (Image< Color::GRAY8 > img)
template<>
Result< Blob > Haio::Codecs::Encode< Format::ZCIS, Color::RGBA8888 > (Image< Color::RGBA8888 > img)

Convert

template<>
Result< Blob > Haio::Codecs::Encode< Format::PNG, Color::RGBA8888 > (Image< Color::RGBA8888 > img)

Detailed Description

every pair this build can write out. the colour is the one stored inside the container, not the one the caller happens to hold.

Function Documentation

◆ Encode< Format::DDS, Color::RGB565 >()

Definition at line 1 of file encode.cpp.

Here is the call graph for this function:

◆ Encode< Format::DDS, Color::RGBA8888 >()

Definition at line 1 of file encode.cpp.

◆ Encode< Format::KTX, Color::ETC1 >()

Definition at line 1 of file encode.cpp.

Here is the call graph for this function:

◆ Encode< Format::KTX, Color::RGB565 >()

Definition at line 1 of file encode.cpp.

◆ Encode< Format::KTX, Color::RGBA8888 >()

Definition at line 1 of file encode.cpp.

◆ Encode< Format::KTX2, Color::ETC1 >()

Definition at line 1 of file encode.cpp.

Here is the call graph for this function:

◆ Encode< Format::KTX2, Color::RGB565 >()

Definition at line 1 of file encode.cpp.

◆ Encode< Format::KTX2, Color::RGBA8888 >()

Definition at line 1 of file encode.cpp.

◆ Encode< Format::PNG, Color::RGBA8888 >()

Definition at line 13 of file encode.cpp.

◆ Encode< Format::PPM, Color::RGBA8888 >()

takes rgba and drops the alpha on the way out, so the caller does not have to convert first. the header and the pixels share one buffer: Move writes straight into the tail instead of building a second image to copy from.

Definition at line 1 of file encode.cpp.

Here is the call graph for this function:

◆ Encode< Format::PVR, Color::ETC1 >()

Definition at line 1 of file encode.cpp.

Here is the call graph for this function:

◆ Encode< Format::PVR, Color::RGB565 >()

Definition at line 1 of file encode.cpp.

◆ Encode< Format::PVR, Color::RGBA8888 >()

Definition at line 1 of file encode.cpp.

◆ Encode< Format::TGA, Color::BGR888 >()

Definition at line 59 of file encode.cpp.

Here is the call graph for this function:

◆ Encode< Format::TGA, Color::BGRA8888 >()

everything a picture arrives with, which is why this is what a bare tga means

Definition at line 59 of file encode.cpp.

◆ Encode< Format::TGA, Color::GRAY8 >()

one byte a pixel and no colour at all. nothing converts full colour down to grey yet, so this is reached by a typed pipe from something already grey, such as a netpbm P5.

Definition at line 59 of file encode.cpp.

◆ Encode< Format::TGA, Color::PALETTE >()

the indices as they are, with their own colours beside them.

this is the one container haio has that stores a palette rather than expanding it, so "-filter bayer -palete cga out.tga" comes out as one byte a pixel instead of four holding sixteen distinct values.

Definition at line 59 of file encode.cpp.

◆ Encode< Format::TGA, Color::RGB555 >()

Definition at line 59 of file encode.cpp.

◆ Encode< Format::TGA, Color::RGBA5551 >()

Definition at line 59 of file encode.cpp.

◆ Encode< Format::ZCIS, Color::RGBA8888 >()

Definition at line 62 of file encode.cpp.