summaryrefslogtreecommitdiff
path: root/libavcodec/timecode.h
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2011-07-06 14:55:06 +0200
committerClément Bœsch <ubitux@gmail.com>2011-08-10 16:00:32 +0200
commit51fb933dd0dda5f581d7489b32b8446767d33b97 (patch)
tree158d09eb2a5471973bb13332d2d45a47c793fdf5 /libavcodec/timecode.h
parent5231454560e972033ec773b350dfe0e1380a04ae (diff)
timecode: move dropframe code and doxycomment it.
This is based on the original work by Baptiste Coudurier.
Diffstat (limited to 'libavcodec/timecode.h')
-rw-r--r--libavcodec/timecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/timecode.h b/libavcodec/timecode.h
index d2f66065d9..bf4116b28a 100644
--- a/libavcodec/timecode.h
+++ b/libavcodec/timecode.h
@@ -44,6 +44,14 @@ struct ff_timecode {
};
/**
+ * @brief Adjust frame number for NTSC drop frame time code
+ * @param frame_num Actual frame number to adjust
+ * @return Adjusted frame number
+ * @warning Adjustment is only valid in NTSC 29.97
+ */
+int ff_framenum_to_drop_timecode(int frame_num);
+
+/**
* Parse SMTPE 12M time representation (hh:mm:ss[:;.]ff). str and rate fields
* from tc struct must be set.
*