enum AVTimecodeFlag {
AV_TIMECODE_FLAG_DROPFRAME = 1<<0, ///< timecode is drop frame
AV_TIMECODE_FLAG_24HOURSMAX = 1<<1, ///< timecode wraps after 24 hours
AV_TIMECODE_FLAG_ALLOWNEGATIVE = 1<<2, ///< negative time values are allowed
};
typedefstruct { int start; ///< timecode frame start (first base frame number)
uint32_t flags; ///< flags such as drop frame, +24 hours support, ...
AVRational rate; ///< frame rate in rational form unsigned fps; ///< frame per second; must be consistent with the rate field
} AVTimecode;
/** *AdjustframenumberforNTSCdropframetimecode. * *@paramframenumframenumbertoadjust *@paramfpsframepersecond,multiplesof30 *@returnadjustedframenumber *@warningadjustmentisonlyvalidformultiplesofNTSC29.97
*/ int av_timecode_adjust_ntsc_framenum2(int framenum, int fps);
/** *ConvertseiinfotoSMPTE12Mbinaryrepresentation. * *@paramrateframerateinrationalform *@paramdropdropflag *@paramhhhour *@parammmminute *@paramsssecond *@paramffframenumber *@returntheSMPTEbinaryrepresentation
*/
uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss, int ff);
/** *Initatimecodestructwiththepassedparameters. * *@paramtcpointertoanallocatedAVTimecode *@paramrateframerateinrationalform *@paramflagsmiscellaneousflagssuchasdropframe,+24hours,... *(seeAVTimecodeFlag) *@paramframe_startthefirstframenumber *@paramlog_ctxapointertoanarbitrarystructofwhichthefirstfield *isapointertoanAVClassstruct(usedforav_log) *@return0onsuccess,AVERRORotherwise
*/ int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx);
/** *Initatimecodestructfromthepassedtimecodecomponents. * *@paramtcpointertoanallocatedAVTimecode *@paramrateframerateinrationalform *@paramflagsmiscellaneousflagssuchasdropframe,+24hours,... *(seeAVTimecodeFlag) *@paramhhhours *@parammmminutes *@paramssseconds *@paramffframes *@paramlog_ctxapointertoanarbitrarystructofwhichthefirstfield *isapointertoanAVClassstruct(usedforav_log) *@return0onsuccess,AVERRORotherwise
*/ int av_timecode_init_from_components(AVTimecode *tc, AVRational rate, int flags, int hh, int mm, int ss, int ff, void *log_ctx);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.