Skip to main content

J2kReferencedTilePlan

Struct J2kReferencedTilePlan 

Source
pub struct J2kReferencedTilePlan { /* private fields */ }
Expand description

One independently executable tile in a referenced direct plan.

Implementations§

Source§

impl J2kReferencedTilePlan

Source

pub fn new( tile_index: usize, decoded_rect: J2kRect, destination_rect: J2kRect, payload_records: J2kReferencedPayloadRecordSpan, classic_payloads: Vec<J2kClassicCodeBlockPayload>, classic_ranges: Vec<J2kCodestreamRange>, wavelet_transform: J2kWaveletTransform, geometry: J2kReferencedTileGeometry, ) -> Self

Construct one producer-validated tile plan.

Source

pub const fn tile_index(&self) -> usize

Zero-based codestream tile index in raster order.

Source

pub const fn decoded_rect(&self) -> J2kRect

Tile/output-region intersection in reduced full-image coordinates.

Source

pub const fn destination_rect(&self) -> J2kRect

Tile/output-region intersection in dense destination coordinates.

Source

pub const fn payload_records(&self) -> J2kReferencedPayloadRecordSpan

Payload-record span in the parent plan.

Source

pub fn classic_payloads(&self) -> &[J2kClassicCodeBlockPayload]

Classic payload descriptors retained by a mixed tile.

Source

pub fn classic_ranges(&self) -> &[J2kCodestreamRange]

Encoded-input ranges retained by a mixed tile.

Source

pub const fn grayscale_geometry(&self) -> Option<&J2kDirectGrayscalePlan>

Grayscale geometry when present.

Source

pub const fn color_geometry(&self) -> Option<&J2kDirectColorPlan>

RGB geometry when present.

Source

pub const fn rgba_geometry(&self) -> Option<&J2kDirectRgbaPlan>

RGBA geometry when present.

Source

pub const fn wavelet_transform(&self) -> J2kWaveletTransform

Effective wavelet transform after coding-style overrides.

Trait Implementations§

Source§

impl Debug for J2kReferencedTilePlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.