123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- enum AVTimecodeFlag {
- AV_TIMECODE_FLAG_DROPFRAME = 1<<0,
- AV_TIMECODE_FLAG_24HOURSMAX = 1<<1,
- AV_TIMECODE_FLAG_ALLOWNEGATIVE = 1<<2,
- };
- typedef struct {
- int start;
- uint32_t flags;
- AVRational rate;
- unsigned fps;
- } AVTimecode;
- int av_timecode_adjust_ntsc_framenum2(int framenum, int fps);
- uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum);
- uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss, int ff);
- char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum);
- char *av_timecode_make_smpte_tc_string(char *buf, uint32_t tcsmpte, int prevent_df);
- char *av_timecode_make_mpeg_tc_string(char *buf, uint32_t tc25bit);
- int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx);
- int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx);
- int av_timecode_check_frame_rate(AVRational rate);
|