diff options
author | Ivo van Poorten <ivop@euronet.nl> | 2007-05-07 13:15:24 +0000 |
---|---|---|
committer | Ivo van Poorten <ivop@euronet.nl> | 2007-05-07 13:15:24 +0000 |
commit | c67b89c534df624a0f4ca1c93520fb50adab88c0 (patch) | |
tree | d539a29dc1fd08d2effa8e68827caed4dc1788c6 /libavcodec/s3tc.h | |
parent | 9e010b41e69ae2e6fc76e8cabb83ce10f6387926 (diff) | |
download | ffmpeg-c67b89c534df624a0f4ca1c93520fb50adab88c0.tar.gz |
generic S3TC DXT1 and DXT3 decoding functions
Originally committed as revision 8925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/s3tc.h')
-rw-r--r-- | libavcodec/s3tc.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libavcodec/s3tc.h b/libavcodec/s3tc.h new file mode 100644 index 0000000000..ed385ae79e --- /dev/null +++ b/libavcodec/s3tc.h @@ -0,0 +1,36 @@ +/* + * S3 Texture Compression (S3TC) decoding functions + * Copyright (c) 2007 by Ivo van Poorten + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef FF_S3TC_H +#define FF_S3TC_H + +#define FF_S3TC_DXT1 0x31545844 +#define FF_S3TC_DXT3 0x33545844 + +void ff_decode_dxt1(const uint8_t *src, uint8_t *dst, + const unsigned int w, const unsigned int h, + const unsigned int stride); +void ff_decode_dxt3(const uint8_t *src, uint8_t *dst, + const unsigned int w, const unsigned int h, + const unsigned int stride); + +#endif |