summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/avi/tdefile_avi.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:32 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:04:32 -0600
commit793cf2dff35dffe3ec4c7b24252947dde758a1b2 (patch)
tree7d9972d99ed281a36418ae9f5fc128e3c951532c /tdefile-plugins/avi/tdefile_avi.h
parent04f764aaf273340e1d5811d4216dd8127cacc5db (diff)
downloadtdemultimedia-793cf2dff35dffe3ec4c7b24252947dde758a1b2.tar.gz
tdemultimedia-793cf2dff35dffe3ec4c7b24252947dde758a1b2.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdefile-plugins/avi/tdefile_avi.h')
-rw-r--r--tdefile-plugins/avi/tdefile_avi.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/tdefile-plugins/avi/tdefile_avi.h b/tdefile-plugins/avi/tdefile_avi.h
new file mode 100644
index 00000000..b73f324b
--- /dev/null
+++ b/tdefile-plugins/avi/tdefile_avi.h
@@ -0,0 +1,91 @@
+/* This file is part of the KDE project
+ * Copyright (C) 2002 Shane Wright <me@shanewright.co.uk>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License as published by the Free Software Foundation version 2.
+ *
+ * This program 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
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef __KFILE_AVI_H__
+#define __KFILE_AVI_H__
+
+#include <tdefilemetainfo.h>
+#include <tqfile.h>
+
+#if !defined(__osf__)
+#include <inttypes.h>
+#else
+typedef unsigned short uint16_t;
+typedef unsigned int uint32_t;
+#endif
+
+
+
+class TQStringList;
+
+class KAviPlugin: public KFilePlugin
+{
+ Q_OBJECT
+
+
+public:
+ KAviPlugin( TQObject *parent, const char *name, const TQStringList& args );
+
+
+
+ virtual bool readInfo( KFileMetaInfo& info, uint what);
+
+private:
+
+ bool read_avi();
+ bool read_list();
+ bool read_avih();
+ bool read_strl();
+
+ bool read_strf(uint32_t blocksize);
+ bool read_strh(uint32_t blocksize);
+
+ // methods to sort out human readable names for the codecs
+ const char * resolve_audio(uint16_t id);
+
+ TQFile f;
+ TQDataStream dstream;
+
+ // AVI header information
+ bool done_avih;
+ uint32_t avih_microsecperframe;
+ uint32_t avih_maxbytespersec;
+ uint32_t avih_reserved1;
+ uint32_t avih_flags;
+ uint32_t avih_totalframes;
+ uint32_t avih_initialframes;
+ uint32_t avih_streams;
+ uint32_t avih_buffersize;
+ uint32_t avih_width;
+ uint32_t avih_height;
+ uint32_t avih_scale;
+ uint32_t avih_rate;
+ uint32_t avih_start;
+ uint32_t avih_length;
+
+ char handler_vids[5]; // leave room for trailing \0
+ char handler_auds[5];
+ uint16_t handler_audio; // the ID of the audio codec
+ bool done_audio;
+
+ bool wantstrf;
+
+};
+
+#endif