pub struct EncodedTile {
pub tile_col: u32,
pub tile_row: u32,
pub tile_offset: (u32, u32),
pub tile_size: (u32, u32),
pub data: Vec<u8>,
pub qp: u32,
}Expand description
The result of encoding a single tile.
Fields§
§tile_col: u32Tile column index.
tile_row: u32Tile row index.
tile_offset: (u32, u32)Pixel offset of this tile’s top-left corner: (x, y).
tile_size: (u32, u32)Pixel dimensions of this tile: (width, height).
data: Vec<u8>Encoded bitstream bytes for this tile.
qp: u32Quantisation parameter used.
Implementations§
Source§impl EncodedTile
impl EncodedTile
Sourcepub fn raster_index(&self, tile_cols: u32) -> u32
pub fn raster_index(&self, tile_cols: u32) -> u32
Raster-order index: tile_row * tile_cols + tile_col.
Trait Implementations§
Source§impl Clone for EncodedTile
impl Clone for EncodedTile
Source§fn clone(&self) -> EncodedTile
fn clone(&self) -> EncodedTile
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 EncodedTile
impl RefUnwindSafe for EncodedTile
impl Send for EncodedTile
impl Sync for EncodedTile
impl Unpin for EncodedTile
impl UnsafeUnpin for EncodedTile
impl UnwindSafe for EncodedTile
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