pub fn copy_slice(&self, dest: &mut [u8], source: &[u8], rect: &(usize, usize, usize, usize), dest_stride: usize) {
        for y in 0..rect.3 {
            let d = rect.0 * 4 + (y + rect.1) * dest_stride * 4;
            let s = y * rect.2 * 4;
            dest[d..d + rect.2 * 4].copy_from_slice(&source[s..s + rect.2 * 4]);
        }
    }
/// Copies rect from the source frame into the dest frame
Copies rect from the source frame into the dest frame
Copies rect from the source frame into the dest frame
pub fn copy_slice(&self, dest: &mut [u8], source: &[u8], rect: &(usize, usize, usize, usize), dest_stride: usize) {
        for y in 0..rect.3 {
            let d = rect.0 * 4 + (y + rect.1) * dest_stride * 4;
            let s = y * rect.2 * 4;
            dest[d..d + rect.2 * 4].copy_from_slice(&source[s..s + rect.2 * 4]);
        }
    }
pub fn copy_slice ( & self , dest : & mut [ u8 ] , source : & [ u8 ] , rect : & ( usize , usize , usize , usize ) , dest_stride : usize ) { for y in 0 .. rect . 3 { let d = rect . 0 * 4 + ( y + rect . 1 ) * dest_stride * 4 ; let s = y * rect . 2 * 4 ; dest [ d .. d + rect . 2 * 4 ] . copy_from_slice ( & source [ s .. s + rect . 2 * 4 ] ) ; } }
Copies rect from the source frame into the dest frame
Copies rect from the source frame into the dest frame
&self
dest
&mut [u8]
source
&[u8]
rect
&(usize, usize, usize, usize)
dest_stride
usize
&self
dest
&mut [u8]
source
&[u8]
rect
&(usize, usize, usize, usize)
dest_stride
usize