Mercurial > libavformat.hg
comparison avformat.h @ 2023:a3e79d6e4e3c libavformat
add an enum for need_parsing
author | aurel |
---|---|
date | Sun, 15 Apr 2007 13:51:57 +0000 |
parents | d0d39f124c6b |
children | f5df68594b30 |
comparison
equal
deleted
inserted
replaced
2022:4f62a7d9381a | 2023:a3e79d6e4e3c |
---|---|
251 | 251 |
252 /* private fields */ | 252 /* private fields */ |
253 struct AVInputFormat *next; | 253 struct AVInputFormat *next; |
254 } AVInputFormat; | 254 } AVInputFormat; |
255 | 255 |
256 enum AVStreamParseType { | |
257 AVSTREAM_PARSE_NONE, | |
258 AVSTREAM_PARSE_FULL, /**< full parsing and repack */ | |
259 AVSTREAM_PARSE_HEADERS, /**< only parse headers, don't repack */ | |
260 AVSTREAM_PARSE_TIMESTAMPS, /**< full parsing and interpolation of timestamps for frames not starting on packet boundary */ | |
261 }; | |
262 | |
256 typedef struct AVIndexEntry { | 263 typedef struct AVIndexEntry { |
257 int64_t pos; | 264 int64_t pos; |
258 int64_t timestamp; | 265 int64_t timestamp; |
259 #define AVINDEX_KEYFRAME 0x0001 | 266 #define AVINDEX_KEYFRAME 0x0001 |
260 int flags:2; | 267 int flags:2; |
307 int64_t duration; | 314 int64_t duration; |
308 | 315 |
309 char language[4]; /** ISO 639 3-letter language code (empty string if undefined) */ | 316 char language[4]; /** ISO 639 3-letter language code (empty string if undefined) */ |
310 | 317 |
311 /* av_read_frame() support */ | 318 /* av_read_frame() support */ |
312 #define AVSTREAM_PARSE_TIMESTAMPS 3 /**< full parsing and interpolation of timestamps for frames not starting on packet boundary */ | 319 enum AVStreamParseType need_parsing; |
313 int need_parsing; ///< 1->full parsing needed, 2->only parse headers dont repack, 3->full parsing and interpolate timestamps | |
314 struct AVCodecParserContext *parser; | 320 struct AVCodecParserContext *parser; |
315 | 321 |
316 int64_t cur_dts; | 322 int64_t cur_dts; |
317 int last_IP_duration; | 323 int last_IP_duration; |
318 int64_t last_IP_pts; | 324 int64_t last_IP_pts; |