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
drop drop flag output
hh hour output
mm minute output
ss second output
ff frame number output
rate frame rate of the timecode
tcsmpte the 32-bit SMPTE timecode
prevent_df prevent the use of a drop flag when it is known the DF bit is arbitrary
skip_field prevent 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().


Generated on Sat Oct 18 2025 19:24:00 for FFmpeg by   doxygen 1.8.17

AltStyle によって変換されたページ (->オリジナル) /