Expand description
Video frame reconstruction pipeline.
This module provides the complete reconstruction pipeline for decoded video frames, coordinating all stages from entropy decoding through final output formatting.
§Pipeline Stages
- Parsing - OBU/bitstream parsing
- Entropy - Entropy decoding of coefficients
- Prediction - Intra/inter prediction
- Transform - Inverse transform of residuals
- Loop Filter - Deblocking and edge filtering
- CDEF - Constrained Directional Enhancement Filter
- Super-res - AV1 super-resolution upscaling
- Film Grain - Film grain synthesis
- Output - Final format conversion
§Example
ⓘ
use oximedia_codec::reconstruct::{DecoderPipeline, PipelineConfig};
let config = PipelineConfig::default();
let mut pipeline = DecoderPipeline::new(config)?;
// Process a frame through all stages
let output = pipeline.process_frame(&encoded_data)?;Structs§
- Buffer
Pool - Pool of reusable frame buffers.
- Cdef
Applicator - CDEF applicator for applying CDEF to frames.
- Cdef
Block Config - Configuration for CDEF on a single block.
- Cdef
Filter Result - Result of CDEF filtering on a block.
- Deblock
Filter - Deblocking filter implementation.
- Deblock
Params - Parameters for deblocking filter.
- Decoder
Pipeline - Main decoder pipeline coordinating all reconstruction stages.
- Edge
Filter - Configuration for a single edge filter.
- Film
Grain Params - Film grain parameters.
- Film
Grain Synthesizer - Film grain synthesizer.
- Filter
Strength - Boundary strength (bS) for deblocking.
- Frame
Buffer - Buffer for a complete video frame (all planes).
- Frame
Context - Context for processing a single frame.
- Grain
Block - Grain pattern for a block.
- Loop
Filter Pipeline - Loop filter pipeline for applying edge filtering.
- Output
Config - Configuration for output formatting.
- Output
Formatter - Output formatter for converting decoded frames.
- Pipeline
Config - Configuration for the decoder pipeline.
- Plane
Buffer - Buffer for a single video plane (Y, U, or V).
- Reference
Frame Manager - Manages reference frames for inter prediction.
- Residual
Buffer - Buffer for all residual planes in a frame.
- Residual
Plane - Buffer for residuals of a single plane.
- Stage
Result - Result from a pipeline stage.
- Super
ResConfig - Configuration for super-resolution.
- Super
ResUpscaler - Super-resolution upscaler.
Enums§
- Chroma
Subsampling - Chroma subsampling format.
- Filter
Direction - Direction of edge filtering.
- Output
Format - Output pixel format.
- Pipeline
Stage - Pipeline processing stage.
- Plane
Type - Plane identifier.
- Reconstruction
Error - Errors that can occur during frame reconstruction.
- Upscale
Method - Upscaling method.
Constants§
- MAX_
BIT_ DEPTH - Maximum supported bit depth.
- MAX_
FRAME_ HEIGHT - Maximum frame height.
- MAX_
FRAME_ WIDTH - Maximum frame width.
- MAX_
SB_ SIZE - Maximum superblock size.
- MIN_
BIT_ DEPTH - Minimum supported bit depth.
- MIN_
SB_ SIZE - Minimum superblock size.
- NUM_
REF_ FRAMES - Number of reference frame slots.
Type Aliases§
- Reconstruct
Result - Result type for reconstruction operations.