summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/idct/idct.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2001-12-23 20:21:20 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2001-12-23 20:21:20 +0000
commit3417567558ed1e3cea8bf67f67d56d3c9c4002a9 (patch)
treeedfb223736c9ab4c4b551569111470e3ed750b3f /gst-libs/gst/idct/idct.h
parentd5bcd85bf30f52cb9393999e1136d68a085a6321 (diff)
downloadgst-plugins-bad-3417567558ed1e3cea8bf67f67d56d3c9c4002a9.tar.gz
gst-plugins-bad-3417567558ed1e3cea8bf67f67d56d3c9c4002a9.tar.bz2
gst-plugins-bad-3417567558ed1e3cea8bf67f67d56d3c9c4002a9.zip
more fixes
Original commit message from CVS: more fixes
Diffstat (limited to 'gst-libs/gst/idct/idct.h')
-rw-r--r--gst-libs/gst/idct/idct.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/gst-libs/gst/idct/idct.h b/gst-libs/gst/idct/idct.h
new file mode 100644
index 00000000..b5654737
--- /dev/null
+++ b/gst-libs/gst/idct/idct.h
@@ -0,0 +1,54 @@
+/* Gnome-Streamer
+ * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+
+#ifndef __GST_IDCT_H__
+#define __GST_IDCT_H__
+
+#include <glib.h>
+
+typedef enum {
+ GST_IDCT_DEFAULT,
+ GST_IDCT_INT,
+ GST_IDCT_FAST_INT,
+ GST_IDCT_FLOAT,
+ GST_IDCT_MMX,
+ GST_IDCT_MMX32,
+ GST_IDCT_SSE,
+} GstIDCTMethod;
+
+typedef struct _GstIDCT GstIDCT;
+typedef void (*GstIDCTFunction) (gshort *block);
+
+#define GST_IDCT_TRANSPOSE(idct) ((idct)->need_transpose)
+
+struct _GstIDCT {
+ /* private */
+ GstIDCTFunction convert;
+ GstIDCTFunction convert_sparse;
+ gboolean need_transpose;
+};
+
+
+GstIDCT *gst_idct_new(GstIDCTMethod method);
+#define gst_idct_convert(idct, blocks) (idct)->convert((blocks))
+#define gst_idct_convert_sparse(idct, blocks) (idct)->convert_sparse((blocks))
+void gst_idct_destroy(GstIDCT *idct);
+
+#endif /* __GST_IDCT_H__ */