#include <stdio.h>
#include "timecode.h"
#include "libavutil/log.h"
Go to the source code of this file.
Functions | |
int | ff_framenum_to_drop_timecode (int frame_num) |
Adjust frame number for NTSC drop frame time code. | |
uint32_t | ff_framenum_to_smtpe_timecode (unsigned frame, int fps, int drop) |
Convert frame id (timecode) to SMPTE 12M binary representation. | |
int | ff_init_smtpe_timecode (void *avcl, struct ff_timecode *tc) |
Parse SMTPE 12M time representation (hh:mm:ss[:;. |
Definition in file timecode.c.
int ff_framenum_to_drop_timecode | ( | int | frame_num | ) |
Adjust frame number for NTSC drop frame time code.
frame_num | Actual frame number to adjust |
Definition at line 31 of file timecode.c.
Referenced by dv_write_pack(), mpeg1_encode_sequence_header(), and mxf_write_system_item().
uint32_t ff_framenum_to_smtpe_timecode | ( | unsigned | frame, | |
int | fps, | |||
int | drop | |||
) |
Convert frame id (timecode) to SMPTE 12M binary representation.
Definition at line 40 of file timecode.c.
Referenced by dv_write_pack(), and mxf_write_system_item().
int ff_init_smtpe_timecode | ( | void * | avcl, | |
struct ff_timecode * | tc | |||
) |
Parse SMTPE 12M time representation (hh:mm:ss[:;.
]ff). str and rate fields from tc struct must be set.
avcl | A pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct (used for av_log). | |
tc | Timecode struct pointer |
Definition at line 58 of file timecode.c.
Referenced by dv_write_header(), encode_init(), and mxf_write_header().