FFmpeg
Functions
timecode_internal.c File Reference
#include "timecode_internal.h"

Go to the source code of this file.

Functions

static unsigned bcd2uint (uint8_t bcd)
 
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. More...
 

Function Documentation

◆ bcd2uint()

static unsigned bcd2uint ( uint8_t  bcd)
static

Definition at line 24 of file timecode_internal.c.

Referenced by ff_timecode_set_smpte().

◆ 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 ff_alloc_timecode_sei().