pub struct VideoPlane {
pub width: usize,
pub height: usize,
pub pixels: Vec<u8>,
}Fields§
§width: usize§height: usize§pixels: Vec<u8>Implementations§
Source§impl VideoPlane
impl VideoPlane
pub fn new(width: usize, height: usize) -> VideoPlane
pub fn from_slice(width: usize, height: usize, buffer: &[u8]) -> VideoPlane
pub fn blit( self: &mut VideoPlane, src: &VideoPlane, dx: usize, dy: usize, sx: usize, sy: usize, sw: usize, sh: usize, )
pub fn get_slice( self: &VideoPlane, sx: usize, sy: usize, sw: usize, sh: usize, ) -> VideoPlane
Source§impl VideoPlane
impl VideoPlane
pub fn get_block(self: &VideoPlane, sx: usize, sy: usize) -> MacroBlock
pub fn blit_block( self: &mut VideoPlane, block: &MacroBlock, dx: usize, dy: usize, )
pub fn encode_plane( self: &VideoPlane, q_table: &[i32; 64], clear_color: u8, tp: &ThreadPool, ) -> EncodedIPlane
pub fn encode_plane_delta( self: &VideoPlane, refplane: &VideoPlane, q_table: &[i32; 64], px_err: f32, clear_color: u8, tp: &ThreadPool, ) -> EncodedPPlane
pub fn decode_plane( src: &EncodedIPlane, q_table: &[i32; 64], tp: &ThreadPool, ) -> VideoPlane
pub fn decode_plane_delta( src: &EncodedPPlane, refplane: &VideoPlane, q_table: &[i32; 64], tp: &ThreadPool, ) -> VideoPlane
pub fn decode_plane_into( src: &EncodedIPlane, q_table: &[i32; 64], target: &mut VideoPlane, tp: &ThreadPool, )
pub fn decode_plane_delta_into( src: &EncodedPPlane, refplane: &mut VideoPlane, q_table: &[i32; 64], tp: &ThreadPool, )
pub fn reduce(self: &VideoPlane) -> VideoPlane
pub fn double(self: &VideoPlane) -> VideoPlane
Auto Trait Implementations§
impl Freeze for VideoPlane
impl RefUnwindSafe for VideoPlane
impl Send for VideoPlane
impl Sync for VideoPlane
impl Unpin for VideoPlane
impl UnwindSafe for VideoPlane
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