annotate libmpdemux/asf.h @ 3196:ca4aaadbfb0a

extrachecks for weird configs GUI (--enable-gui --disable-png for instance)
author pl
date Thu, 29 Nov 2001 16:47:07 +0000
parents 6b31e121f36a
children 28301d979dba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1000
40b11384693b Modified functions prototype.
bertrand
parents: 904
diff changeset
1 #ifndef __ASF_H
40b11384693b Modified functions prototype.
bertrand
parents: 904
diff changeset
2 #define __ASF_H
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
3
2555
66837325b929 config.h cleanup, few things added to steram/demuxer headers
arpi
parents: 2489
diff changeset
4 //#include "config.h" /* for WORDS_BIGENDIAN */
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
5 #include <inttypes.h>
1342
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
6 #include "bswap.h"
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
7 #ifdef STREAMING
3041
6b31e121f36a Changed the some functions prototypes for the network streaming.
bertrand
parents: 2555
diff changeset
8 #include "stream.h"
1000
40b11384693b Modified functions prototype.
bertrand
parents: 904
diff changeset
9 #include "network.h"
1342
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
10 #endif
904
11879db9d4cc Added some functions prototypes.
bertrand
parents: 871
diff changeset
11
871
ab94c4cf96d8 Continue implementation of ASF streaming.
bertrand
parents: 833
diff changeset
12 #ifndef MIN
ab94c4cf96d8 Continue implementation of ASF streaming.
bertrand
parents: 833
diff changeset
13 #define MIN(a,b) ((a<b)?a:b)
ab94c4cf96d8 Continue implementation of ASF streaming.
bertrand
parents: 833
diff changeset
14 #endif
ab94c4cf96d8 Continue implementation of ASF streaming.
bertrand
parents: 833
diff changeset
15
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
16 ///////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
17 // MS GUID definition
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
18 ///////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
19 #ifndef GUID_DEFINED
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
20 #define GUID_DEFINED
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
21 // Size of GUID is 16 bytes!
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
22 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
23 uint32_t Data1; // 4 bytes
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
24 uint16_t Data2; // 2 bytes
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
25 uint16_t Data3; // 2 bytes
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
26 uint8_t Data4[8]; // 8 bytes
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
27 } GUID_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
28 #endif
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
29
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
30 ///////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
31 // ASF Object Header
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
32 ///////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
33 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
34 uint8_t guid[16];
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
35 uint64_t size;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
36 } ASF_obj_header_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
37
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
38 ////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
39 // ASF Header
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
40 ////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
41 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
42 ASF_obj_header_t objh;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
43 uint32_t cno; // number of subchunks
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
44 uint8_t v1; // unknown (0x01)
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
45 uint8_t v2; // unknown (0x02)
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
46 } ASF_header_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
47
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
48 /////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
49 // ASF File Header
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
50 /////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
51 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
52 uint8_t client[16]; // Client GUID
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
53 uint64_t file_size;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
54 uint64_t creat_time; //File creation time FILETIME 8
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
55 uint64_t packets; //Number of packets UINT64 8
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
56 uint64_t end_timestamp; //Timestamp of the end position UINT64 8
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
57 uint64_t duration; //Duration of the playback UINT64 8
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
58 uint32_t start_timestamp; //Timestamp of the start position UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
59 uint32_t unk1; //Unknown, maybe reserved ( usually contains 0 ) UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
60 uint32_t flags; //Unknown, maybe flags ( usually contains 2 ) UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
61 uint32_t packetsize; //Size of packet, in bytes UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
62 uint32_t packetsize2; //Size of packet ( confirm ) UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
63 uint32_t frame_size; //Size of uncompressed video frame UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
64 } ASF_file_header_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
65
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
66 ///////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
67 // ASF Stream Header
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
68 ///////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
69 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
70 uint8_t type[16]; // Stream type (audio/video) GUID 16
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
71 uint8_t concealment[16]; // Audio error concealment type GUID 16
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
72 uint64_t unk1; // Unknown, maybe reserved ( usually contains 0 ) UINT64 8
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
73 uint32_t type_size; //Total size of type-specific data UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
74 uint32_t stream_size; //Size of stream-specific data UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
75 uint16_t stream_no; //Stream number UINT16 2
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
76 uint32_t unk2; //Unknown UINT32 4
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
77 } ASF_stream_header_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
78
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
79 ///////////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
80 // ASF Content Description
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
81 ///////////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
82 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
83 uint16_t title_size;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
84 uint16_t author_size;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
85 uint16_t copyright_size;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
86 uint16_t comment_size;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
87 uint16_t rating_size;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
88 } ASF_content_description_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
89
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
90 ////////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
91 // ASF Segment Header
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
92 ////////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
93 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
94 uint8_t streamno;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
95 uint8_t seq;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
96 uint32_t x;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
97 uint8_t flag;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
98 } ASF_segmhdr_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
99
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
100 //////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
101 // ASF Stream Chunck
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
102 //////////////////////
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
103 typedef struct __attribute__((packed)) {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
104 uint16_t type;
871
ab94c4cf96d8 Continue implementation of ASF streaming.
bertrand
parents: 833
diff changeset
105 uint16_t size;
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
106 uint32_t sequence_number;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
107 uint16_t unknown;
871
ab94c4cf96d8 Continue implementation of ASF streaming.
bertrand
parents: 833
diff changeset
108 uint16_t size_confirm;
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
109 } ASF_stream_chunck_t;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
110
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
111
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
112 // Definition of the differents type of ASF streaming
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
113 typedef enum {
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
114 ASF_Unknown_e,
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
115 ASF_Live_e,
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
116 ASF_Prerecorded_e,
2489
0ecc1b4f7cf8 Added ASF http server streaming (Not mms streaming).
bertrand
parents: 2310
diff changeset
117 ASF_Redirector_e,
0ecc1b4f7cf8 Added ASF http server streaming (Not mms streaming).
bertrand
parents: 2310
diff changeset
118 ASF_PlainText_e
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
119 } ASF_StreamType_e;
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
120
904
11879db9d4cc Added some functions prototypes.
bertrand
parents: 871
diff changeset
121
1342
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
122 /*
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
123 * Some macros to swap little endian structures read from an ASF file
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
124 * into machine endian format
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
125 */
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
126 #ifdef WORDS_BIGENDIAN
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
127 #define le2me_ASF_obj_header_t(h) { \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
128 (h)->size = le2me_64((h)->size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
129 }
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
130 #define le2me_ASF_header_t(h) { \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
131 le2me_ASF_obj_header_t(&(h)->objh); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
132 (h)->cno = le2me_32((h)->cno); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
133 }
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
134 #define le2me_ASF_stream_header_t(h) { \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
135 (h)->unk1 = le2me_64((h)->unk1); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
136 (h)->type_size = le2me_32((h)->type_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
137 (h)->stream_size = le2me_32((h)->stream_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
138 (h)->stream_no = le2me_16((h)->stream_no); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
139 (h)->unk2 = le2me_32((h)->unk2); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
140 }
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
141 #define le2me_ASF_file_header_t(h) { \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
142 (h)->file_size = le2me_64((h)->file_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
143 (h)->creat_time = le2me_64((h)->creat_time); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
144 (h)->packets = le2me_64((h)->packets); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
145 (h)->end_timestamp = le2me_64((h)->end_timestamp); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
146 (h)->duration = le2me_64((h)->duration); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
147 (h)->start_timestamp = le2me_32((h)->start_timestamp); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
148 (h)->unk1 = le2me_32((h)->unk1); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
149 (h)->flags = le2me_32((h)->flags); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
150 (h)->packetsize = le2me_32((h)->packetsize); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
151 (h)->packetsize2 = le2me_32((h)->packetsize2); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
152 (h)->frame_size = le2me_32((h)->frame_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
153 }
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
154 #define le2me_ASF_content_description_t(h) { \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
155 (h)->title_size = le2me_16((h)->title_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
156 (h)->author_size = le2me_16((h)->author_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
157 (h)->copyright_size = le2me_16((h)->copyright_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
158 (h)->comment_size = le2me_16((h)->comment_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
159 (h)->rating_size = le2me_16((h)->rating_size); \
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
160 }
1485
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
161 #define le2me_BITMAPINFOHEADER(h) { \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
162 (h)->biSize = le2me_32((h)->biSize); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
163 (h)->biWidth = le2me_32((h)->biWidth); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
164 (h)->biHeight = le2me_32((h)->biHeight); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
165 (h)->biPlanes = le2me_16((h)->biPlanes); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
166 (h)->biBitCount = le2me_16((h)->biBitCount); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
167 (h)->biCompression = le2me_32((h)->biCompression); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
168 (h)->biSizeImage = le2me_32((h)->biSizeImage); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
169 (h)->biXPelsPerMeter = le2me_32((h)->biXPelsPerMeter); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
170 (h)->biYPelsPerMeter = le2me_32((h)->biYPelsPerMeter); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
171 (h)->biClrUsed = le2me_32((h)->biClrUsed); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
172 (h)->biClrImportant = le2me_32((h)->biClrImportant); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
173 }
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
174 #define le2me_WAVEFORMATEX(h) { \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
175 (h)->wFormatTag = le2me_16((h)->wFormatTag); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
176 (h)->nChannels = le2me_16((h)->nChannels); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
177 (h)->nSamplesPerSec = le2me_32((h)->nSamplesPerSec); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
178 (h)->nAvgBytesPerSec = le2me_32((h)->nAvgBytesPerSec); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
179 (h)->nBlockAlign = le2me_16((h)->nBlockAlign); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
180 (h)->wBitsPerSample = le2me_16((h)->wBitsPerSample); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
181 (h)->cbSize = le2me_16((h)->cbSize); \
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
182 }
1342
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
183 #else
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
184 #define le2me_ASF_obj_header_t(h) /**/
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
185 #define le2me_ASF_header_t(h) /**/
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
186 #define le2me_ASF_stream_header_t(h) /**/
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
187 #define le2me_ASF_file_header_t(h) /**/
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
188 #define le2me_ASF_content_description_t(h) /**/
1485
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
189 #define le2me_BITMAPINFOHEADER(h) /**/
b895f95e7657 AVI demuxer cleanups, fileformat-dependent stuff moved to priv_t
arpi
parents: 1342
diff changeset
190 #define le2me_WAVEFORMATEX(h) /**/
1342
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
191 #endif
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
192
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
193
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
194 #ifdef STREAMING
3041
6b31e121f36a Changed the some functions prototypes for the network streaming.
bertrand
parents: 2555
diff changeset
195 //int asf_http_streaming_type(char *content_type, char *features);
6b31e121f36a Changed the some functions prototypes for the network streaming.
bertrand
parents: 2555
diff changeset
196 int asf_http_streaming_start( stream_t *stream );
6b31e121f36a Changed the some functions prototypes for the network streaming.
bertrand
parents: 2555
diff changeset
197 int asf_http_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *streaming_ctrl );
1000
40b11384693b Modified functions prototype.
bertrand
parents: 904
diff changeset
198
40b11384693b Modified functions prototype.
bertrand
parents: 904
diff changeset
199 int asf_streaming(char *data, int length, int *drop_packet );
1342
baf646413408 ASF support for non-x86 cpus
jkeil
parents: 1000
diff changeset
200 #endif
904
11879db9d4cc Added some functions prototypes.
bertrand
parents: 871
diff changeset
201
833
b8cecdc0c67f Starting implementation of ASF network streaming.
bertrand
parents:
diff changeset
202 #endif