pub struct Av1Encoder { /* private fields */ }Expand description
AV1 encoder.
Implementations§
Source§impl Av1Encoder
impl Av1Encoder
Sourcepub fn new(config: EncoderConfig) -> CodecResult<Self>
pub fn new(config: EncoderConfig) -> CodecResult<Self>
Source§impl Av1Encoder
impl Av1Encoder
Sourcepub fn tile_config(&self) -> Option<&TileEncoderConfig>
pub fn tile_config(&self) -> Option<&TileEncoderConfig>
Get tile encoder configuration if enabled.
Sourcepub fn has_tile_encoding(&self) -> bool
pub fn has_tile_encoding(&self) -> bool
Check if parallel tile encoding is enabled.
Sourcepub fn tile_count(&self) -> usize
pub fn tile_count(&self) -> usize
Get number of tiles being used.
Sourcepub fn set_tile_config(
&mut self,
tile_config: TileEncoderConfig,
) -> CodecResult<()>
pub fn set_tile_config( &mut self, tile_config: TileEncoderConfig, ) -> CodecResult<()>
Sourcepub fn disable_tile_encoding(&mut self)
pub fn disable_tile_encoding(&mut self)
Disable tile encoding (single-threaded mode).
Trait Implementations§
Source§impl Debug for Av1Encoder
impl Debug for Av1Encoder
Source§impl VideoEncoder for Av1Encoder
impl VideoEncoder for Av1Encoder
Source§fn send_frame(&mut self, frame: &VideoFrame) -> CodecResult<()>
fn send_frame(&mut self, frame: &VideoFrame) -> CodecResult<()>
Send a raw frame to the encoder. Read more
Source§fn receive_packet(&mut self) -> CodecResult<Option<EncodedPacket>>
fn receive_packet(&mut self) -> CodecResult<Option<EncodedPacket>>
Receive an encoded packet. Read more
Source§fn config(&self) -> &EncoderConfig
fn config(&self) -> &EncoderConfig
Get encoder configuration.
Auto Trait Implementations§
impl Freeze for Av1Encoder
impl RefUnwindSafe for Av1Encoder
impl Send for Av1Encoder
impl Sync for Av1Encoder
impl Unpin for Av1Encoder
impl UnsafeUnpin for Av1Encoder
impl UnwindSafe for Av1Encoder
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