pub struct TileFrameSplitter { /* private fields */ }Expand description
Splits frames into tile regions for parallel encoding.
Implementations§
Source§impl TileFrameSplitter
impl TileFrameSplitter
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 regions(&self) -> &[TileRegion]
pub fn regions(&self) -> &[TileRegion]
Get all tile regions.
Sourcepub fn region(&self, index: usize) -> Option<&TileRegion>
pub fn region(&self, index: usize) -> Option<&TileRegion>
Get tile region by index.
Sourcepub fn tile_count(&self) -> usize
pub fn tile_count(&self) -> usize
Get number of tiles.
Trait Implementations§
Source§impl Clone for TileFrameSplitter
impl Clone for TileFrameSplitter
Source§fn clone(&self) -> TileFrameSplitter
fn clone(&self) -> TileFrameSplitter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TileFrameSplitter
impl RefUnwindSafe for TileFrameSplitter
impl Send for TileFrameSplitter
impl Sync for TileFrameSplitter
impl Unpin for TileFrameSplitter
impl UnsafeUnpin for TileFrameSplitter
impl UnwindSafe for TileFrameSplitter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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