Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions src/hpc/codec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
//! # Module layout (per PR-X12 worker decomposition)
//!
//! - [`ctu`] — A1: `Ctu` carrier + `CtuPartition` enum + quad-tree
//! split / merge ops. **Shipped in this PR.**
//! - `mode`, `predict`, `transform`, `quantize`, `rdo`, `ans`, `stream`
//! — A2-A8, queued as follow-up sprints.
//! split / merge ops.
//! - [`mode`] — A2: bit-pack / unpack helpers for the on-wire 16-bit
//! header + per-mode tail (Skip/Merge/Delta/Escape).
//! - [`predict`] — A3-intra: encoder-side mode-decision kernel that
//! picks the cheapest `LeafCu` from a cell + NESW neighbours.
//! - `transform`, `quantize`, `rdo`, `ans`, `stream` — A4-A8, queued as
//! follow-up sprints.
//!
//! # Feature gate
//!
Expand All @@ -22,6 +26,13 @@
//! `.claude/knowledge/pr-x12-codec-x265-design.md` — master design doc.

pub mod ctu;
pub mod mode;
pub mod predict;

pub use ctu::{CellMode, MergeDir, MAX_QUAD_TREE_NODES, MAX_SPLIT_DEPTH};
pub use ctu::{Ctu, CtuArena, CtuPartition, LeafCu, MaxSplitDepthReached, MergeError, NodeIdx};
pub use mode::{
pack_header, pack_leaf, pack_merge_dir, packed_byte_len, unpack_header, unpack_leaf, unpack_merge_dir, BASIN_NONE,
MAX_BASIN_IDX,
};
pub use predict::{is_no_basin, predict_intra, IntraConfig, IntraContext};
Loading
Loading