Revision 4c6f7440

View differences:

libavformat/asf.h
39 39
typedef uint8_t GUID[16];
40 40

  
41 41
typedef struct {
42
    GUID guid;                  // generated by client computer
43
    uint64_t file_size;         // in bytes
44
                                // invalid if broadcasting
45
    uint64_t create_time;       // time of creation, in 100-nanosecond units since 1.1.1601
46
                                // invalid if broadcasting
47
    uint64_t play_time;         // play time, in 100-nanosecond units
48
                                // invalid if broadcasting
49
    uint64_t send_time;         // time to send file, in 100-nanosecond units
50
                                // invalid if broadcasting (could be ignored)
51
    uint32_t preroll;           // timestamp of the first packet, in milliseconds
52
                                // if nonzero - substract from time
53
    uint32_t ignore;            // preroll is 64bit - but let's just ignore it
54
    uint32_t flags;             // 0x01 - broadcast
55
                                // 0x02 - seekable
56
                                // rest is reserved should be 0
57
    uint32_t min_pktsize;       // size of a data packet
58
                                // invalid if broadcasting
59
    uint32_t max_pktsize;       // shall be the same as for min_pktsize
60
                                // invalid if broadcasting
61
    uint32_t max_bitrate;       // bandwith of stream in bps
62
                                // should be the sum of bitrates of the
63
                                // individual media streams
42
    GUID guid;                  ///< generated by client computer
43
    uint64_t file_size;         /**< in bytes
44
                                 *   invalid if broadcasting */
45
    uint64_t create_time;       /**< time of creation, in 100-nanosecond units since 1.1.1601
46
                                 *   invalid if broadcasting */
47
    uint64_t play_time;         /**< play time, in 100-nanosecond units
48
                                 * invalid if broadcasting */
49
    uint64_t send_time;         /**< time to send file, in 100-nanosecond units
50
                                 *   invalid if broadcasting (could be ignored) */
51
    uint32_t preroll;           /**< timestamp of the first packet, in milliseconds
52
                                 *   if nonzero - substract from time */
53
    uint32_t ignore;            ///< preroll is 64bit - but let's just ignore it
54
    uint32_t flags;             /**< 0x01 - broadcast
55
                                 *   0x02 - seekable
56
                                 *   rest is reserved should be 0 */
57
    uint32_t min_pktsize;       /**< size of a data packet
58
                                 *   invalid if broadcasting */
59
    uint32_t max_pktsize;       /**< shall be the same as for min_pktsize
60
                                 *   invalid if broadcasting */
61
    uint32_t max_bitrate;       /**< bandwith of stream in bps
62
                                 *   should be the sum of bitrates of the
63
                                 *   individual media streams */
64 64
} ASFMainHeader;
65 65

  
66 66

  
......
74 74
    uint32_t seqno;
75 75
    unsigned int packet_size;
76 76
    int is_streamed;
77
    int asfid2avid[128];        /* conversion table from asf ID 2 AVStream ID */
78
    ASFStream streams[128];     /* it's max number and it's not that big */
77
    int asfid2avid[128];                 ///< conversion table from asf ID 2 AVStream ID
78
    ASFStream streams[128];              ///< it's max number and it's not that big
79 79
    /* non streamed additonnal info */
80 80
    uint64_t nb_packets;                 ///< how many packets are there in the file, invalid if broadcasting
81
    int64_t duration; /* in 100ns units */
81
    int64_t duration;                    ///< in 100ns units
82 82
    /* packet filling */
83 83
    unsigned char multi_payloads_present;
84 84
    int packet_size_left;
......
90 90
    uint8_t packet_buf[PACKET_SIZE];
91 91
    ByteIOContext pb;
92 92
    /* only for reading */
93
    uint64_t data_offset; /* begining of the first data packet */
94
    uint64_t data_object_offset; /* data object offset (excl. GUID & size)*/
95
    uint64_t data_object_size;   /* size of the data object */
93
    uint64_t data_offset;                ///< begining of the first data packet
94
    uint64_t data_object_offset;         ///< data object offset (excl. GUID & size)
95
    uint64_t data_object_size;           ///< size of the data object
96 96
    int index_read;
97 97

  
98 98
    ASFMainHeader hdr;
......
124 124
    uint32_t nb_index_memory_alloc;
125 125
    uint16_t maximum_packet;
126 126

  
127
    ASFStream* asf_st; /* currently decoded stream */
127
    ASFStream* asf_st;                   ///< currently decoded stream
128 128
} ASFContext;
129 129

  
130 130
static const GUID asf_header = {

Also available in: Unified diff