]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/timecode.h
mjpegdec: print nb_components too in pict debug info
[ffmpeg] / libavcodec / timecode.h
index bf4116b28a040caf4f51d3bedd4da1295db461ea..d8507a74195b181a72b54d29c0ef90a907593e6e 100644 (file)
@@ -51,6 +51,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.