pub struct Atlas { /* private fields */ }Expand description
Atlas: previously decoded patches, ranked lookup by signature.
Implementations§
Source§impl Atlas
impl Atlas
Sourcepub fn insert_with_sig(&mut self, tile: &Tile, sig: Sig)
pub fn insert_with_sig(&mut self, tile: &Tile, sig: Sig)
Insert with a precomputed signature (review fix 5: callers that already computed sig for ranking should not pay for it twice).
Sourcepub fn rank_by_sig(&self, sig: &Sig, w: u32, h: u32, top: usize) -> Vec<u32>
pub fn rank_by_sig(&self, sig: &Sig, w: u32, h: u32, top: usize) -> Vec<u32>
Rank candidate patch indices by structural signature distance (v0.6
P1: gradient/variance/luma, not mean-RGB-only). Only identically shaped
patches within the last ATLAS_CAPACITY (README: “last 128”) are
eligible. Returns at most top indices, best first — encoder
re-scores each candidate by actual proxy cost anyway.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Atlas
impl RefUnwindSafe for Atlas
impl Send for Atlas
impl Sync for Atlas
impl Unpin for Atlas
impl UnsafeUnpin for Atlas
impl UnwindSafe for Atlas
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