pub struct HwEncoder { /* private fields */ }Implementations§
Source§impl HwEncoder
impl HwEncoder
pub fn new(codec: Codec, config: &EncoderConfig) -> Result<Self>
pub fn backend(&self) -> Backend
pub fn name(&self) -> &str
pub fn b_frames(&self) -> u8
pub fn encode(&mut self, frame: &Frame) -> Result<Vec<Packet>>
pub fn encode_gpu(&mut self, frame: &GpuFrame) -> Result<Vec<Packet>>
pub fn composes(&self) -> bool
pub fn encode_gpu_over( &mut self, frame: &GpuFrame, layer: &Arc<Rgba>, ) -> Result<Vec<Packet>>
pub fn flush(&mut self) -> Result<Vec<Packet>>
pub fn extradata(&self) -> Option<&[u8]>
Auto Trait Implementations§
impl Freeze for HwEncoder
impl !RefUnwindSafe for HwEncoder
impl Send for HwEncoder
impl !Sync for HwEncoder
impl Unpin for HwEncoder
impl UnsafeUnpin for HwEncoder
impl !UnwindSafe for HwEncoder
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