pub struct DecoderPipeline { /* private fields */ }Expand description
Main decoder pipeline coordinating all reconstruction stages.
Implementations§
Source§impl DecoderPipeline
impl DecoderPipeline
Sourcepub fn new(config: PipelineConfig) -> ReconstructResult<Self>
pub fn new(config: PipelineConfig) -> ReconstructResult<Self>
Sourcepub fn process_frame(
&mut self,
data: &[u8],
context: &FrameContext,
) -> ReconstructResult<FrameBuffer>
pub fn process_frame( &mut self, data: &[u8], context: &FrameContext, ) -> ReconstructResult<FrameBuffer>
Sourcepub fn get_reference(&self, index: usize) -> ReconstructResult<&FrameBuffer>
pub fn get_reference(&self, index: usize) -> ReconstructResult<&FrameBuffer>
Get a reference frame by index.
Sourcepub fn config(&self) -> &PipelineConfig
pub fn config(&self) -> &PipelineConfig
Get the pipeline configuration.
Sourcepub const fn frame_count(&self) -> u64
pub const fn frame_count(&self) -> u64
Get the number of frames processed.
Sourcepub fn last_stage_results(&self) -> &[StageResult]
pub fn last_stage_results(&self) -> &[StageResult]
Get results from the last frame’s stages.
Sourcepub fn reconfigure(&mut self, config: PipelineConfig) -> ReconstructResult<()>
pub fn reconfigure(&mut self, config: PipelineConfig) -> ReconstructResult<()>
Reconfigure the pipeline with new settings.
§Errors
Returns error if the new configuration is invalid.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecoderPipeline
impl RefUnwindSafe for DecoderPipeline
impl Send for DecoderPipeline
impl Sync for DecoderPipeline
impl Unpin for DecoderPipeline
impl UnsafeUnpin for DecoderPipeline
impl UnwindSafe for DecoderPipeline
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
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>
Converts
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>
Converts
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