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, thetoken_prob_update()sweep, entropy-probability refresh, the inter-frame reference refresh / copy / sign-bias ladder, the per-MB skip flag, the §9.10 tail ofprob_intra/prob_last/prob_gf, the gated Y and UV intra-mode probability replacements, and themv_prob_update()sub-block of §17.2 (two 19-position MV_CONTEXTs, eachF? 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 whenB_PREDis selected (bmode_treedriven by the §11.3 context predictors and the §11.5kf_bmode_prob[10][10][9]table), and the UV mode (uv_mode_tree). Seemacroblock. -
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_treewalker, theDCTextraextra-bits decode, the §13.5 default token-probability table, and a per-sub-blockdecode_blockprimitive that recovers a[i16; 16]of quantised coefficients. The §13.3 per-macroblock token walk (decode_mb_coeffs) sits on top ofdecode_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.16left_context_index/above_context_indexslot tables (a nine-entryMbEntropyCtx: 4 Y, 2 U, 2 V, 1 Y2), honours the §13.1mb_skip_coeffshort-circuit with the §20.16reset_mb_contextY2-preserving rule, selects theYAfterY2/YNoY2plane per the macroblock’shas_y2, and reorders each block into raster order via the §20.16zigzag[16]table — producing anframe::MbCoeffsdirectly from the bitstream. The coefficients are the raw quantized token values; the §14.1 Y2 / chroma dequant scaling is applied by thedequantlayer. Seedct_tokens. -
VP8 §14.1 dequantization scaling and the bitstream→dequant wrapper —
dequant::MbDequantFactorscomputes the six §14.1 dequant factors (Y1 DC/AC, Y2 DC/AC, chroma DC/AC) from the §9.6 quantiser indices, applying the §20.4dixie.cdequant_initscaling / clamping rules (Y2 DC × 2, Y2 AC × 155/100 floored at 8, chroma DC capped at 132) over the §14.1dc_qlookup/ac_qlookuptables with the §20.4clamp_qindex saturation.dequant::MbDequantFactors::for_segmentlayers the §10 per-segment quantizer override (delta or absolute) on the frame baseline.dequant::MbDequantFactors::dequantizescales a rawframe::MbCoeffsin place, anddequant::decode_and_dequantize_mbis the wrapper that runsdct_tokens::decode_mb_coeffsthen dequantizes — turning the bitstream straight into the pre-dequantizedframe::MbCoeffsthatframe::decode_keyframeconsumes, completing the keyframe decode chain bitstream → dequant → reconstruct → pixels. Seedequant. -
VP8 dequantization and inverse transforms (RFC 6386 §14) — the §14.1
dc_qlookup/ac_qlookuptables 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 withclamp255. 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. Seeinverse_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. Seeloop_filter. -
VP8 §15.1 loop-filter frame geometry —
filter_frame, the per-frame post-pass that walks the reconstructedKeyframePlanesin 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 neitherB_PREDnorSPLITMVand 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.6dixie.ccalculate_filter_parametersbody: baseloop_filter_level+ §10 per-segment override (delta or absolute, clamped0..=63) + §9.4 reference / mode deltas (clamped again).FrameFilterConfigcarries the resolved frame state, withFrameFilterConfig::keyframebuilding it from aVp8CodedHeader. Seeloop_filter. -
VP8 interframe intra-predicted macroblock mode decoding (RFC 6386 §16.1) — the dynamic
ymode_prob/uv_mode_probresolution (InterFrameIntraProbs::for_frame_header) including the §16.1 last-paragraph reset on key frames and the §9.10 per-frame overlay, plus theymode_tree/ context-freebmode_prob/uv_mode_treewalks (parse_inter_frame_intra_macroblock_modes). Returns aMacroblockModesfor one intra-predicted MB on an interframe; the caller forwards thesegment_idandmb_skip_coeffalready read before the intra-vs-inter discriminator. Seemacroblock. -
VP8 §14.2 per-macroblock reconstruction orchestration —
decode_keyframe_mb_non_bpredties 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_PREDmodes. Honours the §11.1mb_skip_coeffshort-circuit.decode_keyframe_mb_bpredis the companion §11.3 / §12.3B_PREDorchestrator: 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’sabove/left), applies the §12.3 right-edge above-right fixup for sub-blocks 7 / 11 / 15, omits the Y2 WHT seeding (aB_PREDMB has no Y2 block), and reconstructs the chroma planes with the same 8×8 §12.2 path. Seereconstruct. -
VP8 per-frame keyframe raster walker (RFC 6386 §12 / §14.2) —
decode_keyframeiterates a key frame’s macroblocks in raster-scan order, assembling each MB’sreconstruct::MbNeighborsstrips 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 — forB_PRED— the four §12.3 above-and-to-the-right pixels with the rightmost-MB(-1,15)clamp), selecting the non-B_PREDvsB_PREDorchestrator per the MB’s decoded luma mode, and writing reconstructed pixels into theframe::KeyframePlanesI420 buffers. Off-frame edges are reported asNoneso the §12.2DC_PREDaveraging distinguishes genuine pixels from 127 / 129 fills. Consumesframe::MbCoeffs(pre-dequantized) produced by thedequantlayer. Seeframe. -
VP8 motion-vector component decoding (RFC 6386 §17) —
read_mv_component(§17.1read_mvcomponent: the short-vs-long range selector, theSMALL_MVTREEtree-coded0..=7short form, the independent-bit long form with the implicit bit-3 rule, and the conditional sign) andread_mv(§17.2read_mv: row then column).resolve_mv_contextsapplies the round-4 §17.2mv_prob_update()overlays onto a baseMvContexts(defaulting viadefault_mv_contextson key frames, carried-forward across interframes), turning the parsed updates into the live decoding tables. Returns the raw differentialMv; the §16.3 reference-base addition, the §18.1 range clamp / stored-luma doubling, and the §16mv_ref/ SPLITMV machinery are deferred to later inter-prediction rounds. Seemotion_vector. -
VP8 interframe motion compensation (RFC 6386 §16.2 / §18) — the inter-prediction slice that consumes a decoded motion vector.
select_ref_framereads the §16.2prob_last/prob_gfreference selector into aRefFrame;stored_luma_mvapplies the §18.1 stored-luma doubling,chroma_mvthe §18.1avg()chroma averaging (cross-checked against the §20.14 closed form), andapply_full_pixelthe version-3 full-pel-chroma truncation.fetch_block_whole_pixelis the §20.14build_mc_borderedge-replicated 4×4 reference fetch specialised to whole-pixel offsets;fetch_block_halois the 9×9 support-halo fetch the six-tap convolution needs. The §18.3 sub-pixel interpolation lands here:SIXTAP_FILTERS/BILINEAR_FILTERSare the §18.3 tap tables (filter_set_for_version/FilterSetpick the set by frame-tag version),interp/sixtap_2dare the §20.14 one-dimensional convolutions, andfilter_block_4x4is the §20.14filter_blockper-sub-block dispatcher (whole-pixel copy or horizontal-then-vertical six-tap synthesis).predict_inter_mbassembles the §18.2 whole-MB prediction buffer for a non-SPLITMV macroblock (ReferencePlanesborrows the reference frame’s I420 planes), andreconstruct_inter_mbfolds in the §14 dequantized residual (Y2 WHT seeding + per-sub-block inverse DCT + §14.5 summation) to complete inter-MB reconstruction. The whole-pixel-onlypredict_inter_mb_whole_pixel/reconstruct_inter_mb_whole_pixelentry points are retained and refuse a sub-pixel vector withMotionCompError::SubPixelNotSupported. Seemotion_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_mvsis the §16.3vp8_find_near_mvsspatial census over the above / left / above-leftMbInfoneighbours (MbInfo::borderfor the §16.3 1-MB off-frame border), producing thebest/nearest/nearcandidates and the weightedcntcensus (with the §16.3 dedupe, SPLITMV-merge, near↔nearest swap, and best:=nearest store).SignBiascarries the §9.7 sign-bias bits and drives the §16.3mv_biasnegation;mv_ref_probsderives the §16.2 tree probabilities from the census viaMV_COUNTS_TO_PROBS; andread_inter_modewalksMV_REF_TREEinto anInterMode.clamp_mv/MvClampRectare the §16.3 / §18.1 one-MB-border clamp.resolve_inter_mb_mvties 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), anddecode_inter_mbdrivesreconstruct_inter_mbwith 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::SplitNotSupportedcarry the clamped best base). Seenear_mv. -
VP8 top-level per-frame decode driver (
decode_vp8) and theoxideav_core::Decoderintegration (decoder::Vp8Decoder, gated on the default-onregistryfeature).decode_vp8takes 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 viadecode_keyframe, applies the §15.1 loop-filter post-pass, and emits a visible-cropped I420decoder::Vp8DecodedFrame. Interframes (§16) are surfaced as a cleandecoder::DecodeError::Unsupported. Seedecoder. -
VP8 multi-frame stateful decoder driver (
state::Vp8DecoderState,state::Vp8DecoderState::decode_frame) owning the RFC 6386 §9 three-slot reference-frame buffer (state::RefFrameSlotforLAST/GOLDEN/ALTREF), the §9.10 entropy / intra-mode / MV carry-state (with the §20saved_entropyrollback whenrefresh_entropy_probsis false), and the §9copy_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 viaparse_inter_frame_intra_macroblock_modes, whole-MB inter viaselect_ref_frame→ §16.3 census → §16.2 inter-mode tree →reconstruct_inter_mb, SPLITMV viadecode_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.3encoder::BoolEncoder(a Rust port of thebool_encoderC 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-levelencoder::encode_silent_keyframedriver. Every emitted MB is coded asmb_skip_coeff = 1withDC_PREDluma + 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 owndecode_vp8consumes and thatffmpeg -c:v vp8accepts 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, andraster_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 sameCOSPI8_SQRT2_MINUS1 = 20091/SINPI8_SQRT2 = 35468fixed-point constants so the forward / inverse rounding shapes match. Wired through the existingencoder::TokenEncoderfor 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 atyac_qi = 32(lossless atyac_qi = 0); seetests/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
BoolEncoderlives incrate::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 theoxideav_core::Decoderintegration. - 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
tablespath. - 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 theoxideav-vp8 0.1.13constant of the same name.
Functions§
- decode_
frame - Legacy alias of
decode_vp8yielding the framework’soxideav_core::VideoFrameinstead ofVp8Frame. Gated on theregistryfeature; standalone callers should usedecode_vp8. - encode_
vp8_ keyframe - Encode a VP8 keyframe.
Type Aliases§
- Frame
Header - 0.1.13 alias of
frame_header::Vp8FrameHeaderunder the historical nameFrameHeader. The struct is unchanged. - Vp8Frame
- 0.1.13 alias for
decoder::Vp8DecodedFrame— the per-frame reconstructed I420 picture is now namedVp8Frameat the crate root to match the historicaloxideav_vp8::Vp8Framepath that downstream consumers wrote against. The underlying struct is unchanged.