pub struct VaapiEncoder { /* private fields */ }Available on Linux and crate feature
vaapi only.Expand description
A hardware HEVC encoder on a VA driver (AMD, Intel): RGBA frames in, an
hvc1 MP4 out.
Implementations§
Source§impl VaapiEncoder
impl VaapiEncoder
Sourcepub fn new(
width: u32,
height: u32,
fps: u32,
rate: VaapiRate,
keyframe_secs: u32,
) -> Result<Self, String>
pub fn new( width: u32, height: u32, fps: u32, rate: VaapiRate, keyframe_secs: u32, ) -> Result<Self, String>
Open an encoder for width × height frames (even sizes) at fps,
rate-controlled by rate, an IDR frame every keyframe_secs seconds.
Trait Implementations§
Source§impl Drop for VaapiEncoder
impl Drop for VaapiEncoder
Auto Trait Implementations§
impl !Freeze for VaapiEncoder
impl !RefUnwindSafe for VaapiEncoder
impl !Send for VaapiEncoder
impl !Sync for VaapiEncoder
impl Forget for VaapiEncoder
impl Move for VaapiEncoder
impl Unpin for VaapiEncoder
impl UnsafeUnpin for VaapiEncoder
impl UnwindSafe for VaapiEncoder
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