[Mplayer-cvslog] CVS: main/libmpdemux asf.h,1.14,1.15

Bertrand Baudet bertrand at mplayer.dev.hu
Sun Apr 14 07:47:36 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv2985

Modified Files:
	asf.h 
Log Message:
Added big endian macro for asf_chunk_t and added defines for the ASF chunk type.
(reworked of the patch from Guillaume Morin <guillaume at morinfr.org>)


Index: asf.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- asf.h	23 Jan 2002 08:43:04 -0000	1.14
+++ asf.h	14 Apr 2002 05:47:27 -0000	1.15
@@ -103,6 +103,18 @@
 	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 @@
     (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 @@
 #define le2me_ASF_content_description_t(h) /**/
 #define le2me_BITMAPINFOHEADER(h)   /**/
 #define le2me_WAVEFORMATEX(h)	    /**/
+#define le2me_ASF_stream_chunck_t(h) /**/
 #endif
 
 #endif




More information about the MPlayer-cvslog mailing list