载入中...
搜索中...
未找到
#include "asset/SourcePng.h"#include <zlib.h>#include <algorithm>#include <array>#include <limits>#include <map>#include <string_view>#include "asset/SourceBc3.h"#include "asset/SourceTga.h"#include "asset/SourceTiff.h"命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::asset |
| namespace | eve::asset::detail |
函数 | |
| Result< std::vector< std::uint8_t > > | eve::asset::detail::encodeSourcePng (std::uint32_t width, std::uint32_t height, std::span< const std::uint8_t > pixels, std::uint64_t maximumBytes) |
| Encode top-down RGBA8 source pixels without transfer conversion. | |
| Result< TgaPixels > | eve::asset::detail::decodeTgaRgba8 (std::span< const std::uint8_t > bytes, std::uint64_t maximumDecodedBytes) |
| Decode true-color 24/32-bit raw or RLE TGA with bounded allocation. | |
| EVENGINE_API_FOUNDATION Result< std::vector< std::uint8_t > > | eve::asset::detail::decodeBc3Rgba8 (std::span< const std::uint8_t > bytes, std::uint32_t width, std::uint32_t height, std::uint64_t maximumDecodedBytes) |
| Decode one BC3/DXT5 mip level into tightly packed RGBA8 in source row order. | |
| Result< TiffPixels > | eve::asset::detail::decodeTiffRgba8 (std::span< const std::uint8_t > bytes, std::uint64_t maximumDecodedBytes) |
| Decode bounded strip-based unsigned RGB TIFF (8/16 bits, raw/LZW/Deflate). | |
变量说明
◆ bytes
| std::span<const std::uint8_t> bytes |
在文件 SourcePng.cpp 第 183 行定义.
◆ count
| std::uint32_t count |
在文件 SourcePng.cpp 第 194 行定义.
◆ little
| bool little |
在文件 SourcePng.cpp 第 184 行定义.
◆ offset
| std::uint32_t offset |
在文件 SourcePng.cpp 第 194 行定义.
◆ type
| std::uint32_t type |
在文件 SourcePng.cpp 第 194 行定义.