LeviLamina
Loading...
Searching...
No Matches
texd.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/render_dragon/texture_decoder/texd/CompressionScheme.h"
7#include "mc/external/render_dragon/texture_decoder/texd/PixelFormat.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace texd { class StorageBuffer; }
12namespace texd { struct CompressedImageDescription; }
13namespace texd { struct DecompressedImageDescription; }
14namespace texd { struct GpuStreamDescription; }
15namespace texd { struct Ktx1Header; }
16namespace texd { struct MipLevelDescription; }
17// clang-format on
18
19namespace texd {
20// functions
21// NOLINTBEGIN
22MCAPI bool convertRgba(uchar* outBuffer, ::texd::PixelFormat outFormat, uchar const* inBuffer, uint width, uint height);
23
24MCAPI bool decompress(
25 uchar* destBuffer,
26 ::texd::DecompressedImageDescription& dImg,
27 ::texd::PixelFormat pixelFormat,
28 ::texd::StorageBuffer const& storage,
29 uint mipLevel
30);
31
32MCAPI bool decompressMipLevel(
33 ::texd::CompressionScheme scheme,
34 uint width,
35 uint height,
36 ::texd::PixelFormat inFormat,
37 uchar const* inBuffer,
38 uint64 inBufferSize,
39 ::texd::PixelFormat outFormat,
40 uchar* outBuffer
41);
42
43MCAPI bool determineImageDescription(::texd::CompressedImageDescription& cImg, uchar const* stream);
44
45MCAPI bool getMipLevelData(::texd::MipLevelDescription& mipLevelDesc, uchar const* stream, uint mipLevel);
46
47MCAPI bool
48getStreamForGpu(::texd::GpuStreamDescription& gpuStream, ::texd::StorageBuffer const& storage, uint mipLevel);
49
50MCAPI bool loadCompressedImageFromMemory(
51 ::texd::StorageBuffer& storage,
52 ::texd::CompressedImageDescription& cImg,
53 uchar const* stream,
54 uint64 streamSize
55);
56
57MCAPI ::texd::Ktx1Header parseHeader(uchar const* stream);
58// NOLINTEND
59
60} // namespace texd
Definition StorageBuffer.h:7
Definition CompressedImageDescription.h:12
Definition DecompressedImageDescription.h:10
Definition GpuStreamDescription.h:7
Definition Ktx1Header.h:7
Definition MipLevelDescription.h:7