2021-03-02 02:13:17 +00:00
|
|
|
// Project64 - A Nintendo 64 emulator
|
2021-05-18 11:51:36 +00:00
|
|
|
// 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
|
2021-05-18 11:51:36 +00:00
|
|
|
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
|
2021-05-18 11:51:36 +00:00
|
|
|
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
|
2021-05-18 11:51:36 +00:00
|
|
|
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
|
2021-05-18 11:51:36 +00:00
|
|
|
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
|