comparison asf.h @ 887:d70e50f1495f libavformat

COSMETICS: tabs --> spaces, some prettyprinting
author diego
date Thu, 22 Dec 2005 01:10:11 +0000
parents da1d5db0ce5c
children edbe5c3717f9
comparison
equal deleted inserted replaced
886:7ed1351f8c7e 887:d70e50f1495f
24 AVPacket pkt; 24 AVPacket pkt;
25 int frag_offset; 25 int frag_offset;
26 int timestamp; 26 int timestamp;
27 int64_t duration; 27 int64_t duration;
28 28
29 int ds_span; /* descrambling */ 29 int ds_span; /* descrambling */
30 int ds_packet_size; 30 int ds_packet_size;
31 int ds_chunk_size; 31 int ds_chunk_size;
32 int ds_data_size; 32 int ds_data_size;
33 int ds_silence_data; 33 int ds_silence_data;
34 34
42 uint16_t v3; 42 uint16_t v3;
43 uint8_t v4[8]; 43 uint8_t v4[8];
44 } GUID; 44 } GUID;
45 45
46 typedef struct { 46 typedef struct {
47 GUID guid; // generated by client computer 47 GUID guid; // generated by client computer
48 uint64_t file_size; // in bytes 48 uint64_t file_size; // in bytes
49 // invalid if broadcasting 49 // invalid if broadcasting
50 uint64_t create_time; // time of creation, in 100-nanosecond units since 1.1.1601 50 uint64_t create_time; // time of creation, in 100-nanosecond units since 1.1.1601
51 // invalid if broadcasting 51 // invalid if broadcasting
52 uint64_t packets_count; // how many packets are there in the file 52 uint64_t packets_count; // how many packets are there in the file
53 // invalid if broadcasting 53 // invalid if broadcasting
54 uint64_t play_time; // play time, in 100-nanosecond units 54 uint64_t play_time; // play time, in 100-nanosecond units
55 // invalid if broadcasting 55 // invalid if broadcasting
56 uint64_t send_time; // time to send file, in 100-nanosecond units 56 uint64_t send_time; // time to send file, in 100-nanosecond units
57 // invalid if broadcasting (could be ignored) 57 // invalid if broadcasting (could be ignored)
58 uint32_t preroll; // timestamp of the first packet, in milliseconds 58 uint32_t preroll; // timestamp of the first packet, in milliseconds
59 // if nonzero - substract from time 59 // if nonzero - substract from time
60 uint32_t ignore; // preroll is 64bit - but let's just ignore it 60 uint32_t ignore; // preroll is 64bit - but let's just ignore it
61 uint32_t flags; // 0x01 - broadcast 61 uint32_t flags; // 0x01 - broadcast
62 // 0x02 - seekable 62 // 0x02 - seekable
63 // rest is reserved should be 0 63 // rest is reserved should be 0
64 uint32_t min_pktsize; // size of a data packet 64 uint32_t min_pktsize; // size of a data packet
65 // invalid if broadcasting 65 // invalid if broadcasting
66 uint32_t max_pktsize; // shall be the same as for min_pktsize 66 uint32_t max_pktsize; // shall be the same as for min_pktsize
67 // invalid if broadcasting 67 // invalid if broadcasting
68 uint32_t max_bitrate; // bandwith of stream in bps 68 uint32_t max_bitrate; // bandwith of stream in bps
69 // should be the sum of bitrates of the 69 // should be the sum of bitrates of the
70 // individual media streams 70 // individual media streams
71 } ASFMainHeader; 71 } ASFMainHeader;
72 72
73 73
74 typedef struct { 74 typedef struct {
80 typedef struct { 80 typedef struct {
81 uint32_t seqno; 81 uint32_t seqno;
82 unsigned int packet_size; 82 unsigned int packet_size;
83 int is_streamed; 83 int is_streamed;
84 int asfid2avid[128]; /* conversion table from asf ID 2 AVStream ID */ 84 int asfid2avid[128]; /* conversion table from asf ID 2 AVStream ID */
85 ASFStream streams[128]; /* it's max number and it's not that big */ 85 ASFStream streams[128]; /* it's max number and it's not that big */
86 /* non streamed additonnal info */ 86 /* non streamed additonnal info */
87 int64_t nb_packets; 87 int64_t nb_packets;
88 int64_t duration; /* in 100ns units */ 88 int64_t duration; /* in 100ns units */
89 /* packet filling */ 89 /* packet filling */
90 unsigned char multi_payloads_present; 90 unsigned char multi_payloads_present;