pub struct CoeffPos {
pub flat_idx: u32,
pub cost: f32,
}Expand description
A coefficient position: (flat_index, cost).
Compact representation: u32 flat index (supports up to ~268M blocks = 4 Gpx)
and f32 cost (sufficient for cost ranking). Total: 8 bytes per position
(down from 16 bytes with usize + f64).
Fields§
§flat_idx: u32Flat index into the coefficient grid. For JPEG: block_index * 64 + row * 8 + col. For HEVC: TU-relative index (defined by video pipeline).
cost: f32Embedding cost at this position (f32 — sufficient for ranking).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoeffPos
impl RefUnwindSafe for CoeffPos
impl Send for CoeffPos
impl Sync for CoeffPos
impl Unpin for CoeffPos
impl UnsafeUnpin for CoeffPos
impl UnwindSafe for CoeffPos
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