aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/timecode.h
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2011-07-06 15:04:26 +0200
committerClément Bœsch <ubitux@gmail.com>2011-08-13 19:13:02 +0200
commit4c3c6e60f97e450c35a90dc6d66f3726b7b938b4 (patch)
tree3a9e10114bc7b8ebf14f2fd7ac5e52c11e104c82 /libavcodec/timecode.h
parentb7b72963e06f21fb985c58100c7d048cfea2736a (diff)
downloadffmpeg-4c3c6e60f97e450c35a90dc6d66f3726b7b938b4.tar.gz
mxf: move framenum to timecode convert to timecode helpers.
This is based on the original work by Baptiste Coudurier.
Diffstat (limited to 'libavcodec/timecode.h')
-rw-r--r--libavcodec/timecode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/timecode.h b/libavcodec/timecode.h
index bf4116b28a..d8507a7419 100644
--- a/libavcodec/timecode.h
+++ b/libavcodec/timecode.h
@@ -52,6 +52,15 @@ struct ff_timecode {
int ff_framenum_to_drop_timecode(int frame_num);
/**
+ * @brief Convert frame id (timecode) to SMPTE 12M binary representation
+ * @param frame Frame number
+ * @param fps Frame rate
+ * @param drop Drop flag
+ * @return The actual binary representation
+ */
+uint32_t ff_framenum_to_smtpe_timecode(unsigned frame, int fps, int drop);
+
+/**
* Parse SMTPE 12M time representation (hh:mm:ss[:;.]ff). str and rate fields
* from tc struct must be set.
*