summaryrefslogtreecommitdiff
path: root/src/libffmpeg/xine_decoder.h
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2004-01-31 01:19:17 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2004-01-31 01:19:17 +0000
commit80039cba62e6fc86d4e4e4517e756e6e2219bf78 (patch)
tree25cae3069a42a53ee09f80adb40d910b2258c635 /src/libffmpeg/xine_decoder.h
parent12ce480315abc984c997eb2ed3357d116712915a (diff)
downloadxine-lib-80039cba62e6fc86d4e4e4517e756e6e2219bf78.tar.gz
xine-lib-80039cba62e6fc86d4e4e4517e756e6e2219bf78.tar.bz2
Split ffmpeg interface into audio and video specific files
CVS patchset: 6087 CVS date: 2004/01/31 01:19:17
Diffstat (limited to 'src/libffmpeg/xine_decoder.h')
-rw-r--r--src/libffmpeg/xine_decoder.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/libffmpeg/xine_decoder.h b/src/libffmpeg/xine_decoder.h
new file mode 100644
index 000000000..d96180702
--- /dev/null
+++ b/src/libffmpeg/xine_decoder.h
@@ -0,0 +1,63 @@
+/*
+ * Copyright (C) 2001-2004 the xine project
+ *
+ * This file is part of xine, a free video player.
+ *
+ * xine 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * xine 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; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ * $Id: xine_decoder.h,v 1.1 2004/01/31 01:19:17 jstembridge Exp $
+ *
+ */
+
+#ifndef HAVE_XINE_DECODER_H
+#define HAVE_XINE_DECODER_H
+
+#ifdef _MSC_VER
+/* ffmpeg has own definitions of those types */
+# undef int8_t
+# undef uint8_t
+# undef int16_t
+# undef uint16_t
+# undef int32_t
+# undef uint32_t
+# undef int64_t
+# undef uint64_t
+#endif
+
+#include "libavcodec/avcodec.h"
+
+#ifdef _MSC_VER
+# undef malloc
+# undef free
+# undef realloc
+#endif
+
+typedef struct ff_codec_s {
+ uint32_t type;
+ enum CodecID id;
+ const char *name;
+} ff_codec_t;
+
+void *init_audio_plugin (xine_t *xine, void *data);
+void *init_video_plugin (xine_t *xine, void *data);
+
+extern decoder_info_t dec_info_ffmpeg_video;
+extern decoder_info_t dec_info_ffmpeg_wmv8;
+extern decoder_info_t dec_info_ffmpeg_audio;
+
+extern pthread_once_t once_control;
+void init_once_routine(void);
+
+#endif