FFmpeg
Loading...
Searching...
No Matches
timecode_internal.h File Reference

Timecode helpers header. More...

#include <stdint.h>
#include "rational.h"

Go to the source code of this file.

Functions

void ff_timecode_set_smpte (unsigned *drop, unsigned *hh, unsigned *mm, unsigned *ss, unsigned *ff, AVRational rate, uint32_t tcsmpte, int prevent_df, int skip_field)
 Convert SMPTE 12M binary representation to sei info.
 

Detailed Description

Timecode helpers header.

Definition in file timecode_internal.h.

Function Documentation

◆ ff_timecode_set_smpte()

void ff_timecode_set_smpte ( unsigned * drop,
unsigned * hh,
unsigned * mm,
unsigned * ss,
unsigned * ff,
AVRational rate,
uint32_t tcsmpte,
int prevent_df,
int skip_field )

Convert SMPTE 12M binary representation to sei info.

Parameters
dropdrop flag output
hhhour output
mmminute output
sssecond output
ffframe number output
rateframe rate of the timecode
tcsmptethe 32-bit SMPTE timecode
prevent_dfprevent the use of a drop flag when it is known the DF bit is arbitrary
skip_fieldprevent the use of a field flag when it is known the field bit is arbitrary (e.g. because it is used as PC flag)

Definition at line 33 of file timecode_internal.c.

Referenced by av_timecode_make_smpte_tc_string2(), and put_timecode_fields().