pub struct ParallelTileEncoder { /* private fields */ }Expand description
Orchestrates parallel encoding of all tiles in a frame.
Implementations§
Source§impl ParallelTileEncoder
impl ParallelTileEncoder
Sourcepub fn new(
config: TileEncoderConfig,
frame_width: u32,
frame_height: u32,
) -> CodecResult<Self>
pub fn new( config: TileEncoderConfig, frame_width: u32, frame_height: u32, ) -> CodecResult<Self>
Sourcepub fn encode_frame(
&self,
frame: &VideoFrame,
quality: u8,
is_keyframe: bool,
) -> CodecResult<Vec<TileEncodedData>>
pub fn encode_frame( &self, frame: &VideoFrame, quality: u8, is_keyframe: bool, ) -> CodecResult<Vec<TileEncodedData>>
Sourcepub fn merge_tiles(&self, tiles: &[TileEncodedData]) -> CodecResult<Vec<u8>>
pub fn merge_tiles(&self, tiles: &[TileEncodedData]) -> CodecResult<Vec<u8>>
Sourcepub fn config(&self) -> &TileEncoderConfig
pub fn config(&self) -> &TileEncoderConfig
Get tile configuration.
Sourcepub fn tile_count(&self) -> usize
pub fn tile_count(&self) -> usize
Get tile count.
Sourcepub fn regions(&self) -> &[TileRegion]
pub fn regions(&self) -> &[TileRegion]
Get tile regions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelTileEncoder
impl RefUnwindSafe for ParallelTileEncoder
impl Send for ParallelTileEncoder
impl Sync for ParallelTileEncoder
impl Unpin for ParallelTileEncoder
impl UnsafeUnpin for ParallelTileEncoder
impl UnwindSafe for ParallelTileEncoder
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