28 #ifndef AVCODEC_TIMECODE_H
29 #define AVCODEC_TIMECODE_H
33 #if FF_API_OLD_TIMECODE
39 #define TIMECODE_OPT(ctx, flags) \
40 "timecode", "set timecode value following hh:mm:ss[:;.]ff format, " \
41 "use ';' or '.' before frame number for drop frame", \
42 offsetof(ctx, tc.str), \
43 AV_OPT_TYPE_STRING, {.str=NULL}, CHAR_MIN, CHAR_MAX, flags
58 int avpriv_framenum_to_drop_timecode(
int frame_num);
67 uint32_t avpriv_framenum_to_smpte_timecode(
unsigned frame,
int fps,
int drop);
80 char *avpriv_timecode_to_string(
char *
buf,
const struct ff_timecode *
tc,
unsigned frame);
87 int avpriv_check_timecode_rate(
void *avcl,
AVRational rate,
int drop);
99 int avpriv_init_smpte_timecode(
void *avcl,
struct ff_timecode *
tc);