#include <stdio.h>#include "common.h"#include "timecode.h"#include "timecode_internal.h"#include "log.h"#include "error.h"Go to the source code of this file.
Timecode helpers
Definition in file timecode.c.
Adjust frame number for NTSC drop frame time code.
Definition at line 36 of file timecode.c.
Referenced by av_timecode_get_smpte_from_framenum(), and av_timecode_make_string().
Convert frame number to SMPTE 12M binary representation.
See SMPTE ST 314M-2005 Sec 4.4.2.2.1 "Time code pack (TC)" the format description as follows: bits 0-5: hours, in BCD(6bits) bits 6: BGF1 bits 7: BGF2 (NTSC) or FIELD (PAL) bits 8-14: minutes, in BCD(7bits) bits 15: BGF0 (NTSC) or BGF2 (PAL) bits 16-22: seconds, in BCD(7bits) bits 23: FIELD (NTSC) or BGF0 (PAL) bits 24-29: frames, in BCD(6bits) bits 30: drop frame flag (0: non drop, 1: drop) bits 31: color frame flag (0: unsync mode, 1: sync mode)
Definition at line 54 of file timecode.c.
Referenced by dv_write_pack(), mxf_write_system_item(), and decklink_input_callback::VideoInputFrameArrived().
Convert sei info to SMPTE 12M binary representation.
Definition at line 70 of file timecode.c.
Referenced by av_timecode_get_smpte_from_framenum(), h264_export_frame_props(), and set_side_data().
Load timecode string in buf.
Definition at line 104 of file timecode.c.
Referenced by draw_text(), imf_read_header(), mcc_write_packet(), mxf_add_timecode_metadata(), parse_timecode_in_framenum_format(), segment_end(), test_cpl_parsing(), and decklink_input_callback::VideoInputFrameArrived().
Get the timecode string from the SMPTE timecode format.
In contrast to av_timecode_make_smpte_tc_string this function supports 50/60 fps timecodes by using the field bit.
Definition at line 131 of file timecode.c.
Referenced by av_timecode_make_smpte_tc_string(), decode_frame(), dump_s12m_timecode(), h264_export_frame_props(), print_frame_side_data(), set_side_data(), and wsd_read_header().
Get the timecode string from the SMPTE timecode format.
Definition at line 142 of file timecode.c.
Get the timecode string from the 25-bit timecode format (MPEG GOP format).
Definition at line 147 of file timecode.c.
Referenced by filter_frame(), mpeg_decode_frame(), mpeg_decode_gop(), and print_frame_side_data().
Definition at line 159 of file timecode.c.
Referenced by av_timecode_check_frame_rate(), and check_timecode().
Definition at line 172 of file timecode.c.
Referenced by av_timecode_init(), and av_timecode_init_from_components().
Definition at line 189 of file timecode.c.
Referenced by av_timecode_check_frame_rate(), av_timecode_init(), and av_timecode_init_from_components().
Check if the timecode feature is available for the given frame rate.
Definition at line 196 of file timecode.c.
Init a timecode struct with the passed parameters.
Definition at line 201 of file timecode.c.
Referenced by dv_write_header(), mcc_init(), mxf_init_timecode(), mxf_parse_physical_source_package(), mxf_parse_structural_metadata(), parse_timecode_in_framenum_format(), and time_tracker_init().
Init a timecode struct from the passed timecode components.
Definition at line 211 of file timecode.c.
Referenced by av_timecode_init_from_string(), fill_timecode(), get_bmd_timecode(), mcc_init(), time_tracker_init(), and time_tracker_set_time().
Parse timecode representation (hh:mm:ss[:;.
]ff).
Definition at line 232 of file timecode.c.
Referenced by dv_write_header(), init(), mov_check_timecode_track(), mxf_init_timecode(), and segment_end().