Lines Matching refs:tcsmpte
138 char *av_timecode_make_smpte_tc_string2(char *buf, AVRational rate, uint32_t tcsmpte, int prevent_df, int skip_field)
140 unsigned hh = bcd2uint(tcsmpte & 0x3f); // 6-bit hours
141 unsigned mm = bcd2uint(tcsmpte>>8 & 0x7f); // 7-bit minutes
142 unsigned ss = bcd2uint(tcsmpte>>16 & 0x7f); // 7-bit seconds
143 unsigned ff = bcd2uint(tcsmpte>>24 & 0x3f); // 6-bit frames
144 unsigned drop = tcsmpte & 1<<30 && !prevent_df; // 1-bit drop if not arbitrary bit
150 ff += !!(tcsmpte & 1 << 7);
152 ff += !!(tcsmpte & 1 << 23);
162 char *av_timecode_make_smpte_tc_string(char *buf, uint32_t tcsmpte, int prevent_df)
164 return av_timecode_make_smpte_tc_string2(buf, (AVRational){30, 1}, tcsmpte, prevent_df, 1);