timecode: move dropframe code and doxycomment it.

This is based on the original work by Baptiste Coudurier.
This commit is contained in:
Clément Bœsch
2011-07-06 14:55:06 +02:00
committed by Clément Bœsch
parent 5231454560
commit 51fb933dd0
3 changed files with 19 additions and 7 deletions

View File

@@ -43,6 +43,14 @@ struct ff_timecode {
AVRational rate; ///< Frame rate in rationnal form
};
/**
* @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.