Mercurial > mplayer.hg
changeset 5616:8cfce21c6013
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>)
author | bertrand |
---|---|
date | Sun, 14 Apr 2002 05:47:27 +0000 |
parents | 177707083598 |
children | 75a43bb3ed80 |
files | libmpdemux/asf.h |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/asf.h Sun Apr 14 02:07:44 2002 +0000 +++ b/libmpdemux/asf.h Sun Apr 14 05:47:27 2002 +0000 @@ -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