载入中...
搜索中...
未找到
eve::asset::detail 命名空间参考

类

struct  TgaPixels
 Owning top-down RGBA8 pixels decoded from a TGA source. 更多...
 
struct  TiffPixels
 Owning top-down RGB(A) TIFF pixels; unspecified fourth samples remain alpha data. 更多...
 

函数

Result< std::vector< std::uint8_t > > 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< std::vector< std::uint8_t > > 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 > 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.
 
Result< TiffPixels > 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).
 

函数说明

◆ decodeBc3Rgba8()

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.

参数
bytesBorrowed blocks; exactly ceil(width/4)*ceil(height/4)*16 bytes.
widthPositive mip width.
heightPositive mip height.
maximumDecodedBytesMaximum output allocation.
返回
Owning pixels or checked diagnostic. Reentrant; no callbacks or retained pointers.
备注
No transfer conversion or vertical flip; the source importer owns these semantics.

在文件 SourceBc3.cpp 第 6 行定义.

引用了 at, b, bx, by, bytes, c, color, columns, eve::Diagnostic::error(), g, height, eve::InvalidArgument, output, pixels, r, rows, width, x , 以及 y.

被这些函数引用 eve::asset_import::prepareUnityNativeTexture().

◆ decodeTgaRgba8()

EVENGINE_API_FOUNDATION 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.

参数
bytesBorrowed encoded source; no pointers survive this call.
maximumDecodedBytesOutput budget including the runtime image header.
返回
Owning candidate or checked failure; no external mutation. @thread Reentrant and callback-free. Source transfer is applied by the cooker.

在文件 SourceTga.cpp 第 7 行定义.

引用了 b, channels, code, count, cursor, dx, dy, end, eve::Diagnostic::error(), eve::Result< T >::failure(), h, eve::InvalidArgument, message, p, eve::ParseError, run, eve::Result< T >::success(), eve::Unsupported, w, x , 以及 y.

被这些函数引用 eve::asset::cookCanonicalImageRgba8().

◆ decodeTiffRgba8()

EVENGINE_API_FOUNDATION 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).

参数
bytesBorrowed encoded bytes, used synchronously only.
maximumDecodedBytesLimit for output and each decompressed strip.
返回
Owning pixels or checked malformed/unsupported diagnostic. No partial publication. @thread Reentrant, no callbacks or global state.

在文件 SourceTiff.cpp 第 81 行定义.

引用了 at, b, bytes, c, channels, count, decodedSize, eve::Diagnostic::error(), f, eve::Result< T >::failure(), h, id, input, length, lines, n, offset, eve::ParseError, pixels, previous, r, rows, size, source, start, step, eve::Result< T >::success(), t, type, eve::Unsupported, v, values, w, x , 以及 y.

被这些函数引用 eve::asset::cookCanonicalImageRgba8().

◆ encodeSourcePng()

EVENGINE_API_FOUNDATION 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.

参数
widthPixel width; must be positive.
heightPixel height; must be positive.
pixelsBorrowed tightly packed RGBA8 pixels, observed only for this call.
maximumBytesLimit for scanline storage and encoded output.
返回
Owning PNG source or checked diagnostic. Reentrant, no callbacks or external mutation.

在文件 SourcePng.cpp 第 6 行定义.

引用了 at, count, eve::Diagnostic::error(), height, eve::InvalidArgument, payload, pixels, type, v, width , 以及 y.

被这些函数引用 eve::asset_import::prepareUnityNativeTexture().