project64/Source/Project64-video/TextureEnhancer/tc-1.1+/dxtn.h

48 lines
1.3 KiB
C
Raw Normal View History

2021-03-02 02:13:17 +00:00
// Project64 - A Nintendo 64 emulator
// https://www.pj64-emu.com/
2021-03-02 02:13:17 +00:00
// Copyright(C) 2001-2021 Project64
// Copyright(C) 2007 Hiroshi Morii
// Copyright(C) 2004 Daniel Borca
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
2013-04-17 10:30:38 +00:00
#ifndef DXTN_H_included
#define DXTN_H_included
TAPI int TAPIENTRY
2017-04-26 10:23:36 +00:00
dxt1_rgb_encode(int width, int height, int comps,
const void *source, int srcRowStride,
void *dest, int destRowStride);
2013-04-17 10:30:38 +00:00
TAPI int TAPIENTRY
2017-04-26 10:23:36 +00:00
dxt1_rgba_encode(int width, int height, int comps,
const void *source, int srcRowStride,
void *dest, int destRowStride);
2013-04-17 10:30:38 +00:00
TAPI int TAPIENTRY
2017-04-26 10:23:36 +00:00
dxt3_rgba_encode(int width, int height, int comps,
const void *source, int srcRowStride,
void *dest, int destRowStride);
2013-04-17 10:30:38 +00:00
TAPI int TAPIENTRY
2017-04-26 10:23:36 +00:00
dxt5_rgba_encode(int width, int height, int comps,
const void *source, int srcRowStride,
void *dest, int destRowStride);
2013-04-17 10:30:38 +00:00
TAPI void TAPIENTRY
dxt1_rgb_decode_1(const void *texture, int stride, // In pixels
2017-04-26 10:23:36 +00:00
int i, int j, byte *rgba);
2013-04-17 10:30:38 +00:00
TAPI void TAPIENTRY
dxt1_rgba_decode_1(const void *texture, int stride, // In pixels
2017-04-26 10:23:36 +00:00
int i, int j, byte *rgba);
2013-04-17 10:30:38 +00:00
TAPI void TAPIENTRY
dxt3_rgba_decode_1(const void *texture, int stride, // In pixels
2017-04-26 10:23:36 +00:00
int i, int j, byte *rgba);
2013-04-17 10:30:38 +00:00
TAPI void TAPIENTRY
dxt5_rgba_decode_1(const void *texture, int stride, // In pixels
2017-04-26 10:23:36 +00:00
int i, int j, byte *rgba);
2013-04-17 10:30:38 +00:00
#endif