pub struct PgdReader<T: Read + Seek> {
pub input: T,
output: Vec<u8>,
width: u32,
height: u32,
bpp: u8,
method: u16,
format: Option<ImageColorType>,
}Available on crate features
softpal and softpal-img only.Fields§
§input: T§output: Vec<u8>§width: u32§height: u32§bpp: u8§method: u16§format: Option<ImageColorType>Implementations§
Source§impl<T: Read + Seek> PgdReader<T>
impl<T: Read + Seek> PgdReader<T>
pub fn new(input: T, pos: u64) -> Result<Self>
pub fn with_ge_header(input: T, header: &PgdGeHeader) -> Result<Self>
pub fn with_diff_header(input: T, header: &PgdDiffHeader) -> Result<Self>
pub fn unpack_ge(self) -> Result<ImageData>
fn unpack_ge_pre(&mut self) -> Result<()>
pub fn unpack_overlay(&mut self) -> Result<ImageData>
fn post_process1(&mut self) -> Result<Vec<u8>>
fn clamp(v: i32) -> u8
fn post_process2(&mut self) -> Result<Vec<u8>>
fn post_process3(&mut self) -> Result<Vec<u8>>
fn post_process_pal( &self, input: &[u8], src: usize, pixel_size: usize, ) -> Result<Vec<u8>>
Auto Trait Implementations§
impl<T> Freeze for PgdReader<T>where
T: Freeze,
impl<T> RefUnwindSafe for PgdReader<T>where
T: RefUnwindSafe,
impl<T> Send for PgdReader<T>where
T: Send,
impl<T> Sync for PgdReader<T>where
T: Sync,
impl<T> Unpin for PgdReader<T>where
T: Unpin,
impl<T> UnwindSafe for PgdReader<T>where
T: UnwindSafe,
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