[−][src]Enum av_data::frame::MediaKind
A list of possible stream information types.
Variants
Video(VideoInfo)Video codec information.
Audio(AudioInfo)Audio codec information.
Implementations
impl MediaKind[src]
pub fn get_video_info(&self) -> Option<VideoInfo>[src]
Returns video stream information.
pub fn get_audio_info(&self) -> Option<AudioInfo>[src]
Returns audio stream information.
pub fn is_video(&self) -> bool[src]
Reports whether the current stream is video stream.
pub fn is_audio(&self) -> bool[src]
Reports whether the current stream is audio stream.
Trait Implementations
impl Clone for MediaKind[src]
impl Debug for MediaKind[src]
impl Display for MediaKind[src]
impl From<AudioInfo> for MediaKind[src]
impl From<VideoInfo> for MediaKind[src]
impl PartialEq<MediaKind> for MediaKind[src]
impl StructuralPartialEq for MediaKind[src]
Auto Trait Implementations
impl RefUnwindSafe for MediaKind[src]
impl Send for MediaKind[src]
impl Sync for MediaKind[src]
impl Unpin for MediaKind[src]
impl UnwindSafe for MediaKind[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,