From 615ae9f10626171fddbbbd0a23cd3e018fc960ef Mon Sep 17 00:00:00 2001 From: degasus Date: Sat, 17 Jan 2015 09:46:31 +0100 Subject: TexCache: remove PC_TexFormat We only support rgba32 for a while now, so there is no need to have everything in common configureable. --- Source/Core/VideoCommon/TextureDecoder.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'Source/Core/VideoCommon/TextureDecoder.h') diff --git a/Source/Core/VideoCommon/TextureDecoder.h b/Source/Core/VideoCommon/TextureDecoder.h index 5e2d9a5609..f73883493d 100644 --- a/Source/Core/VideoCommon/TextureDecoder.h +++ b/Source/Core/VideoCommon/TextureDecoder.h @@ -66,25 +66,12 @@ int TexDecoder_GetBlockWidthInTexels(u32 format); int TexDecoder_GetBlockHeightInTexels(u32 format); int TexDecoder_GetPaletteSize(int fmt); -enum PC_TexFormat -{ - PC_TEX_FMT_NONE = 0, - PC_TEX_FMT_BGRA32, - PC_TEX_FMT_RGBA32, - PC_TEX_FMT_I4_AS_I8, - PC_TEX_FMT_IA4_AS_IA8, - PC_TEX_FMT_I8, - PC_TEX_FMT_IA8, - PC_TEX_FMT_RGB565, - PC_TEX_FMT_DXT1, -}; - -PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, int texformat, const u8* tlut, TlutFormat tlutfmt); -PC_TexFormat TexDecoder_DecodeRGBA8FromTmem(u8* dst, const u8 *src_ar, const u8 *src_gb, int width, int height); +void TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, int texformat, const u8* tlut, TlutFormat tlutfmt); +void TexDecoder_DecodeRGBA8FromTmem(u8* dst, const u8 *src_ar, const u8 *src_gb, int width, int height); void TexDecoder_DecodeTexel(u8 *dst, const u8 *src, int s, int t, int imageWidth, int texformat, const u8* tlut, TlutFormat tlutfmt); void TexDecoder_DecodeTexelRGBA8FromTmem(u8 *dst, const u8 *src_ar, const u8* src_gb, int s, int t, int imageWidth); void TexDecoder_SetTexFmtOverlayOptions(bool enable, bool center); /* Internal method, implemented by TextureDecoder_Generic and TextureDecoder_x64. */ -PC_TexFormat _TexDecoder_DecodeImpl(u32 * dst, const u8 * src, int width, int height, int texformat, const u8* tlut, TlutFormat tlutfmt); +void _TexDecoder_DecodeImpl(u32 * dst, const u8 * src, int width, int height, int texformat, const u8* tlut, TlutFormat tlutfmt); -- cgit v1.2.3