pub struct SpectralDecoder { /* private fields */ }Expand description
Spectral holographic decoder.
Progressively reconstructs tensor data from holographic fragments. Supports V1 (legacy), V2 (compact), and V3 (SV03) formats.
§Features
- Progressive reconstruction from partial fragments
- Multi-format support (V1, V2, SV03)
- Quality improves as more fragments are added
Implementations§
Source§impl SpectralDecoder
impl SpectralDecoder
Sourcepub fn new(width: usize, height: usize, total_fragments: u16) -> Self
pub fn new(width: usize, height: usize, total_fragments: u16) -> Self
Create decoder for given dimensions.
Sourcepub fn add_fragment(&mut self, fragment: &HoloFragment) -> Result<()>
pub fn add_fragment(&mut self, fragment: &HoloFragment) -> Result<()>
Add a fragment to the reconstruction.
Sourcepub fn reconstruct(&self) -> Vec<f32>
pub fn reconstruct(&self) -> Vec<f32>
Reconstruct tensor from accumulated coefficients.
Sourcepub fn can_reconstruct(&self) -> bool
pub fn can_reconstruct(&self) -> bool
Check if minimum fragments loaded.
Sourcepub fn fragments_loaded(&self) -> u16
pub fn fragments_loaded(&self) -> u16
Number of fragments loaded.
Auto Trait Implementations§
impl Freeze for SpectralDecoder
impl RefUnwindSafe for SpectralDecoder
impl Send for SpectralDecoder
impl Sync for SpectralDecoder
impl Unpin for SpectralDecoder
impl UnwindSafe for SpectralDecoder
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