summaryrefslogtreecommitdiffstats
path: root/libmpdemux/asf.h
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-14 05:47:27 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-14 05:47:27 +0000
commitb6442cfc4588e0f26e69584f940b0c4e65a4fe49 (patch)
tree97ba80c3fcf2eabbbc8ae63e96f5cdce697ee7e6 /libmpdemux/asf.h
parentd414a3f2f7e6060a03c3f458c8658012f2295d21 (diff)
downloadmpv-b6442cfc4588e0f26e69584f940b0c4e65a4fe49.tar.bz2
mpv-b6442cfc4588e0f26e69584f940b0c4e65a4fe49.tar.xz
Added big endian macro for asf_chunk_t and added defines for the ASF chunk type.
(reworked of the patch from Guillaume Morin <guillaume@morinfr.org>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5617 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/asf.h')
-rw-r--r--libmpdemux/asf.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libmpdemux/asf.h b/libmpdemux/asf.h
index c72982bade..5ad0b0dc5f 100644
--- a/libmpdemux/asf.h
+++ b/libmpdemux/asf.h
@@ -103,6 +103,18 @@ typedef struct __attribute__((packed)) {
uint16_t size_confirm;
} ASF_stream_chunck_t;
+// Definition of the stream type
+#ifdef WORDS_BIGENDIAN
+ #define ASF_STREAMING_CLEAR 0x2443 // $C
+ #define ASF_STREAMING_DATA 0x2444 // $D
+ #define ASF_STREAMING_END_TRANS 0x2445 // $E
+ #define ASF_STREAMING_HEADER 0x2448 // $H
+#else
+ #define ASF_STREAMING_CLEAR 0x4324 // $C
+ #define ASF_STREAMING_DATA 0x4424 // $D
+ #define ASF_STREAMING_END_TRANS 0x4524 // $E
+ #define ASF_STREAMING_HEADER 0x4824 // $H
+#endif
// Definition of the differents type of ASF streaming
typedef enum {
@@ -174,6 +186,12 @@ typedef enum {
(h)->wBitsPerSample = le2me_16((h)->wBitsPerSample); \
(h)->cbSize = le2me_16((h)->cbSize); \
}
+#define le2me_ASF_stream_chunck_t(h) { \
+ (h)->size = le2me_16((h)->size); \
+ (h)->sequence_number = le2me_32((h)->sequence_number); \
+ (h)->unknown = le2me_16((h)->unknown); \
+ (h)->size_confirm = le2me_16((h)->size_confirm); \
+}
#else
#define le2me_ASF_obj_header_t(h) /**/
#define le2me_ASF_header_t(h) /**/
@@ -182,6 +200,7 @@ typedef enum {
#define le2me_ASF_content_description_t(h) /**/
#define le2me_BITMAPINFOHEADER(h) /**/
#define le2me_WAVEFORMATEX(h) /**/
+#define le2me_ASF_stream_chunck_t(h) /**/
#endif
#endif