gstvideo.video_time_code
Module for [VideoTimeCode] class
class VideoTimeCode
Types 1
classVideoTimeCode : gobject.boxed.Boxed
@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.
Methods
gstvideo.video_time_code_config.VideoTimeCodeConfig config() @property nothrowGet `config` field. Returns: the corresponding #GstVideoTimeCodeConfigvoid hours(uint propval) @property nothrowSet `hours` field. Params: propval = the hours field of #GstVideoTimeCodeuint minutes() @property nothrowGet `minutes` field. Returns: the minutes field of #GstVideoTimeCodevoid minutes(uint propval) @property nothrowSet `minutes` field. Params: propval = the minutes field of #GstVideoTimeCodeuint seconds() @property nothrowGet `seconds` field. Returns: the seconds field of #GstVideoTimeCodevoid seconds(uint propval) @property nothrowSet `seconds` field. Params: propval = the seconds field of #GstVideoTimeCodevoid frames(uint propval) @property nothrowSet `frames` field. Params: propval = the frames field of #GstVideoTimeCodevoid fieldCount(uint propval) @property nothrowSet `fieldCount` field. Params: propval = Interlaced video field countgstvideo.video_time_code.VideoTimeCode newFromDateTime(uint fpsN, uint fpsD, glib.date_time.DateTime dt, gstvideo.types.VideoTimeCodeFlags flags, uint fieldCount) static nothrowThe resulting config->latest_daily_jam is set to midnight, and timecode is set to the given time.gstvideo.video_time_code.VideoTimeCode newFromDateTimeFull(uint fpsN, uint fpsD, glib.date_time.DateTime dt, gstvideo.types.VideoTimeCodeFlags flags, uint fieldCount) static nothrowThe resulting config->latest_daily_jam is set to midnight, and timecode is set to the given time.void addFrames(long frames) nothrowAdds or subtracts frames amount of frames to tc. tc needs to contain valid data, as verified by [gstvideo.video_time_code.VideoTimeCode.isValid].gstvideo.video_time_code.VideoTimeCode addInterval(gstvideo.video_time_code_interval.VideoTimeCodeInterval tcInter) nothrowThis makes a component-wise addition of tc_inter to tc. For example, adding ("01:02:03:04", "00:01:00:00") will return "01:03:03:04". When it comes to drop-frame timecodes, adding ("00:00:00;00", "...void clear() nothrowInitializes tc with empty/zero/NULL values and frees any memory it might currently use.int compare(gstvideo.video_time_code.VideoTimeCode tc2) nothrowCompares tc1 and tc2. If both have latest daily jam information, it is taken into account. Otherwise, it is assumed that the daily jam of both tc1 and tc2 was at the same time. Both time codes must...gstvideo.video_time_code.VideoTimeCode copy() nothrowulong framesSinceDailyJam() nothrowvoid init_(uint fpsN, uint fpsD, glib.date_time.DateTime latestDailyJam, gstvideo.types.VideoTimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint fieldCount) nothrowfield_count is 0 for progressive, 1 or 2 for interlaced. latest_daiy_jam reference is stolen from caller.void initFromDateTime(uint fpsN, uint fpsD, glib.date_time.DateTime dt, gstvideo.types.VideoTimeCodeFlags flags, uint fieldCount) nothrowThe resulting config->latest_daily_jam is set to midnight, and timecode is set to the given time.bool initFromDateTimeFull(uint fpsN, uint fpsD, glib.date_time.DateTime dt, gstvideo.types.VideoTimeCodeFlags flags, uint fieldCount) nothrowThe resulting config->latest_daily_jam is set to midnight, and timecode is set to the given time.bool isValid() nothrowulong nsecSinceDailyJam() nothrowglib.date_time.DateTime toDateTime() nothrowThe tc.config->latest_daily_jam is required to be non-NULL. Returns: the #GDateTime representation of tc or null if tc has no daily jam.string toString_() nothrowConstructors
this(uint fpsN, uint fpsD, glib.date_time.DateTime latestDailyJam, gstvideo.types.VideoTimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint fieldCount)field_count is 0 for progressive, 1 or 2 for interlaced. latest_daiy_jam reference is stolen from caller.