pub trait VideoSourceExt:
IsA<VideoSource>
+ Sealed
+ 'static {
// Provided method
fn natural_size(&self) -> Option<(i32, i32)> { ... }
}
Expand description
Trait containing all VideoSource
methods.
§Implementors
ImageSource
, MultiFileSource
, TitleSource
, VideoSource
, VideoTestSource
, VideoUriSource
Provided Methods§
sourcefn natural_size(&self) -> Option<(i32, i32)>
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
Object Safety§
This trait is not object safe.