diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-06-24 08:59:34 +0300 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-06-28 16:00:52 +0300 |
commit | 79723c2a878b13110ce3e86db68c33f4f71f6da7 (patch) | |
tree | ec5d418d1a40786d450b89605fed710c3ddf5f96 /libavutil/timecode.h | |
parent | 12c42c709ead42db288bb5ac978b505627ed39c5 (diff) |
avutil/timecode: add function av_timecode_get_smpte()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavutil/timecode.h')
-rw-r--r-- | libavutil/timecode.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavutil/timecode.h b/libavutil/timecode.h index 37c1361bc2..ab38e661f1 100644 --- a/libavutil/timecode.h +++ b/libavutil/timecode.h @@ -71,6 +71,19 @@ int av_timecode_adjust_ntsc_framenum2(int framenum, int fps); uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum); /** + * Convert sei info to SMPTE 12M binary representation. + * + * @param rate frame rate in rational form + * @param drop drop flag + * @param hh hour + * @param mm minute + * @param ss second + * @param ff frame number + * @return the SMPTE binary representation + */ +uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss, int ff); + +/** * Load timecode string in buf. * * @param buf destination buffer, must be at least AV_TIMECODE_STR_SIZE long |