Struct gstreamer_video::VideoTimeCode[][src]

pub struct VideoTimeCode(_);
Expand description

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 / config These values are NOT automatically normalized.

Implementations

This is supported on crate feature v1_10 only.

Returns

a new empty, invalid VideoTimeCode

This is supported on crate feature v1_10 only.

field_count is 0 for progressive, 1 or 2 for interlaced. latest_daiy_jam reference is stolen from caller.

fps_n

Numerator of the frame rate

fps_d

Denominator of the frame rate

latest_daily_jam

The latest daily jam of the VideoTimeCode

flags

VideoTimeCodeFlags

hours

the hours field of VideoTimeCode

minutes

the minutes field of VideoTimeCode

seconds

the seconds field of VideoTimeCode

frames

the frames field of VideoTimeCode

field_count

Interlaced video field count

Returns

a new VideoTimeCode with the given values. The values are not checked for being in a valid range. To see if your timecode actually has valid content, use is_valid().

This is supported on crate features v1_10 and v1_16 only.

The resulting config->latest_daily_jam is set to midnight, and timecode is set to the given time.

This might return a completely invalid timecode, use [from_date_time_full()][Self::from_date_time_full()] to ensure that you would get None instead in that case.

fps_n

Numerator of the frame rate

fps_d

Denominator of the frame rate

dt

glib::DateTime to convert

flags

VideoTimeCodeFlags

field_count

Interlaced video field count

Returns

the VideoTimeCode representation of dt.

This is supported on crate feature v1_10 only.

Returns

whether self is a valid timecode (supported frame rate, hours/minutes/seconds/frames not overflowing)

This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.

Trait Implementations

This is supported on crate feature v1_10 only.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This is supported on crate feature v1_10 only.

Formats the value using the given formatter. Read more

This is supported on crate feature v1_10 only.

Formats the value using the given formatter. Read more

This is supported on crate feature v1_10 only.

Executes the destructor for this type. Read more

This is supported on crate feature v1_10 only.

Performs the conversion.

This is supported on crate features v1_10 and v1_12 only.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This is supported on crate feature v1_10 only.

Returns the type identifier of Self.

This is supported on crate feature v1_10 only.

The type returned in the event of a conversion error.

Performs the conversion.

This is supported on crate feature v1_10 only.

Type to get the Type from. Read more

This is supported on crate feature v1_10 only.
This is supported on crate feature v1_10 only.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Returns a SendValue clone of self.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.