diff s3tc.h @ 4933:ed67837533b0 libavcodec

generic S3TC DXT1 and DXT3 decoding functions
author ivo
date Mon, 07 May 2007 13:15:24 +0000
parents
children a65cd5b551c2
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/s3tc.h	Mon May 07 13:15:24 2007 +0000
@@ -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