Struct ac_ffmpeg::codec::video::VideoDecoder
source · pub struct VideoDecoder { /* private fields */ }
Expand description
Video decoder.
Implementations§
source§impl VideoDecoder
impl VideoDecoder
sourcepub fn from_codec_parameters(
codec_parameters: &VideoCodecParameters
) -> Result<VideoDecoderBuilder, Error>
pub fn from_codec_parameters(
codec_parameters: &VideoCodecParameters
) -> Result<VideoDecoderBuilder, Error>
Create a new video decoder builder from given codec parameters.
sourcepub fn from_stream(stream: &Stream) -> Result<VideoDecoderBuilder, Error>
pub fn from_stream(stream: &Stream) -> Result<VideoDecoderBuilder, Error>
Create a new decoder for a given stream.
Panics
The method panics if the stream is not a video stream.
Trait Implementations§
source§impl Decoder for VideoDecoder
impl Decoder for VideoDecoder
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, packet: Packet) -> Result<(), CodecError>
fn try_push(&mut self, packet: Packet) -> Result<(), CodecError>
Push a given packet to the decoder.