mxf: move framenum to timecode convert to timecode helpers.

This is based on the original work by Baptiste Coudurier.
This commit is contained in:
Clément Bœsch
2011-07-06 15:04:26 +02:00
committed by Clément Bœsch
parent b7b72963e0
commit 4c3c6e60f9
3 changed files with 30 additions and 19 deletions

View 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.