summaryrefslogtreecommitdiff
path: root/libavformat/wtv.h
diff options
context:
space:
mode:
authorzhentan feng <spyfeng@gmail.com>2011-05-01 21:12:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-01 21:12:02 +0200
commit5ab826c165916a301ee748ee5a1d68cf788d5d2f (patch)
tree652e757f78322bca14738e6685e61a8ecdff0481 /libavformat/wtv.h
parent80a330679f5916a868227fabcecc4889cc402a61 (diff)
downloadffmpeg-5ab826c165916a301ee748ee5a1d68cf788d5d2f.tar.gz
WTV:move the common variable used by wtvdec.c and wtvenc.c to a new file wtv.h and wtv.c.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/wtv.h')
-rw-r--r--libavformat/wtv.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/libavformat/wtv.h b/libavformat/wtv.h
new file mode 100644
index 0000000000..52c17b4363
--- /dev/null
+++ b/libavformat/wtv.h
@@ -0,0 +1,41 @@
+/*
+ * Windows Television (WTV)
+ * Copyright (c) 2010-2011 Peter Ross <pross@xvid.org>
+ *
+ * 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 AVFORMAT_WTV_H
+#define AVFORMAT_WTV_H
+
+#include "riff.h"
+#include "asf.h"
+
+#define WTV_SECTOR_BITS 12
+#define WTV_SECTOR_SIZE (1 << WTV_SECTOR_BITS)
+#define WTV_BIGSECTOR_BITS 18
+
+extern const ff_asf_guid dir_entry_guid;
+extern const ff_asf_guid wtv_guid;
+extern const ff_asf_guid timestamp_guid;
+extern const ff_asf_guid data_guid;
+extern const ff_asf_guid stream_guid;
+extern const ff_asf_guid mediatype_audio;
+extern const ff_asf_guid mediatype_video;
+extern const ff_asf_guid format_none;
+extern const AVCodecGuid video_guids[];
+#endif /* AVFORMAT_WTV_H */