pub struct ResidentDwtSubband<'a> {
pub buffer: ResidentBufferRef<'a>,
pub component: ResidentComponentGeometry,
pub sample: ResidentSampleInfo,
pub color: ResidentColorModel,
pub level: u8,
pub subband: ResidentDwtSubbandKind,
pub width: u32,
pub height: u32,
pub row_pitch_bytes: usize,
pub bytes_per_coefficient: usize,
}Expand description
Resident projected DWT subband descriptor.
Fields§
§buffer: ResidentBufferRef<'a>Backend-visible subband buffer.
component: ResidentComponentGeometryComponent geometry and sampling.
sample: ResidentSampleInfoCoefficient precision and signedness.
color: ResidentColorModelColor interpretation of the source image/component set.
level: u8DWT decomposition level.
subband: ResidentDwtSubbandKindSubband kind within the level.
width: u32Native subband width in coefficients.
height: u32Native subband height in coefficients.
row_pitch_bytes: usizeByte stride between subband rows.
bytes_per_coefficient: usizeBytes per coefficient in the resident buffer.
Implementations§
Source§impl<'a> ResidentDwtSubband<'a>
impl<'a> ResidentDwtSubband<'a>
Sourcepub fn new(
buffer: ResidentBufferRef<'a>,
component: ResidentComponentGeometry,
sample: ResidentSampleInfo,
color: ResidentColorModel,
layout: ResidentDwtSubbandLayout,
) -> Result<Self, ResidentHandoffError>
pub fn new( buffer: ResidentBufferRef<'a>, component: ResidentComponentGeometry, sample: ResidentSampleInfo, color: ResidentColorModel, layout: ResidentDwtSubbandLayout, ) -> Result<Self, ResidentHandoffError>
Build a resident DWT subband descriptor.
Sourcepub fn require_backend(
self,
backend: BackendKind,
) -> Result<Self, ResidentHandoffError>
pub fn require_backend( self, backend: BackendKind, ) -> Result<Self, ResidentHandoffError>
Validate this descriptor is backed by the expected backend.
Trait Implementations§
Source§impl<'a> Clone for ResidentDwtSubband<'a>
impl<'a> Clone for ResidentDwtSubband<'a>
Source§fn clone(&self) -> ResidentDwtSubband<'a>
fn clone(&self) -> ResidentDwtSubband<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ResidentDwtSubband<'a>
Source§impl<'a> Debug for ResidentDwtSubband<'a>
impl<'a> Debug for ResidentDwtSubband<'a>
impl<'a> Eq for ResidentDwtSubband<'a>
Source§impl<'a> PartialEq for ResidentDwtSubband<'a>
impl<'a> PartialEq for ResidentDwtSubband<'a>
Source§fn eq(&self, other: &ResidentDwtSubband<'a>) -> bool
fn eq(&self, other: &ResidentDwtSubband<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ResidentDwtSubband<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResidentDwtSubband<'a>
impl<'a> RefUnwindSafe for ResidentDwtSubband<'a>
impl<'a> Send for ResidentDwtSubband<'a>
impl<'a> Sync for ResidentDwtSubband<'a>
impl<'a> Unpin for ResidentDwtSubband<'a>
impl<'a> UnsafeUnpin for ResidentDwtSubband<'a>
impl<'a> UnwindSafe for ResidentDwtSubband<'a>
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<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