Skip to main content

Module reconstruct

Module reconstruct 

Source
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

  1. Parsing - OBU/bitstream parsing
  2. Entropy - Entropy decoding of coefficients
  3. Prediction - Intra/inter prediction
  4. Transform - Inverse transform of residuals
  5. Loop Filter - Deblocking and edge filtering
  6. CDEF - Constrained Directional Enhancement Filter
  7. Super-res - AV1 super-resolution upscaling
  8. Film Grain - Film grain synthesis
  9. 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§

BufferPool
Pool of reusable frame buffers.
CdefApplicator
CDEF applicator for applying CDEF to frames.
CdefBlockConfig
Configuration for CDEF on a single block.
CdefFilterResult
Result of CDEF filtering on a block.
DeblockFilter
Deblocking filter implementation.
DeblockParams
Parameters for deblocking filter.
DecoderPipeline
Main decoder pipeline coordinating all reconstruction stages.
EdgeFilter
Configuration for a single edge filter.
FilmGrainParams
Film grain parameters.
FilmGrainSynthesizer
Film grain synthesizer.
FilterStrength
Boundary strength (bS) for deblocking.
FrameBuffer
Buffer for a complete video frame (all planes).
FrameContext
Context for processing a single frame.
GrainBlock
Grain pattern for a block.
LoopFilterPipeline
Loop filter pipeline for applying edge filtering.
OutputConfig
Configuration for output formatting.
OutputFormatter
Output formatter for converting decoded frames.
PipelineConfig
Configuration for the decoder pipeline.
PlaneBuffer
Buffer for a single video plane (Y, U, or V).
ReferenceFrameManager
Manages reference frames for inter prediction.
ResidualBuffer
Buffer for all residual planes in a frame.
ResidualPlane
Buffer for residuals of a single plane.
StageResult
Result from a pipeline stage.
SuperResConfig
Configuration for super-resolution.
SuperResUpscaler
Super-resolution upscaler.

Enums§

ChromaSubsampling
Chroma subsampling format.
FilterDirection
Direction of edge filtering.
OutputFormat
Output pixel format.
PipelineStage
Pipeline processing stage.
PlaneType
Plane identifier.
ReconstructionError
Errors that can occur during frame reconstruction.
UpscaleMethod
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§

ReconstructResult
Result type for reconstruction operations.