pub struct RasterOptions { /* private fields */ }Expand description
Limits one RGBA working strip, not codec/assets/output or whole-process memory.
Implementations§
Source§impl RasterOptions
impl RasterOptions
Sourcepub fn new(max_strip_bytes: usize, max_strip_rows: u32) -> Result<Self>
pub fn new(max_strip_bytes: usize, max_strip_rows: u32) -> Result<Self>
Creates limits from 1 byte through 64 MiB and from 1 through 4096 rows.
The independent 4 MiB scanline ceiling still applies. A scanline that cannot fit the selected strip-byte limit is rejected, never rounded up.
Sourcepub const fn max_strip_bytes(self) -> usize
pub const fn max_strip_bytes(self) -> usize
Maximum RGBA bytes in one working strip.
Sourcepub const fn max_strip_rows(self) -> u32
pub const fn max_strip_rows(self) -> u32
Maximum rows in one working strip.
Trait Implementations§
Source§impl Clone for RasterOptions
impl Clone for RasterOptions
impl Copy for RasterOptions
Source§impl Debug for RasterOptions
impl Debug for RasterOptions
Source§impl Default for RasterOptions
impl Default for RasterOptions
impl Eq for RasterOptions
Source§impl PartialEq for RasterOptions
impl PartialEq for RasterOptions
impl StructuralPartialEq for RasterOptions
Auto Trait Implementations§
impl Freeze for RasterOptions
impl RefUnwindSafe for RasterOptions
impl Send for RasterOptions
impl Sync for RasterOptions
impl Unpin for RasterOptions
impl UnsafeUnpin for RasterOptions
impl UnwindSafe for RasterOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.