pub struct HwDecoder { /* private fields */ }Implementations§
Source§impl HwDecoder
impl HwDecoder
pub fn new(codec: Codec, extradata: &[u8]) -> Result<Self>
pub fn with_time_base(self, time_base: TimeBase) -> Self
pub fn backend(&self) -> Backend
pub fn name(&self) -> &str
pub fn decode(&mut self, packet: &Packet) -> Result<Vec<Frame>>
pub fn flush(&mut self) -> Result<Vec<Frame>>
pub fn decode_gpu(&mut self, packet: &Packet) -> Result<Vec<GpuFrame>>
pub fn flush_gpu(&mut self) -> Result<Vec<GpuFrame>>
pub fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for HwDecoder
impl !RefUnwindSafe for HwDecoder
impl Send for HwDecoder
impl !Sync for HwDecoder
impl Unpin for HwDecoder
impl UnsafeUnpin for HwDecoder
impl !UnwindSafe for HwDecoder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more