pub struct WaveletSelection {
pub tiles: Vec<u32>,
pub components: Vec<u16>,
pub resolutions: Vec<u8>,
pub bands: Vec<J2kSubBandType>,
}Expand description
Requested tiles, components, resolution indices, and band orientations.
Empty lists select all values. Lists are sets: duplicates do not duplicate output, which always follows codestream tile/component/resolution order. Resolution 0 is the coarsest LL band; 1 through N contain detail bands in order from coarsest to finest. A nonempty resolution list must be valid for every selected tile component. Selections matching no band are errors.
Unselected bands are not entropy-decoded. Packet headers are still parsed, and active-tile coefficient storage is still allocated. This is not a promise of proportional I/O or memory savings, or incremental refinement.
Fields§
§tiles: Vec<u32>Row-major tile indices. Empty selects every tile.
components: Vec<u16>Codestream component indices, before inverse color transformation.
resolutions: Vec<u8>Resolution indices: 0 for LL, then coarsest-to-finest detail levels.
bands: Vec<J2kSubBandType>Band orientations; LL exists only at resolution 0.
Trait Implementations§
Source§impl Clone for WaveletSelection
impl Clone for WaveletSelection
Source§fn clone(&self) -> WaveletSelection
fn clone(&self) -> WaveletSelection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WaveletSelection
impl Debug for WaveletSelection
Source§impl Default for WaveletSelection
impl Default for WaveletSelection
Source§fn default() -> WaveletSelection
fn default() -> WaveletSelection
Auto Trait Implementations§
impl Freeze for WaveletSelection
impl RefUnwindSafe for WaveletSelection
impl Send for WaveletSelection
impl Sync for WaveletSelection
impl Unpin for WaveletSelection
impl UnsafeUnpin for WaveletSelection
impl UnwindSafe for WaveletSelection
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
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> ⓘ
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> ⓘ
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