Struct ac_ffmpeg::codec::video::VideoEncoder
source · pub struct VideoEncoder { /* private fields */ }
Expand description
Video encoder.
Implementations§
source§impl VideoEncoder
impl VideoEncoder
sourcepub fn from_codec_parameters(
codec_parameters: &VideoCodecParameters
) -> Result<VideoEncoderBuilder, Error>
pub fn from_codec_parameters(
codec_parameters: &VideoCodecParameters
) -> Result<VideoEncoderBuilder, Error>
Create a new encoder from given codec parameters.
Trait Implementations§
source§impl Drop for VideoEncoder
impl Drop for VideoEncoder
source§impl Encoder for VideoEncoder
impl Encoder for VideoEncoder
type CodecParameters = VideoCodecParameters
type Frame = VideoFrame
source§fn codec_parameters(&self) -> VideoCodecParameters
fn codec_parameters(&self) -> VideoCodecParameters
Get codec parameters.
source§fn try_push(&mut self, frame: VideoFrame) -> Result<(), CodecError>
fn try_push(&mut self, frame: VideoFrame) -> Result<(), CodecError>
Push a given frame to the encoder.