mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
* Replace C++/CLI components with P/Invoke * Deleted C++/CLI projects * Use Utf8StringHandle to marshal UTF-8 strings * Use plaform-default calling convention * Handle DLL preloading on Linux and macOS * Change intermediate and output directories of native projects * Improve P/Invoke documentation
20 lines
757 B
C
20 lines
757 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
struct color_bgra
|
|
{
|
|
uint8_t b;
|
|
uint8_t g;
|
|
uint8_t r;
|
|
uint8_t a;
|
|
};
|
|
|
|
const color_bgra g_black_color{ 0, 0, 0, 255 };
|
|
|
|
int decode_bc1(const uint8_t* data, const long w, const long h, uint32_t* image);
|
|
void decode_bc3_alpha(const uint8_t* data, uint32_t* outbuf, int channel);
|
|
int decode_bc3(const uint8_t* data, const long w, const long h, uint32_t* image);
|
|
int decode_bc4(const uint8_t* data, uint32_t m_width, uint32_t m_height, uint32_t* image);
|
|
int decode_bc5(const uint8_t* data, uint32_t m_width, uint32_t m_height, uint32_t* image);
|
|
int decode_bc6(const uint8_t* data, uint32_t m_width, uint32_t m_height, uint32_t* image);
|
|
int decode_bc7(const uint8_t* data, uint32_t m_width, uint32_t m_height, uint32_t* image); |