gstreamer_editing_services::prelude

Trait VideoSourceExt

Source
pub trait VideoSourceExt: IsA<VideoSource> + 'static {
    // Provided method
    fn natural_size(&self) -> Option<(i32, i32)> { ... }
}
Expand description

Provided Methods§

Source

fn natural_size(&self) -> Option<(i32, i32)>

Retrieves the natural size of the video stream. The natural size, is the size at which it will be displayed if no scaling is being applied.

NOTE: The sources take into account the potential video rotation applied by the videoflip element that is inside the source, effects applied on the clip which potentially also rotate the element are not taken into account.

§Returns

true if the object has a natural size, false otherwise.

§width

The natural width of the underlying source

§height

The natural height of the underlying source

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§