Path: blob/master/libmupen64plus/mupen64plus-video-glide64mk2/src/GlideHQ/tc-1.1+/dxtn.h
2 views
/*1* DXTn codec2* Version: 1.13*4* Copyright (C) 2004 Daniel Borca All Rights Reserved.5*6* this is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2, or (at your option)9* any later version.10*11* this is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with GNU Make; see the file COPYING. If not, write to18* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.19*/202122#ifndef DXTN_H_included23#define DXTN_H_included2425TAPI int TAPIENTRY26dxt1_rgb_encode (int width, int height, int comps,27const void *source, int srcRowStride,28void *dest, int destRowStride);2930TAPI int TAPIENTRY31dxt1_rgba_encode (int width, int height, int comps,32const void *source, int srcRowStride,33void *dest, int destRowStride);3435TAPI int TAPIENTRY36dxt3_rgba_encode (int width, int height, int comps,37const void *source, int srcRowStride,38void *dest, int destRowStride);3940TAPI int TAPIENTRY41dxt5_rgba_encode (int width, int height, int comps,42const void *source, int srcRowStride,43void *dest, int destRowStride);4445TAPI void TAPIENTRY46dxt1_rgb_decode_1 (const void *texture, int stride /* in pixels */,47int i, int j, byte *rgba);4849TAPI void TAPIENTRY50dxt1_rgba_decode_1 (const void *texture, int stride /* in pixels */,51int i, int j, byte *rgba);5253TAPI void TAPIENTRY54dxt3_rgba_decode_1 (const void *texture, int stride /* in pixels */,55int i, int j, byte *rgba);5657TAPI void TAPIENTRY58dxt5_rgba_decode_1 (const void *texture, int stride /* in pixels */,59int i, int j, byte *rgba);6061#endif626364