diff options
| author | degasus <wickmarkus@web.de> | 2015-01-17 09:46:31 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-01-18 19:47:48 +0100 |
| commit | 615ae9f10626171fddbbbd0a23cd3e018fc960ef (patch) | |
| tree | 145d285fe1aede417ff470fab8e6f22b58f443e7 /Source/Core/VideoCommon/TextureDecoder.h | |
| parent | 37a770bb9f23404cbdc75e8cc2df31dfecb97057 (diff) | |
TexCache: remove PC_TexFormat
We only support rgba32 for a while now, so there is no need to have everything in common configureable.
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureDecoder.h | 19 |
1 files changed, 3 insertions, 16 deletions
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); |
