Struct stainless_ffmpeg::video_decoder::VideoDecoder
source · [−]pub struct VideoDecoder {
pub identifier: String,
pub stream_index: isize,
pub codec_context: *mut AVCodecContext,
}
Fields
identifier: String
stream_index: isize
codec_context: *mut AVCodecContext
Implementations
sourceimpl VideoDecoder
impl VideoDecoder
pub fn new(
identifier: String,
format: &FormatContext,
stream_index: isize
) -> Result<Self, String>
pub fn new_with_codec(
identifier: String,
codec_name: &str,
width: i32,
height: i32,
stream_index: isize
) -> Result<Self, String>
pub fn get_width(&self) -> i32
pub fn get_height(&self) -> i32
pub fn get_time_base(&self) -> (i32, i32)
pub fn get_frame_rate(&self) -> (i32, i32)
pub fn get_aspect_ratio(&self) -> (i32, i32)
pub fn get_pix_fmt_name(&self) -> String
pub fn decode(&self, packet: &Packet) -> Result<Frame, String>
Trait Implementations
sourceimpl Debug for VideoDecoder
impl Debug for VideoDecoder
Auto Trait Implementations
impl RefUnwindSafe for VideoDecoder
impl !Send for VideoDecoder
impl !Sync for VideoDecoder
impl Unpin for VideoDecoder
impl UnwindSafe for VideoDecoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more