pub struct HeaderedTileEncodeOp;Expand description
A simple op that encodes a tile with a small header describing its position and appends placeholder compressed data.
Header layout:
[4 bytes LE: x offset]
[4 bytes LE: y offset]
[4 bytes LE: width]
[4 bytes LE: height]
[1 byte: tile col index]
[1 byte: tile row index]Followed by raw luma bytes.
Trait Implementations§
Source§impl TileEncodeOp for HeaderedTileEncodeOp
impl TileEncodeOp for HeaderedTileEncodeOp
Source§fn encode_tile(
&self,
frame: &VideoFrame,
x: u32,
y: u32,
width: u32,
height: u32,
) -> CodecResult<Vec<u8>>
fn encode_tile( &self, frame: &VideoFrame, x: u32, y: u32, width: u32, height: u32, ) -> CodecResult<Vec<u8>>
Auto Trait Implementations§
impl Freeze for HeaderedTileEncodeOp
impl RefUnwindSafe for HeaderedTileEncodeOp
impl Send for HeaderedTileEncodeOp
impl Sync for HeaderedTileEncodeOp
impl Unpin for HeaderedTileEncodeOp
impl UnsafeUnpin for HeaderedTileEncodeOp
impl UnwindSafe for HeaderedTileEncodeOp
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