comparison asf.h @ 4924:c090f960fc8a libavformat

Per-stream language-tags extraction in asfdec. Patch by Cyril Comparon: gmail(name, surname); Original thread: Suggestion for a centralized language-tag facility in libavformat Date: 04/10/2009 07:33 PM
author benoit
date Tue, 12 May 2009 12:35:46 +0000
parents 86dd0cab30d3
children 95f0d6b82c8f
comparison
equal deleted inserted replaced
4923:a88b31642727 4924:c090f960fc8a
39 int ds_span; /* descrambling */ 39 int ds_span; /* descrambling */
40 int ds_packet_size; 40 int ds_packet_size;
41 int ds_chunk_size; 41 int ds_chunk_size;
42 42
43 int64_t packet_pos; 43 int64_t packet_pos;
44
45 uint16_t stream_language_index;
44 46
45 } ASFStream; 47 } ASFStream;
46 48
47 typedef uint8_t ff_asf_guid[16]; 49 typedef uint8_t ff_asf_guid[16];
48 50
83 unsigned int packet_size; 85 unsigned int packet_size;
84 int is_streamed; 86 int is_streamed;
85 int asfid2avid[128]; ///< conversion table from asf ID 2 AVStream ID 87 int asfid2avid[128]; ///< conversion table from asf ID 2 AVStream ID
86 ASFStream streams[128]; ///< it's max number and it's not that big 88 ASFStream streams[128]; ///< it's max number and it's not that big
87 uint32_t stream_bitrates[128]; ///< max number of streams, bitrate for each (for streaming) 89 uint32_t stream_bitrates[128]; ///< max number of streams, bitrate for each (for streaming)
90 char stream_languages[128][6]; ///< max number of streams, language for each (RFC1766, e.g. en-US)
88 /* non streamed additonnal info */ 91 /* non streamed additonnal info */
89 uint64_t nb_packets; ///< how many packets are there in the file, invalid if broadcasting 92 uint64_t nb_packets; ///< how many packets are there in the file, invalid if broadcasting
90 int64_t duration; ///< in 100ns units 93 int64_t duration; ///< in 100ns units
91 /* packet filling */ 94 /* packet filling */
92 unsigned char multi_payloads_present; 95 unsigned char multi_payloads_present;
155 extern const ff_asf_guid ff_asf_simple_index_header; 158 extern const ff_asf_guid ff_asf_simple_index_header;
156 extern const ff_asf_guid ff_asf_ext_stream_embed_stream_header; 159 extern const ff_asf_guid ff_asf_ext_stream_embed_stream_header;
157 extern const ff_asf_guid ff_asf_ext_stream_audio_stream; 160 extern const ff_asf_guid ff_asf_ext_stream_audio_stream;
158 extern const ff_asf_guid ff_asf_metadata_header; 161 extern const ff_asf_guid ff_asf_metadata_header;
159 extern const ff_asf_guid ff_asf_my_guid; 162 extern const ff_asf_guid ff_asf_my_guid;
163 extern const ff_asf_guid ff_asf_language_guid;
160 164
161 extern const AVMetadataConv ff_asf_metadata_conv[]; 165 extern const AVMetadataConv ff_asf_metadata_conv[];
162 166
163 #define ASF_PACKET_FLAG_ERROR_CORRECTION_PRESENT 0x80 //1000 0000 167 #define ASF_PACKET_FLAG_ERROR_CORRECTION_PRESENT 0x80 //1000 0000
164 168