TimeCode
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gst_video_time_code_get_type ()" ) ]
[ Compact ]
[ GIR ( name = "VideoTimeCode" ) ]
[ Version ( since = "1.10" ) ]
public class TimeCode
field_count must be 0 for progressive video and 1 or 2 for interlaced.
A representation of a SMPTE time code.
hours must be positive and less than 24. Will wrap around otherwise. minutes and seconds must be
positive and less than 60. frames must be less than or equal to config.fps_n / config.fps_d These
values are *NOT* automatically normalized.
Content:
Creation methods:
- public TimeCode (uint fps_n, uint fps_d, DateTime latest_daily_jam, TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count)
field_count is 0 for progressive, 1 or 2 for interlaced.
- public TimeCode.empty ()
- public TimeCode.from_date_time (uint fps_n, uint fps_d, DateTime dt, TimeCodeFlags flags, uint field_count)
The resulting config->latest_daily_jam is set to midnight, and
timecode is set to the given time.
- public TimeCode.from_date_time_full (uint fps_n, uint fps_d, DateTime dt, TimeCodeFlags flags, uint field_count)
The resulting config->latest_daily_jam is set to midnight, and
timecode is set to the given time.
- public TimeCode.from_string (string tc_str)
Methods:
- public void add_frames (int64 frames)
Adds or subtracts frames amount of frames to
this.
- public TimeCode? add_interval (TimeCodeInterval tc_inter)
This makes a component-wise addition of tc_inter to
this.
- public void clear ()
Initializes this with
empty/zero/NULL values and frees any memory it might currently use.
- public int compare (TimeCode tc2)
Compares this and tc2.
- public TimeCode copy ()
- public uint64 frames_since_daily_jam ()
- public void free ()
Frees this.
- public void increment_frame ()
Adds one frame to this.
- public void init (uint fps_n, uint fps_d, DateTime? latest_daily_jam, TimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count)
field_count is 0 for progressive, 1 or 2 for interlaced.
- public void init_from_date_time (uint fps_n, uint fps_d, DateTime dt, TimeCodeFlags flags, uint field_count)
The resulting config->latest_daily_jam is set to midnight, and
timecode is set to the given time.
- public bool init_from_date_time_full (uint fps_n, uint fps_d, DateTime dt, TimeCodeFlags flags, uint field_count)
The resulting config->latest_daily_jam is set to midnight, and
timecode is set to the given time.
- public bool is_valid ()
- public uint64 nsec_since_daily_jam ()
- public DateTime? to_date_time ()
The this.
- public string to_string ()
Fields: