mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
TextureDecoder: Deduplicate some utility code
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "VideoCommon/LookUpTables.h"
|
||||
#include "VideoCommon/TextureDecoder.h"
|
||||
#include "VideoCommon/TextureDecoder_Util.h"
|
||||
#include "VideoCommon/sfont.inc"
|
||||
|
||||
static bool TexFmt_Overlay_Enable = false;
|
||||
@ -422,18 +423,6 @@ static inline u32 DecodePixel_Paletted(u16 pixel, TlutFormat tlutfmt)
|
||||
}
|
||||
}
|
||||
|
||||
struct DXTBlock
|
||||
{
|
||||
u16 color1;
|
||||
u16 color2;
|
||||
u8 lines[4];
|
||||
};
|
||||
|
||||
static inline u32 MakeRGBA(int r, int g, int b, int a)
|
||||
{
|
||||
return (a << 24) | (b << 16) | (g << 8) | r;
|
||||
}
|
||||
|
||||
void TexDecoder_DecodeTexel(u8* dst, const u8* src, int s, int t, int imageWidth, int texformat,
|
||||
const u8* tlut_, TlutFormat tlutfmt)
|
||||
{
|
||||
|
Reference in New Issue
Block a user