Struct ac_ffmpeg::codec::VideoCodecParameters
source · 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.