Mercurial > libavformat.hg
comparison avformat.h @ 4626:166d293b44fa libavformat
deprecate old metadata API
author | aurel |
---|---|
date | Sun, 01 Mar 2009 16:35:25 +0000 |
parents | daee9ef28a39 |
children | a9c659873a1e |
comparison
equal
deleted
inserted
replaced
4625:29c799c20735 | 4626:166d293b44fa |
---|---|
473 * If a source file does not specify a duration, but does specify | 473 * If a source file does not specify a duration, but does specify |
474 * a bitrate, this value will be estimated from bitrate and file size. | 474 * a bitrate, this value will be estimated from bitrate and file size. |
475 */ | 475 */ |
476 int64_t duration; | 476 int64_t duration; |
477 | 477 |
478 #if LIBAVFORMAT_VERSION_INT < (53<<16) | |
478 char language[4]; /** ISO 639 3-letter language code (empty string if undefined) */ | 479 char language[4]; /** ISO 639 3-letter language code (empty string if undefined) */ |
480 #endif | |
479 | 481 |
480 /* av_read_frame() support */ | 482 /* av_read_frame() support */ |
481 enum AVStreamParseType need_parsing; | 483 enum AVStreamParseType need_parsing; |
482 struct AVCodecParserContext *parser; | 484 struct AVCodecParserContext *parser; |
483 | 485 |
492 | 494 |
493 int64_t nb_frames; ///< number of frames in this stream if known or 0 | 495 int64_t nb_frames; ///< number of frames in this stream if known or 0 |
494 | 496 |
495 #if LIBAVFORMAT_VERSION_INT < (53<<16) | 497 #if LIBAVFORMAT_VERSION_INT < (53<<16) |
496 int64_t unused[4+1]; | 498 int64_t unused[4+1]; |
499 | |
500 char *filename; /**< source filename of the stream */ | |
497 #endif | 501 #endif |
498 | |
499 char *filename; /**< source filename of the stream */ | |
500 | 502 |
501 int disposition; /**< AV_DISPOSITION_* bit field */ | 503 int disposition; /**< AV_DISPOSITION_* bit field */ |
502 | 504 |
503 AVProbeData probe_data; | 505 AVProbeData probe_data; |
504 #define MAX_REORDER_DELAY 16 | 506 #define MAX_REORDER_DELAY 16 |
537 * version bump. | 539 * version bump. |
538 * sizeof(AVProgram) must not be used outside libav*. | 540 * sizeof(AVProgram) must not be used outside libav*. |
539 */ | 541 */ |
540 typedef struct AVProgram { | 542 typedef struct AVProgram { |
541 int id; | 543 int id; |
544 #if LIBAVFORMAT_VERSION_INT < (53<<16) | |
542 char *provider_name; ///< network name for DVB streams | 545 char *provider_name; ///< network name for DVB streams |
543 char *name; ///< service name for DVB streams | 546 char *name; ///< service name for DVB streams |
547 #endif | |
544 int flags; | 548 int flags; |
545 enum AVDiscard discard; ///< selects which program to discard and which to feed to the caller | 549 enum AVDiscard discard; ///< selects which program to discard and which to feed to the caller |
546 unsigned int *stream_index; | 550 unsigned int *stream_index; |
547 unsigned int nb_stream_indexes; | 551 unsigned int nb_stream_indexes; |
548 AVMetadata *metadata; | 552 AVMetadata *metadata; |
553 | 557 |
554 typedef struct AVChapter { | 558 typedef struct AVChapter { |
555 int id; ///< unique ID to identify the chapter | 559 int id; ///< unique ID to identify the chapter |
556 AVRational time_base; ///< time base in which the start/end timestamps are specified | 560 AVRational time_base; ///< time base in which the start/end timestamps are specified |
557 int64_t start, end; ///< chapter start/end time in time_base units | 561 int64_t start, end; ///< chapter start/end time in time_base units |
562 #if LIBAVFORMAT_VERSION_INT < (53<<16) | |
558 char *title; ///< chapter title | 563 char *title; ///< chapter title |
564 #endif | |
559 AVMetadata *metadata; | 565 AVMetadata *metadata; |
560 } AVChapter; | 566 } AVChapter; |
561 | 567 |
562 #define MAX_STREAMS 20 | 568 #define MAX_STREAMS 20 |
563 | 569 |
578 unsigned int nb_streams; | 584 unsigned int nb_streams; |
579 AVStream *streams[MAX_STREAMS]; | 585 AVStream *streams[MAX_STREAMS]; |
580 char filename[1024]; /**< input or output filename */ | 586 char filename[1024]; /**< input or output filename */ |
581 /* stream info */ | 587 /* stream info */ |
582 int64_t timestamp; | 588 int64_t timestamp; |
589 #if LIBAVFORMAT_VERSION_INT < (53<<16) | |
583 char title[512]; | 590 char title[512]; |
584 char author[512]; | 591 char author[512]; |
585 char copyright[512]; | 592 char copyright[512]; |
586 char comment[512]; | 593 char comment[512]; |
587 char album[512]; | 594 char album[512]; |
588 int year; /**< ID3 year, 0 if none */ | 595 int year; /**< ID3 year, 0 if none */ |
589 int track; /**< track number, 0 if none */ | 596 int track; /**< track number, 0 if none */ |
590 char genre[32]; /**< ID3 genre */ | 597 char genre[32]; /**< ID3 genre */ |
598 #endif | |
591 | 599 |
592 int ctx_flags; /**< Format-specific flags, see AVFMTCTX_xx */ | 600 int ctx_flags; /**< Format-specific flags, see AVFMTCTX_xx */ |
593 /* private data for pts handling (do not modify directly). */ | 601 /* private data for pts handling (do not modify directly). */ |
594 /** This buffer is only needed when packets were already buffered but | 602 /** This buffer is only needed when packets were already buffered but |
595 not decoded, for example to get the codec parameters in MPEG | 603 not decoded, for example to get the codec parameters in MPEG |