Skip to main content

Crate oxideav_vp8

Crate oxideav_vp8 

Source
Expand description

§oxideav-vp8

Status: clean-room rebuild in progress (post 2026-05-20 audit).

The prior implementation was retired under the workspace clean-room policy and the crate is being re-implemented from scratch against RFC 6386, using only material under docs/ and black-box validator binaries.

Currently landed:

  • VP8 boolean (range) entropy decoder — the foundational primitive every higher-level decode step is built on (RFC 6386 §7); see bool_decoder.

  • VP8 uncompressed frame header (frame tag + key-frame start code + width / height / scale codes) per RFC 6386 §9.1; see frame_header.

  • VP8 boolean-coded frame header — the complete §19.2 table per RFC 6386; see coded_header. Covers segmentation, loop-filter knobs, MB loop-filter adjustments, DCT partition count, quantiser indices, the token_prob_update() sweep, entropy-probability refresh, the inter-frame reference refresh / copy / sign-bias ladder, the per-MB skip flag, the §9.10 tail of prob_intra / prob_last / prob_gf, the gated Y and UV intra-mode probability replacements, and the mv_prob_update() sub-block of §17.2 (two 19-position MV_CONTEXTs, each F? P(7)).

  • VP8 key-frame macroblock mode decoding (RFC 6386 §11) — the per-MB segment id, mb_skip_coeff, Y mode (kf_ymode_tree), sixteen sub-block modes when B_PRED is selected (bmode_tree driven by the §11.3 context predictors and the §11.5 kf_bmode_prob[10][10][9] table), and the UV mode (uv_mode_tree). See macroblock.

  • VP8 intra-prediction pixel kernels (RFC 6386 §12) — the four 16×16 luma modes, the four 8×8 chroma modes, and the ten 4×4 sub-block modes. Pure pixel-shape kernels operating on small neighbour arrays; no entropy decode, no IDCT, no loop filter. See intra_predict.

  • VP8 DCT-coefficient token decoding (RFC 6386 §13) — the coeff_tree walker, the DCTextra extra-bits decode, the §13.5 default token-probability table, and a per-sub-block decode_block primitive that recovers a [i16; 16] of quantised coefficients. The §13.3 per-macroblock token walk (decode_mb_coeffs) sits on top of decode_block: it walks the 24/25 residual blocks of one macroblock (Y2 first when present, then 16 Y, 4 U, 4 V), threads the above / left non-zero predictor context through the §20.16 left_context_index / above_context_index slot tables (a nine-entry MbEntropyCtx: 4 Y, 2 U, 2 V, 1 Y2), honours the §13.1 mb_skip_coeff short-circuit with the §20.16 reset_mb_context Y2-preserving rule, selects the YAfterY2 / YNoY2 plane per the macroblock’s has_y2, and reorders each block into raster order via the §20.16 zigzag[16] table — producing an frame::MbCoeffs directly from the bitstream. The coefficients are the raw quantized token values; the §14.1 Y2 / chroma dequant scaling is applied by the dequant layer. See dct_tokens.

  • VP8 §14.1 dequantization scaling and the bitstream→dequant wrapper — dequant::MbDequantFactors computes the six §14.1 dequant factors (Y1 DC/AC, Y2 DC/AC, chroma DC/AC) from the §9.6 quantiser indices, applying the §20.4 dixie.c dequant_init scaling / clamping rules (Y2 DC × 2, Y2 AC × 155/100 floored at 8, chroma DC capped at 132) over the §14.1 dc_qlookup / ac_qlookup tables with the §20.4 clamp_q index saturation. dequant::MbDequantFactors::for_segment layers the §10 per-segment quantizer override (delta or absolute) on the frame baseline. dequant::MbDequantFactors::dequantize scales a raw frame::MbCoeffs in place, and dequant::decode_and_dequantize_mb is the wrapper that runs dct_tokens::decode_mb_coeffs then dequantizes — turning the bitstream straight into the pre-dequantized frame::MbCoeffs that frame::decode_keyframe consumes, completing the keyframe decode chain bitstream → dequant → reconstruct → pixels. See dequant.

  • VP8 dequantization and inverse transforms (RFC 6386 §14) — the §14.1 dc_qlookup / ac_qlookup tables with Y-plane factor computation, the §14.3 inverse WHT (general + single-DC fast path), the §14.4 inverse DCT, and the §14.5 predictor+residue summation with clamp255. Per-block raster-order primitives; the Y2/chroma dequant scaling and the zig-zag→raster reordering are documented spec gaps left to the integration round. See inverse_transform.

  • VP8 loop filter per-segment primitives (RFC 6386 §15) — the §15.2 simple filter, the §15.3 normal subblock / macroblock filters, and the §15.4 control-parameter derivation (LoopFilterParams::derive). Pure per-edge-segment kernels operating on a caller-supplied pixel window. See loop_filter.

  • VP8 §15.1 loop-filter frame geometry — filter_frame, the per-frame post-pass that walks the reconstructed KeyframePlanes in raster order and applies the §15.2 / §15.3 kernels across each macroblock’s left inter-MB edge, three internal vertical subblock edges, top inter-MB edge, and three internal horizontal subblock edges (chroma analogues for the normal filter; the simple filter is luma-only), honouring the §15.1 page-86 steps-2/4 skip rule (mode neither B_PRED nor SPLITMV and no coded coefficient) and the §15 page-84 level-0 whole-MB skip. The per-MB level derivation (calculate_mb_filter_level) implements the §20.6 dixie.c calculate_filter_parameters body: base loop_filter_level + §10 per-segment override (delta or absolute, clamped 0..=63) + §9.4 reference / mode deltas (clamped again). FrameFilterConfig carries the resolved frame state, with FrameFilterConfig::keyframe building it from a Vp8CodedHeader. See loop_filter.

  • VP8 interframe intra-predicted macroblock mode decoding (RFC 6386 §16.1) — the dynamic ymode_prob / uv_mode_prob resolution (InterFrameIntraProbs::for_frame_header) including the §16.1 last-paragraph reset on key frames and the §9.10 per-frame overlay, plus the ymode_tree / context-free bmode_prob / uv_mode_tree walks (parse_inter_frame_intra_macroblock_modes). Returns a MacroblockModes for one intra-predicted MB on an interframe; the caller forwards the segment_id and mb_skip_coeff already read before the intra-vs-inter discriminator. See macroblock.

  • VP8 §14.2 per-macroblock reconstruction orchestration — decode_keyframe_mb_non_bpred ties together token-decoded coefficients, the §14.3 inverse WHT, the §14.4 inverse DCT, the §12 intra-prediction kernels and the §14.5 predictor+residue summation to produce reconstructed Y / U / V pixels for one macroblock whose 16×16 luma mode is one of the four non-B_PRED modes. Honours the §11.1 mb_skip_coeff short-circuit. decode_keyframe_mb_bpred is the companion §11.3 / §12.3 B_PRED orchestrator: it drives the sixteen 4×4 luma sub-blocks with per-sub-block neighbour evolution (each sub-block’s reconstructed pixels become the next sub-block’s above / left), applies the §12.3 right-edge above-right fixup for sub-blocks 7 / 11 / 15, omits the Y2 WHT seeding (a B_PRED MB has no Y2 block), and reconstructs the chroma planes with the same 8×8 §12.2 path. See reconstruct.

  • VP8 per-frame keyframe raster walker (RFC 6386 §12 / §14.2) — decode_keyframe iterates a key frame’s macroblocks in raster-scan order, assembling each MB’s reconstruct::MbNeighbors strips from the already-reconstructed full-frame plane buffers (the bottom row of the MB above, the rightmost column of the MB to the left, the corner pixel, and — for B_PRED — the four §12.3 above-and-to-the-right pixels with the rightmost-MB (-1,15) clamp), selecting the non-B_PRED vs B_PRED orchestrator per the MB’s decoded luma mode, and writing reconstructed pixels into the frame::KeyframePlanes I420 buffers. Off-frame edges are reported as None so the §12.2 DC_PRED averaging distinguishes genuine pixels from 127 / 129 fills. Consumes frame::MbCoeffs (pre-dequantized) produced by the dequant layer. See frame.

  • VP8 motion-vector component decoding (RFC 6386 §17) — read_mv_component (§17.1 read_mvcomponent: the short-vs-long range selector, the SMALL_MVTREE tree-coded 0..=7 short form, the independent-bit long form with the implicit bit-3 rule, and the conditional sign) and read_mv (§17.2 read_mv: row then column). resolve_mv_contexts applies the round-4 §17.2 mv_prob_update() overlays onto a base MvContexts (defaulting via default_mv_contexts on key frames, carried-forward across interframes), turning the parsed updates into the live decoding tables. Returns the raw differential Mv; the §16.3 reference-base addition, the §18.1 range clamp / stored-luma doubling, and the §16 mv_ref / SPLITMV machinery are deferred to later inter-prediction rounds. See motion_vector.

  • VP8 interframe motion compensation (RFC 6386 §16.2 / §18) — the inter-prediction slice that consumes a decoded motion vector. select_ref_frame reads the §16.2 prob_last / prob_gf reference selector into a RefFrame; stored_luma_mv applies the §18.1 stored-luma doubling, chroma_mv the §18.1 avg() chroma averaging (cross-checked against the §20.14 closed form), and apply_full_pixel the version-3 full-pel-chroma truncation. fetch_block_whole_pixel is the §20.14 build_mc_border edge-replicated 4×4 reference fetch specialised to whole-pixel offsets; fetch_block_halo is the 9×9 support-halo fetch the six-tap convolution needs. The §18.3 sub-pixel interpolation lands here: SIXTAP_FILTERS / BILINEAR_FILTERS are the §18.3 tap tables (filter_set_for_version / FilterSet pick the set by frame-tag version), interp / sixtap_2d are the §20.14 one-dimensional convolutions, and filter_block_4x4 is the §20.14 filter_block per-sub-block dispatcher (whole-pixel copy or horizontal-then-vertical six-tap synthesis). predict_inter_mb assembles the §18.2 whole-MB prediction buffer for a non-SPLITMV macroblock (ReferencePlanes borrows the reference frame’s I420 planes), and reconstruct_inter_mb folds in the §14 dequantized residual (Y2 WHT seeding + per-sub-block inverse DCT + §14.5 summation) to complete inter-MB reconstruction. The whole-pixel-only predict_inter_mb_whole_pixel / reconstruct_inter_mb_whole_pixel entry points are retained and refuse a sub-pixel vector with MotionCompError::SubPixelNotSupported. See motion_comp.

  • VP8 near/nearest motion-vector census and inter-mode tree (RFC 6386 §16.2 / §16.3 / §18.1) — near_mv, the slice that decides which vector a whole-MB inter macroblock uses. find_near_mvs is the §16.3 vp8_find_near_mvs spatial census over the above / left / above-left MbInfo neighbours (MbInfo::border for the §16.3 1-MB off-frame border), producing the best / nearest / near candidates and the weighted cnt census (with the §16.3 dedupe, SPLITMV-merge, near↔nearest swap, and best:=nearest store). SignBias carries the §9.7 sign-bias bits and drives the §16.3 mv_bias negation; mv_ref_probs derives the §16.2 tree probabilities from the census via MV_COUNTS_TO_PROBS; and read_inter_mode walks MV_REF_TREE into an InterMode. clamp_mv / MvClampRect are the §16.3 / §18.1 one-MB-border clamp. resolve_inter_mb_mv ties census → probabilities → mode → the single per-MB vector (ZEROMV / NEARESTMV / NEARMV / NEWMV, the last adding the §17 differential to the clamped best per §18.1), and decode_inter_mb drives reconstruct_inter_mb with that vector so a whole-MB inter macroblock decodes from bitstream to reconstructed pixels. §16.4 SPLITMV’s per-sub-block walk is a follow-up (ResolvedInterMode::Split / InterMbError::SplitNotSupported carry the clamped best base). See near_mv.

  • VP8 top-level per-frame decode driver (decode_vp8) and the oxideav_core::Decoder integration (decoder::Vp8Decoder, gated on the default-on registry feature). decode_vp8 takes the raw bytes of one VP8 frame, parses the §9.1 uncompressed header and the §19.2 boolean-coded frame header, runs the §11 macroblock prediction layer, carves the §9.5 DCT partitions (round-robin row striping per §20.4), decodes + dequantizes each macroblock’s §13 residuals, reconstructs the frame via decode_keyframe, applies the §15.1 loop-filter post-pass, and emits a visible-cropped I420 decoder::Vp8DecodedFrame. Interframes (§16) are surfaced as a clean decoder::DecodeError::Unsupported. See decoder.

  • VP8 multi-frame stateful decoder driver (state::Vp8DecoderState, state::Vp8DecoderState::decode_frame) owning the RFC 6386 §9 three-slot reference-frame buffer (state::RefFrameSlot for LAST / GOLDEN / ALTREF), the §9.10 entropy / intra-mode / MV carry-state (with the §20 saved_entropy rollback when refresh_entropy_probs is false), and the §9 copy_buffer_to_* / refresh_* slot rotation. The per-frame walker dispatches each macroblock to either the §11 keyframe intra path or the §16 inter path (intra-on-interframe via parse_inter_frame_intra_macroblock_modes, whole-MB inter via select_ref_frame → §16.3 census → §16.2 inter-mode tree → reconstruct_inter_mb, SPLITMV via decode_split_mv → reconstruct_split_mv_mb), runs the §15.1 loop-filter post-pass with the full §9.4 ref + mode delta ladder (loop_filter::FrameFilterConfig::interframe + loop_filter::filter_inter_frame + loop_filter::calculate_mb_filter_level_inter), and emits a visible-cropped I420 picture per frame.

With the §13.3 per-MB token walk (dct_tokens::decode_mb_coeffs), the §14.1 dequant scaling (dequant::decode_and_dequantize_mb), the per-key-frame decode_vp8 driver, the §16.4 SPLITMV walk, and now the multi-frame state::Vp8DecoderState all landed, the full key+inter decode chain is bit-exact against the reference decoder output on multi-frame fixtures (single I + P; 5-frame mid-GOP golden refresh; 10-frame auto-alt-ref + ARNR).

  • VP8 encoder Phase 1 — the bitstream-formatting half of the encoder (encoder). Ships the §7.3 encoder::BoolEncoder (a Rust port of the bool_encoder C listing embedded in RFC 6386 §7.3), the §9.1 / §9.3 / §9.4 / §9.5 / §9.6 / §9.9 / §9.10 / §9.11 frame-header writer subroutines, and the top-level encoder::encode_silent_keyframe driver. Every emitted MB is coded as mb_skip_coeff = 1 with DC_PRED luma + chroma, so the §13 token / §14 transform / mode-selection logic is not exercised yet — but the resulting bytes are a structurally-valid VP8 key frame the crate’s own decode_vp8 consumes and that ffmpeg -c:v vp8 accepts when wrapped in an IVF container. The §13 / §14 rate-distortion encode side is future work.

  • VP8 encoder Phase 2 begin: §14 forward 4×4 DCT + WHT primitives (forward_transform) — forward_dct_4x4, forward_wht_4x4, and raster_to_scan, the encoder partners of the §14.3 / §14.4 inverse transforms and the §20.16 zig-zag reorder. Mechanically derived as the transpose of the §14.3 / §14.4 inverse listings (the §14.4 preamble itself notes the transform is “a classical 2-D inverse discrete cosine transform”); both reuse the same COSPI8_SQRT2_MINUS1 = 20091 / SINPI8_SQRT2 = 35468 fixed-point constants so the forward / inverse rounding shapes match. Wired through the existing encoder::TokenEncoder for a per-MB roundtrip proof (FDCT → quantize → raster-to-scan → encode → decode → scan-to- raster → dequant → IDCT) at 48.13 dB PSNR on a synthetic flat block at yac_qi = 32 (lossless at yac_qi = 0); see tests/encoder_transform_roundtrip.rs. The per-MB block-set wiring (Y2 DC seeding, 24/25-block walk, RD-driven mode + quant-step selection) is the next encoder round.

Re-exports§

pub use arnr::ArnrConfig;
pub use arnr::ArnrPicture;
pub use arnr::build_arnr_altref;
pub use bool_decoder::BoolDecoder;
pub use bool_decoder::BoolDecoderError;
pub use coded_header::CodedHeaderError;
pub use coded_header::DEFAULT_MV_CONTEXT;
pub use coded_header::MV_PROB_COUNT;
pub use coded_header::MbLfAdjustments;
pub use coded_header::MvProbUpdates;
pub use coded_header::QuantIndices;
pub use coded_header::TokenProbUpdates;
pub use coded_header::UpdateSegmentation;
pub use coded_header::Vp8CodedHeader;
pub use dct_tokens::BlockType;
pub use dct_tokens::COEFF_BANDS;
pub use dct_tokens::CoeffProbs;
pub use dct_tokens::DEFAULT_COEFF_PROBS;
pub use dct_tokens::DctToken;
pub use dct_tokens::DctTokenError;
pub use dct_tokens::MB_ENTROPY_CTX_LEN;
pub use dct_tokens::MbCoeffError;
pub use dct_tokens::MbEntropyCtx;
pub use dct_tokens::ZIGZAG;
pub use dct_tokens::decode_block;
pub use dct_tokens::decode_mb_coeffs;
pub use dct_tokens::merge_default_token_probs;
pub use decoder::DEFAULT_MAX_PIXELS_PER_FRAME;
pub use decoder::DecodeError;
pub use decoder::Vp8DecodeOptions;
pub use decoder::Vp8DecodedFrame;
pub use decoder::decode_vp8;
pub use decoder::decode_vp8_with_max_pixels;
pub use decoder::decode_vp8_with_options;
pub use decoder::Vp8Decoder;
pub use dequant::MbDequantFactors;
pub use dequant::UV_DC_MAX;
pub use dequant::Y2_AC_MIN;
pub use dequant::decode_and_dequantize_mb;
pub use encoder::AdaptiveQuantConfig;
pub use encoder::BoolEncoder;
pub use encoder::BranchCounts;
pub use encoder::CopyBufferSelector;
pub use encoder::EncodeEffort;
pub use encoder::EncodeError;
pub use encoder::EncodedMb;
pub use encoder::I420Frame;
pub use encoder::InterCodingOptions;
pub use encoder::InterEncoded;
pub use encoder::InterSegmentationConfig;
pub use encoder::KeyframeCodingOptions;
pub use encoder::KeyframeEncodeOptions;
pub use encoder::KeyframeEncoded;
pub use encoder::KeyframeParams;
pub use encoder::LoopFilterDeltaSlot;
pub use encoder::LoopFilterDeltas;
pub use encoder::MbPixels;
pub use encoder::RefreshControls;
pub use encoder::ScaleCode as EncoderScaleCode;
pub use encoder::SilentKeyframeEncoder;
pub use encoder::SilentKeyframeParams;
pub use encoder::TokenEncodeError;
pub use encoder::TokenEncoder;
pub use encoder::TrellisStrength;
pub use encoder::UpdateSegmentationLayer;
pub use encoder::classify_coeff_token;
pub use encoder::count_block_branches;
pub use encoder::count_inter_frame_branches;
pub use encoder::count_keyframe_branches;
pub use encoder::count_mb_branches;
pub use encoder::empty_branch_counts;
pub use encoder::encode_coeff_block;
pub use encoder::encode_invisible_altref_update;
pub use encoder::encode_invisible_altref_update_with_coding_options;
pub use encoder::encode_keyframe;
pub use encoder::encode_keyframe_adaptive_quant;
pub use encoder::encode_keyframe_adaptive_quant_with_reconstruction;
pub use encoder::encode_keyframe_adaptive_quant_with_reconstruction_and_trellis;
pub use encoder::encode_keyframe_adaptive_quant_with_segment_lf_deltas;
pub use encoder::encode_keyframe_adaptive_quant_with_segment_lf_deltas_and_trellis;
pub use encoder::encode_keyframe_adaptive_quant_with_trellis;
pub use encoder::encode_keyframe_auto_loop_filter;
pub use encoder::encode_keyframe_auto_loop_filter_with_reconstruction;
pub use encoder::encode_keyframe_detailed;
pub use encoder::encode_keyframe_with_fitted_token_prob_updates;
pub use encoder::encode_keyframe_with_options;
pub use encoder::encode_keyframe_with_reconstruction;
pub use encoder::encode_keyframe_with_reconstruction_and_coding_options;
pub use encoder::encode_keyframe_with_reconstruction_and_fitted_token_prob_updates;
pub use encoder::encode_keyframe_with_reconstruction_and_options;
pub use encoder::encode_keyframe_with_reconstruction_and_token_updates;
pub use encoder::encode_keyframe_with_token_prob_updates;
pub use encoder::encode_mb_block_set;
pub use encoder::encode_mb_block_set_with_neighbors;
pub use encoder::encode_mb_block_set_with_neighbors_strength;
pub use encoder::encode_p_frame_detailed;
pub use encoder::encode_p_frame_multi_ref;
pub use encoder::encode_p_frame_multi_ref_adaptive_quant;
pub use encoder::encode_p_frame_multi_ref_auto_loop_filter;
pub use encoder::encode_p_frame_multi_ref_with_fitted_token_prob_updates;
pub use encoder::encode_p_frame_multi_ref_with_intra_pick;
pub use encoder::encode_p_frame_multi_ref_with_refresh;
pub use encoder::encode_p_frame_multi_ref_with_refresh_and_coding_options;
pub use encoder::encode_p_frame_multi_ref_with_refresh_and_intra_pick;
pub use encoder::encode_p_frame_multi_ref_with_refresh_and_lf_deltas;
pub use encoder::encode_p_frame_multi_ref_with_refresh_and_lf_deltas_and_fitted_token_prob_updates;
pub use encoder::encode_p_frame_multi_ref_with_refresh_and_lf_deltas_and_intra_pick;
pub use encoder::encode_p_frame_multi_ref_with_refresh_and_lf_deltas_and_intra_pick_and_fitted_token_prob_updates;
pub use encoder::encode_p_frame_multi_ref_with_refresh_and_lf_deltas_and_token_updates;
pub use encoder::encode_p_frame_multi_ref_with_token_updates;
pub use encoder::encode_p_frame_zero_mv;
pub use encoder::encode_silent_keyframe;
pub use encoder::fit_token_prob_updates;
pub use encoder::make_silent_keyframe_encoder;
pub use encoder::patch_first_partition_size;
pub use encoder::quality_to_qindex;
pub use encoder::quality_to_trellis_strength;
pub use encoder::write_frame_tag;
pub use encoder::write_loop_filter;
pub use encoder::write_loop_filter_with_deltas;
pub use encoder::write_mb_no_skip_coeff;
pub use encoder::write_no_token_prob_updates;
pub use encoder::write_quant_indices;
pub use encoder::write_segment_update_flags;
pub use encoder::write_token_partition_count;
pub use encoder::write_token_prob_updates;
pub use encoder::write_update_segmentation;
pub use encoder::Vp8EncoderOptions;
pub use encoder::make_encoder;
pub use encoder::make_encoder_from_param_options;
pub use encoder::make_encoder_with_options;
pub use encoder::make_encoder_with_qindex;
pub use encoder::make_encoder_with_quality;
pub use forward_transform::forward_dct_4x4;
pub use forward_transform::forward_wht_4x4;
pub use forward_transform::raster_to_scan;
pub use frame::FrameError;
pub use frame::KeyframePlanes;
pub use frame::MbCoeffs;
pub use frame::decode_keyframe;
pub use frame_header::FrameHeaderError;
pub use frame_header::KEY_FRAME_START_CODE;
pub use frame_header::LoopFilterPolicy;
pub use frame_header::ReconstructionFilter;
pub use frame_header::ScaleCode;
pub use frame_header::Vp8FrameHeader;
pub use intra_predict::DEFAULT_ABOVE_PIXEL;
pub use intra_predict::DEFAULT_LEFT_PIXEL;
pub use intra_predict::DEFAULT_TOPLEFT_DC;
pub use intra_predict::predict_b4x4;
pub use intra_predict::predict_uv8x8;
pub use intra_predict::predict_uv8x8_dc;
pub use intra_predict::predict_uv8x8_h;
pub use intra_predict::predict_uv8x8_tm;
pub use intra_predict::predict_uv8x8_v;
pub use intra_predict::predict_y16x16;
pub use intra_predict::predict_y16x16_dc;
pub use intra_predict::predict_y16x16_h;
pub use intra_predict::predict_y16x16_tm;
pub use intra_predict::predict_y16x16_v;
pub use inverse_transform::AC_QLOOKUP;
pub use inverse_transform::DC_QLOOKUP;
pub use inverse_transform::QINDEX_RANGE;
pub use inverse_transform::Y1DequantFactors;
pub use inverse_transform::add_residue;
pub use inverse_transform::add_residue_4x4;
pub use inverse_transform::clamp_qindex;
pub use inverse_transform::clamp255;
pub use inverse_transform::dequant_block;
pub use inverse_transform::inverse_dct_4x4;
pub use inverse_transform::inverse_dct_4x4_add_into;
pub use inverse_transform::inverse_wht_4x4;
pub use inverse_transform::inverse_wht_4x4_dc_only;
pub use loop_filter::FrameFilterConfig;
pub use loop_filter::LoopFilterParams;
pub use loop_filter::MAX_MB_SEGMENTS;
pub use loop_filter::MAX_MODE_LF_DELTAS;
pub use loop_filter::MAX_REF_LF_DELTAS;
pub use loop_filter::calculate_mb_filter_level;
pub use loop_filter::clamp_s8;
pub use loop_filter::common_adjust;
pub use loop_filter::filter_frame;
pub use loop_filter::mb_filter;
pub use loop_filter::s2u;
pub use loop_filter::simple_segment;
pub use loop_filter::subblock_filter;
pub use loop_filter::u2s;
pub use macroblock::IF_BMODE_PROB;
pub use macroblock::IF_UV_MODE_PROB_DEFAULTS;
pub use macroblock::IF_YMODE_PROB_DEFAULTS;
pub use macroblock::InterFrameIntraProbs;
pub use macroblock::IntraBmode;
pub use macroblock::IntraUvMode;
pub use macroblock::IntraYMode;
pub use macroblock::MacroblockError;
pub use macroblock::MacroblockModes;
pub use macroblock::parse_inter_frame_intra_macroblock_modes;
pub use macroblock::parse_key_frame_macroblock_modes;
pub use motion_comp::BILINEAR_FILTERS;
pub use motion_comp::FilterSet;
pub use motion_comp::MotionCompError;
pub use motion_comp::RefFrame;
pub use motion_comp::ReferencePlanes;
pub use motion_comp::SIXTAP_FILTERS;
pub use motion_comp::apply_full_pixel;
pub use motion_comp::chroma_idx_for_luma_subblock;
pub use motion_comp::chroma_mv;
pub use motion_comp::fetch_block_halo;
pub use motion_comp::fetch_block_whole_pixel;
pub use motion_comp::filter_block_4x4;
pub use motion_comp::filter_set_for_version;
pub use motion_comp::interp;
pub use motion_comp::predict_inter_mb;
pub use motion_comp::predict_inter_mb_whole_pixel;
pub use motion_comp::predict_split_mv;
pub use motion_comp::reconstruct_inter_mb;
pub use motion_comp::reconstruct_inter_mb_whole_pixel;
pub use motion_comp::reconstruct_split_mv_mb;
pub use motion_comp::select_ref_frame;
pub use motion_comp::sixtap_2d;
pub use motion_comp::split_chroma_mvs;
pub use motion_comp::stored_luma_mv;
pub use motion_comp::whole_pixel_fraction_is_zero;
pub use motion_search::HALF_PIXEL_STEP;
pub use motion_search::LumaRef;
pub use motion_search::MV_MAX;
pub use motion_search::MV_MIN;
pub use motion_search::QUARTER_PIXEL_STEP;
pub use motion_search::SearchResult;
pub use motion_search::WHOLE_PIXEL_STEP;
pub use motion_search::block_sad_16x16;
pub use motion_search::half_pixel_refine_luma;
pub use motion_search::mb_luma_sad_at_mv;
pub use motion_search::mb_luma_sad_at_whole_mv;
pub use motion_search::quarter_pixel_refine_luma;
pub use motion_search::small_diamond_search_luma;
pub use motion_vector::Mv;
pub use motion_vector::MvContext;
pub use motion_vector::MvContexts;
pub use motion_vector::SMALL_MVTREE;
pub use motion_vector::default_mv_contexts;
pub use motion_vector::mv_bits;
pub use motion_vector::mv_component_bits;
pub use motion_vector::read_mv;
pub use motion_vector::read_mv_component;
pub use motion_vector::resolve_mv_contexts;
pub use motion_vector::write_mv;
pub use motion_vector::write_mv_component;
pub use near_mv::InterMbError;
pub use near_mv::InterMode;
pub use near_mv::MV_COUNTS_TO_PROBS;
pub use near_mv::MV_PARTITION_PROBS;
pub use near_mv::MV_PARTITION_TREE;
pub use near_mv::MV_PARTITIONS;
pub use near_mv::MV_REF_TREE;
pub use near_mv::MbInfo;
pub use near_mv::MvClampRect;
pub use near_mv::MvPartition;
pub use near_mv::NearMvs;
pub use near_mv::ResolvedInterMode;
pub use near_mv::SUBMV_REF_PROBS;
pub use near_mv::SUBMV_REF_TREE;
pub use near_mv::SignBias;
pub use near_mv::SplitMvResult;
pub use near_mv::SubMvRefMode;
pub use near_mv::above_block_mv;
pub use near_mv::clamp_mv;
pub use near_mv::decode_inter_mb;
pub use near_mv::decode_split_mv;
pub use near_mv::decode_split_mv_mb;
pub use near_mv::find_near_mvs;
pub use near_mv::left_block_mv;
pub use near_mv::mv_ref_probs;
pub use near_mv::partition_id;
pub use near_mv::read_inter_mode;
pub use near_mv::read_mv_partition;
pub use near_mv::resolve_inter_mb_mv;
pub use near_mv::submv_ref;
pub use near_mv::submv_ref_context;
pub use reconstruct::MbNeighbors;
pub use reconstruct::ReconstructError;
pub use reconstruct::ReconstructedMb;
pub use reconstruct::decode_keyframe_mb_bpred;
pub use reconstruct::decode_keyframe_mb_non_bpred;
pub use state::RefFrameSlot;
pub use state::Vp8DecoderState;
pub use stream::AltrefPacketKind;
pub use stream::AltrefStreamConfig;
pub use stream::AltrefStreamPacket;
pub use stream::EncodedStreamFrame;
pub use stream::FrameKind;
pub use stream::StreamEncodeError;
pub use stream::Vp8AltrefStreamEncoder;
pub use stream::Vp8InterStreamEncoder;
pub use stream::Vp8KeyframeStreamEncoder;
pub use error::Vp8Error;
pub use error::Result;
pub use frame_tag::FrameTag;
pub use frame_tag::FrameType;
pub use frame_tag::KeyframeHeader;
pub use frame_tag::ParsedHeader;
pub use frame_tag::parse_header;
pub use frame_tag::parse_keyframe_header;
pub use encoder::AQ_QINDEX_RANGE_MAX;
pub use encoder::DEFAULT_ADAPTIVE_SEGMENT_THRESHOLDS;
pub use encoder::DEFAULT_ALT_REF_INTERVAL;
pub use encoder::DEFAULT_AQ_QINDEX_RANGE;
pub use encoder::DEFAULT_CHROMA_AWARE_SPATIAL_CHROMA_WEIGHT_X256;
pub use encoder::DEFAULT_CHROMA_AWARE_SPATIAL_LUMA_WEIGHT_X256;
pub use encoder::DEFAULT_GOLDEN_INTERVAL;
pub use encoder::DEFAULT_JOINT_R44R49_PICKER_MAX_ITERS;
pub use encoder::DEFAULT_KMEANS_CONVERGENCE_THRESHOLD;
pub use encoder::DEFAULT_KMEANS_SPATIAL_ALPHA_X256;
pub use encoder::DEFAULT_LAMBDA_LONG_REF_SCALE_X256;
pub use encoder::DEFAULT_LOOKAHEAD_WINDOW;
pub use encoder::DEFAULT_NLM_H2;
pub use encoder::DEFAULT_PSY_RD_STRENGTH;
pub use encoder::DEFAULT_QINDEX;
pub use encoder::DEFAULT_SCENE_CUT_BOOST_FRAMES;
pub use encoder::DEFAULT_SCENE_CUT_QUANT_BOOST;
pub use encoder::DEFAULT_SCENE_CUT_THRESHOLD;
pub use encoder::DEFAULT_SEGMENT_LF_DELTAS;
pub use encoder::DEFAULT_SEGMENT_QUANT_DELTAS;
pub use encoder::DEFAULT_SIMPLE_LF_MAX_LEVEL;
pub use encoder::DEFAULT_SPATIAL_LF_N_COL_BANDS;
pub use encoder::DEFAULT_SPATIAL_LF_N_ROW_BANDS;
pub use encoder::DEFAULT_SPLIT_MV_JOINT_REFINE_PASSES;
pub use encoder::FrameComplexity;
pub use encoder::INTRA_IN_P_BPRED_VARIANCE_THRESHOLD;
pub use encoder::JOINT_R44R49_PICKER_MAX_ITERS_MAX;
pub use encoder::KMEANS_SPATIAL_MAX_ITERS;
pub use encoder::LAMBDA_SCALE_DEFAULT;
pub use encoder::LoopFilterMode;
pub use encoder::QP_SENSITIVITY_X8;
pub use encoder::SCENE_CUT_ABS_FLOOR;
pub use encoder::SEGMENT_VARIANCE_THRESHOLDS;
pub use encoder::SPLIT_MV_JOINT_REFINE_PASSES_MAX;
pub use encoder::Vp8Encoder;
pub use encoder::Vp8EncoderConfig;
pub use encoder::Vp8EncoderStats;
pub use encoder::Vp8TwoPassConfig;
pub use encoder::Vp8TwoPassEncoder;
pub use encoder::first_pass_analyze;
pub use encoder::make_encoder_typed_with_config;
pub use encoder::make_two_pass_encoder;
pub use encoder::two_pass_qindex_for_frame;
pub use encoder::two_pass_qindices;
pub use encoder::make_encoder_with_config;
pub use registry::register_codecs;
pub use registry::register_containers;
pub use decoder::register;

Modules§

arnr
Motion-compensated temporal filtering for altref synthesis.
bool_decoder
VP8 boolean (range) entropy decoder.
bool_encoder
0.1.13 alias surface for the §7.3 bool encoder. The current BoolEncoder lives in crate::encoder; this module re-exposes it (and the classification helper) under the original 0.1.13 path.
coded_header
VP8 boolean-coded frame header (RFC 6386 §19.2).
dct_tokens
VP8 DCT-coefficient token decoding per RFC 6386 §13.
decoder
VP8 per-frame decode driver (decode_vp8) and the oxideav_core::Decoder integration.
dequant
VP8 §14.1 dequantization scaling and the bitstream→dequant wrapper.
encoder
VP8 encoder — Phase 1 (RFC 6386 §9 frame-header writers + the all-zero-quantization “silent keyframe” path).
error
Public error surface for oxideav-vp8.
fdct
0.1.13 alias of crate::forward_transform — the §14 forward 4×4 DCT / WHT primitives.
forward_transform
VP8 §14 forward 4×4 DCT and WHT primitives (encoder side).
frame
Per-frame keyframe raster walker (RFC 6386 §12 / §14.2).
frame_header
VP8 uncompressed frame header (RFC 6386 §9.1 / §19.1).
frame_tag
VP8 frame-tag parsing — the 3-byte tag at the start of every VP8 frame, plus the 7-byte keyframe extension (start code + width / height + scale fields).
inter
0.1.13 grouped alias of the inter-prediction modules (crate::motion_comp + crate::motion_search + crate::motion_vector + crate::near_mv).
intra
0.1.13 alias of crate::intra_predict — the §12 intra-prediction pixel kernels.
intra_predict
VP8 intra-prediction pixel kernels (RFC 6386 §12).
inverse_transform
VP8 dequantization and inverse transforms per RFC 6386 §14.
ivf
IVF — the de-facto-standard single-codec elementary-stream container commonly used to ship VP8 test fixtures.
loop_filter
VP8 loop filter per RFC 6386 §15.
loopfilter
0.1.13 alias of crate::loop_filter — the §15 loop-filter primitives.
macroblock
VP8 macroblock mode decoding for key frames (RFC 6386 §11) and the intra-predicted branch of interframes (RFC 6386 §16.1).
motion_comp
Interframe motion compensation — RFC 6386 §16.2 reference selection, §18.1 motion-vector adjustment, §18.2 whole-pixel prediction, and §18.3 sub-pixel (sixtap / bilinear) interpolation.
motion_search
Encoder-side integer-pixel motion-search primitives.
motion_vector
VP8 motion-vector component decoding — RFC 6386 §17.
mv
0.1.13 alias of crate::motion_vector — the §17 motion-vector primitives.
near_mv
VP8 inter-mode and near/nearest motion-vector census — RFC 6386 §16.2 / §16.3 / §18.1.
reconstruct
Per-macroblock reconstruction orchestration (RFC 6386 §14.2).
registry
Registry plumbing — restores the 0.1.13 oxideav_vp8::registry::* module path so historical consumers keep building.
state
Multi-frame VP8 decoder state (Vp8DecoderState) and the top-level interframe driver — RFC 6386 §9 / §16.
stream
Multi-frame VP8 keyframe encoder driver (Vp8KeyframeStreamEncoder).
tables
0.1.13 grouping module for the in-tree default-probability / scan / dequant tables. Today these tables live next to the layer that consumes them; this module re-exports them under the original tables path.
tokens
0.1.13 alias of crate::dct_tokens — the §13 DCT-token decoding / classification.
transform
0.1.13 alias of crate::inverse_transform — the §14 inverse 4×4 DCT / WHT primitives and §14.5 predictor+residue summation.

Enums§

Error
Crate-local error type for the not-yet-implemented surfaces.

Constants§

CODEC_ID_STR
Crate-root codec id string. Matches the registry id installed by the oxideav_core::register! hook below and the oxideav-vp8 0.1.13 constant of the same name.

Functions§

decode_frame
Legacy alias of decode_vp8 yielding the framework’s oxideav_core::VideoFrame instead of Vp8Frame. Gated on the registry feature; standalone callers should use decode_vp8.
encode_vp8_keyframe
Encode a VP8 keyframe.

Type Aliases§

FrameHeader
0.1.13 alias of frame_header::Vp8FrameHeader under the historical name FrameHeader. The struct is unchanged.
Vp8Frame
0.1.13 alias for decoder::Vp8DecodedFrame — the per-frame reconstructed I420 picture is now named Vp8Frame at the crate root to match the historical oxideav_vp8::Vp8Frame path that downstream consumers wrote against. The underlying struct is unchanged.