跳到主要内容

av_timecode_init

搜索

函数 av_timecode_init 

源代码
pub unsafe extern "C" fn av_timecode_init(
    tc: *mut AVTimecode,
    rate: AVRational,
    flags: c_int,
    frame_start: c_int,
    log_ctx: *mut c_void,
) -> c_int
展开描述

Init a timecode struct with the passed parameters.

@param tc pointer to an allocated AVTimecode @param rate frame rate in rational form @param flags miscellaneous flags such as drop frame, +24 hours, … (see AVTimecodeFlag) @param frame_start the first frame number @param log_ctx a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct (used for av_log) @return 0 on success, AVERROR otherwise