pub struct VideoCodecParameters { /* private fields */ }
Expand description
Video codec parameters.
Implementations§
Source§impl VideoCodecParameters
impl VideoCodecParameters
Sourcepub fn builder(codec: &str) -> Result<VideoCodecParametersBuilder, Error>
pub fn builder(codec: &str) -> Result<VideoCodecParametersBuilder, Error>
Get builder for video codec parameters.
Sourcepub fn decoder_name(&self) -> Option<&'static str>
pub fn decoder_name(&self) -> Option<&'static str>
Get name of the decoder that is able to decode this codec or None if the decoder is not available.
Sourcepub fn encoder_name(&self) -> Option<&'static str>
pub fn encoder_name(&self) -> Option<&'static str>
Get name of the encoder that is able to produce encoding of this codec or None if the encoder is not available.
Sourcepub fn pixel_format(&self) -> PixelFormat
pub fn pixel_format(&self) -> PixelFormat
Get frame pixel format.
Trait Implementations§
Source§impl Clone for VideoCodecParameters
impl Clone for VideoCodecParameters
Source§fn clone(&self) -> VideoCodecParameters
fn clone(&self) -> VideoCodecParameters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<VideoCodecParameters> for CodecParameters
impl From<VideoCodecParameters> for CodecParameters
Source§fn from(params: VideoCodecParameters) -> Self
fn from(params: VideoCodecParameters) -> Self
Converts to this type from the input type.
Source§impl From<VideoCodecParameters> for VideoCodecParametersBuilder
impl From<VideoCodecParameters> for VideoCodecParametersBuilder
Source§fn from(params: VideoCodecParameters) -> VideoCodecParametersBuilder
fn from(params: VideoCodecParameters) -> VideoCodecParametersBuilder
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VideoCodecParameters
impl RefUnwindSafe for VideoCodecParameters
impl Send for VideoCodecParameters
impl Sync for VideoCodecParameters
impl Unpin for VideoCodecParameters
impl UnwindSafe for VideoCodecParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more