wedeo 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wedeo-0.3.1/.config/nextest.toml +57 -0
- wedeo-0.3.1/.github/ISSUE_TEMPLATE/bug.yml +31 -0
- wedeo-0.3.1/.github/ISSUE_TEMPLATE/codec.yml +27 -0
- wedeo-0.3.1/.github/PULL_REQUEST_TEMPLATE.md +23 -0
- wedeo-0.3.1/.github/SECURITY.md +20 -0
- wedeo-0.3.1/.github/dependabot.yml +18 -0
- wedeo-0.3.1/.github/workflows/ci.yml +225 -0
- wedeo-0.3.1/.github/workflows/pypi.yml +36 -0
- wedeo-0.3.1/.gitignore +133 -0
- wedeo-0.3.1/.gitmodules +3 -0
- wedeo-0.3.1/.pre-commit-config.yaml +15 -0
- wedeo-0.3.1/CLAUDE.md +39 -0
- wedeo-0.3.1/CONTRIBUTING.md +121 -0
- wedeo-0.3.1/COPYING.LGPLv2.1 +502 -0
- wedeo-0.3.1/Cargo.lock +3026 -0
- wedeo-0.3.1/Cargo.toml +70 -0
- wedeo-0.3.1/DIVERGENCES.md +333 -0
- wedeo-0.3.1/LICENSE +513 -0
- wedeo-0.3.1/PKG-INFO +10 -0
- wedeo-0.3.1/README.md +49 -0
- wedeo-0.3.1/adapters/wedeo-rav1d/Cargo.toml +17 -0
- wedeo-0.3.1/adapters/wedeo-rav1d/src/ffi_guard.rs +806 -0
- wedeo-0.3.1/adapters/wedeo-rav1d/src/lib.rs +700 -0
- wedeo-0.3.1/adapters/wedeo-rav1e/Cargo.toml +15 -0
- wedeo-0.3.1/adapters/wedeo-rav1e/src/lib.rs +562 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/Cargo.toml +20 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/channel_layout.rs +134 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/codec_map.rs +161 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/decoder.rs +489 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/demuxer.rs +596 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/error.rs +34 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/io_bridge.rs +63 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/lib.rs +41 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/metadata.rs +50 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/opus.rs +282 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/src/sample_format.rs +154 -0
- wedeo-0.3.1/adapters/wedeo-symphonia/tests/integration.rs +511 -0
- wedeo-0.3.1/bins/wedeo-cli/Cargo.toml +22 -0
- wedeo-0.3.1/bins/wedeo-cli/src/ffmpeg_compat.rs +963 -0
- wedeo-0.3.1/bins/wedeo-cli/src/json.rs +620 -0
- wedeo-0.3.1/bins/wedeo-cli/src/main.rs +1023 -0
- wedeo-0.3.1/bins/wedeo-cli/src/mcp.rs +352 -0
- wedeo-0.3.1/bins/wedeo-cli/src/ops.rs +3677 -0
- wedeo-0.3.1/bins/wedeo-cli/tests/cli_integration.rs +423 -0
- wedeo-0.3.1/bins/wedeo-wasm/Cargo.lock +494 -0
- wedeo-0.3.1/bins/wedeo-wasm/Cargo.toml +37 -0
- wedeo-0.3.1/bins/wedeo-wasm/src/lib.rs +1124 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/Cargo.toml +22 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/benches/h264_bench.rs +753 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/bitstream.rs +236 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/cabac.rs +2752 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/cabac_tables.rs +795 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/cavlc.rs +1739 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/cavlc_tables.rs +937 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/deblock.rs +2775 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/decoder.rs +2732 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/dequant.rs +430 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/dpb.rs +525 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/idct.rs +510 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/intra_pred.rs +1354 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/lib.rs +51 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/mb.rs +3933 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/mc.rs +1288 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/mvpred.rs +1014 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/nal.rs +591 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/pps.rs +654 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/refs.rs +984 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/sei.rs +98 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/shared_picture.rs +233 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/simd.rs +3510 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/slice.rs +969 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/sps.rs +1074 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/tables.rs +440 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/src/thread_pool.rs +346 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/tests/checkasm_h264.rs +669 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/tests/oracle_h264.rs +512 -0
- wedeo-0.3.1/codecs/wedeo-codec-h264/tests/oracle_h264_profiles.rs +251 -0
- wedeo-0.3.1/codecs/wedeo-codec-pcm/Cargo.toml +14 -0
- wedeo-0.3.1/codecs/wedeo-codec-pcm/src/lib.rs +1297 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/Cargo.toml +19 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/block.rs +2328 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/bool_decoder.rs +231 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/context.rs +222 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/data.rs +2176 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/decoder.rs +773 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/dsp.rs +9 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/header.rs +1367 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/idct.rs +867 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/intra_pred.rs +495 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/lib.rs +32 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/loopfilter.rs +1060 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/mc.rs +804 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/mvs.rs +569 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/prob.rs +658 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/quant.rs +69 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/recon.rs +799 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/refs.rs +136 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/simd.rs +1004 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/src/types.rs +439 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/tests/checkasm_vp9.rs +266 -0
- wedeo-0.3.1/codecs/wedeo-codec-vp9/tests/oracle_ivf.rs +442 -0
- wedeo-0.3.1/crates/wedeo/Cargo.toml +48 -0
- wedeo-0.3.1/crates/wedeo/README.md +22 -0
- wedeo-0.3.1/crates/wedeo/src/audio.rs +100 -0
- wedeo-0.3.1/crates/wedeo/src/lib.rs +240 -0
- wedeo-0.3.1/crates/wedeo/src/reader.rs +220 -0
- wedeo-0.3.1/crates/wedeo/src/video.rs +100 -0
- wedeo-0.3.1/crates/wedeo/tests/facade.rs +308 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/Cargo.toml +14 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/src/chain.rs +1416 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/src/dither.rs +722 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/src/lib.rs +761 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/src/ops.rs +563 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/src/optimizer.rs +132 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/src/rematrix.rs +722 -0
- wedeo-0.3.1/crates/wedeo-audio-ops/src/resample.rs +1188 -0
- wedeo-0.3.1/crates/wedeo-core/Cargo.toml +16 -0
- wedeo-0.3.1/crates/wedeo-core/src/audio.rs +543 -0
- wedeo-0.3.1/crates/wedeo-core/src/bitstream.rs +549 -0
- wedeo-0.3.1/crates/wedeo-core/src/buffer.rs +955 -0
- wedeo-0.3.1/crates/wedeo-core/src/clock.rs +149 -0
- wedeo-0.3.1/crates/wedeo-core/src/error.rs +307 -0
- wedeo-0.3.1/crates/wedeo-core/src/io.rs +481 -0
- wedeo-0.3.1/crates/wedeo-core/src/lib.rs +68 -0
- wedeo-0.3.1/crates/wedeo-core/src/media.rs +704 -0
- wedeo-0.3.1/crates/wedeo-core/src/registry.rs +261 -0
- wedeo-0.3.1/crates/wedeo-core/src/sync_plane.rs +638 -0
- wedeo-0.3.1/crates/wedeo-core/src/time.rs +663 -0
- wedeo-0.3.1/crates/wedeo-core/src/traits.rs +191 -0
- wedeo-0.3.1/crates/wedeo-core/src/video.rs +917 -0
- wedeo-0.3.1/crates/wedeo-gpu-wgpu/Cargo.toml +17 -0
- wedeo-0.3.1/crates/wedeo-gpu-wgpu/src/backend.rs +524 -0
- wedeo-0.3.1/crates/wedeo-gpu-wgpu/src/context.rs +801 -0
- wedeo-0.3.1/crates/wedeo-gpu-wgpu/src/lib.rs +655 -0
- wedeo-0.3.1/crates/wedeo-gpu-wgpu/src/wgsl_gen.rs +1999 -0
- wedeo-0.3.1/crates/wedeo-graph/Cargo.toml +17 -0
- wedeo-0.3.1/crates/wedeo-graph/src/contract.rs +684 -0
- wedeo-0.3.1/crates/wedeo-graph/src/dag.rs +2310 -0
- wedeo-0.3.1/crates/wedeo-graph/src/filter.rs +1744 -0
- wedeo-0.3.1/crates/wedeo-graph/src/lib.rs +789 -0
- wedeo-0.3.1/crates/wedeo-graph/src/timeline.rs +519 -0
- wedeo-0.3.1/crates/wedeo-syntax/Cargo.toml +22 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/aac.rs +797 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/av1.rs +1122 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/h264.rs +2419 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/hevc.rs +720 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/lib.rs +303 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/raw.rs +498 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/startcode.rs +205 -0
- wedeo-0.3.1/crates/wedeo-syntax/src/vp9.rs +903 -0
- wedeo-0.3.1/crates/wedeo-video-ops/Cargo.toml +14 -0
- wedeo-0.3.1/crates/wedeo-video-ops/src/color.rs +892 -0
- wedeo-0.3.1/crates/wedeo-video-ops/src/cpu.rs +2006 -0
- wedeo-0.3.1/crates/wedeo-video-ops/src/lib.rs +697 -0
- wedeo-0.3.1/crates/wedeo-video-ops/src/ops.rs +574 -0
- wedeo-0.3.1/crates/wedeo-video-ops/src/optimizer.rs +318 -0
- wedeo-0.3.1/deny.toml +46 -0
- wedeo-0.3.1/docs/ARCHITECTURE.md +462 -0
- wedeo-0.3.1/docs/history/H264.md +231 -0
- wedeo-0.3.1/docs/history/PROGRESS.md +32 -0
- wedeo-0.3.1/docs/history/TODO.md +86 -0
- wedeo-0.3.1/formats/wedeo-format-ivf/Cargo.toml +14 -0
- wedeo-0.3.1/formats/wedeo-format-ivf/src/lib.rs +1157 -0
- wedeo-0.3.1/formats/wedeo-format-mkv/Cargo.toml +15 -0
- wedeo-0.3.1/formats/wedeo-format-mkv/src/demuxer.rs +1702 -0
- wedeo-0.3.1/formats/wedeo-format-mkv/src/ebml.rs +1058 -0
- wedeo-0.3.1/formats/wedeo-format-mkv/src/lib.rs +538 -0
- wedeo-0.3.1/formats/wedeo-format-mkv/src/muxer.rs +975 -0
- wedeo-0.3.1/formats/wedeo-format-mp4/Cargo.toml +14 -0
- wedeo-0.3.1/formats/wedeo-format-mp4/src/atoms.rs +903 -0
- wedeo-0.3.1/formats/wedeo-format-mp4/src/boxes.rs +1512 -0
- wedeo-0.3.1/formats/wedeo-format-mp4/src/demuxer.rs +1428 -0
- wedeo-0.3.1/formats/wedeo-format-mp4/src/lib.rs +18 -0
- wedeo-0.3.1/formats/wedeo-format-mp4/src/muxer.rs +548 -0
- wedeo-0.3.1/formats/wedeo-format-mp4/tests/mp4_roundtrip.rs +579 -0
- wedeo-0.3.1/formats/wedeo-format-wav/Cargo.toml +14 -0
- wedeo-0.3.1/formats/wedeo-format-wav/src/lib.rs +1377 -0
- wedeo-0.3.1/llms.txt +14 -0
- wedeo-0.3.1/pyproject.toml +22 -0
- wedeo-0.3.1/rust-toolchain.toml +3 -0
- wedeo-0.3.1/rustfmt.toml +3 -0
- wedeo-0.3.1/scripts/bench_baseline.py +214 -0
- wedeo-0.3.1/scripts/bench_h264_avg_ffmpeg.rs +89 -0
- wedeo-0.3.1/scripts/check_dirty_tree.sh +27 -0
- wedeo-0.3.1/scripts/conformance_full.py +225 -0
- wedeo-0.3.1/scripts/fate_cross_validate.py +164 -0
- wedeo-0.3.1/scripts/fearless_avg/Cargo.lock +63 -0
- wedeo-0.3.1/scripts/fearless_avg/Cargo.toml +12 -0
- wedeo-0.3.1/scripts/fearless_avg/VALIDATION.md +123 -0
- wedeo-0.3.1/scripts/fearless_avg/src/main.rs +208 -0
- wedeo-0.3.1/scripts/fearless_avg/timings-2026-11-24.txt +84 -0
- wedeo-0.3.1/scripts/fetch-fate-suite.sh +9 -0
- wedeo-0.3.1/scripts/fetch_jvt.py +186 -0
- wedeo-0.3.1/scripts/framecrc_compare.py +195 -0
- wedeo-0.3.1/scripts/h264_precommit.py +143 -0
- wedeo-0.3.1/scripts/publish.sh +59 -0
- wedeo-0.3.1/scripts/regression_check.py +98 -0
- wedeo-0.3.1/scripts/suite_runner.py +403 -0
- wedeo-0.3.1/scripts/wedeo_utils.py +292 -0
- wedeo-0.3.1/test_suites/baselines/.suite_fate-cabac_snapshot.json +34 -0
- wedeo-0.3.1/test_suites/baselines/.suite_fate-cavlc_snapshot.json +56 -0
- wedeo-0.3.1/test_suites/baselines/.suite_jvt-avc_v1_snapshot.json +85 -0
- wedeo-0.3.1/test_suites/baselines/.suite_jvt-fr-ext_snapshot.json +31 -0
- wedeo-0.3.1/test_suites/h264/JVT-AVC_V1.json +1222 -0
- wedeo-0.3.1/test_suites/h264/JVT-FR-EXT.json +628 -0
- wedeo-0.3.1/tests/e2e/lib/__init__.py +43 -0
- wedeo-0.3.1/tests/e2e/lib/fixtures.py +327 -0
- wedeo-0.3.1/tests/e2e/lib/harness.py +309 -0
- wedeo-0.3.1/tests/e2e/lib/net_servers.py +2025 -0
- wedeo-0.3.1/tests/e2e/lib/oracle.py +473 -0
- wedeo-0.3.1/tests/e2e/lib/wasm_runner.mjs +1282 -0
- wedeo-0.3.1/tests/e2e/run.py +460 -0
- wedeo-0.3.1/tests/e2e/test_f01_cli_core.py +460 -0
- wedeo-0.3.1/tests/e2e/test_f02_transcode_cut_mux.py +669 -0
- wedeo-0.3.1/tests/e2e/test_f03_shims.py +464 -0
- wedeo-0.3.1/tests/e2e/test_f11_wasm_streaming_size.py +319 -0
- wedeo-0.3.1/tests/e2e/test_f12_wasm_sdk_webcodecs.py +361 -0
- wedeo-0.3.1/tests/e2e/test_f13_codemode_mcp.py +703 -0
- wedeo-0.3.1/tests/e2e/test_f14_release_packaging.py +491 -0
- wedeo-0.3.1/tests/e2e/test_tier3_em1.py +319 -0
- wedeo-0.3.1/tests/e2e/test_tier3_em4.py +295 -0
- wedeo-0.3.1/tests/e2e/test_tier4_em1.py +289 -0
- wedeo-0.3.1/tests/e2e/test_tier4_em4.py +393 -0
- wedeo-0.3.1/tests/wedeo-oracle/Cargo.toml +28 -0
- wedeo-0.3.1/tests/wedeo-oracle/data/vp9_blue_100x75.ivf +0 -0
- wedeo-0.3.1/tests/wedeo-oracle/data/vp9_keyframe_64x64.ivf +0 -0
- wedeo-0.3.1/tests/wedeo-oracle/data/vp9_red_64x64.ivf +0 -0
- wedeo-0.3.1/tests/wedeo-oracle/data/vp9_testsrc_128x128.ivf +0 -0
- wedeo-0.3.1/tests/wedeo-oracle/data/vp9_testsrc_320x240.ivf +0 -0
- wedeo-0.3.1/tests/wedeo-oracle/src/audiogen.rs +213 -0
- wedeo-0.3.1/tests/wedeo-oracle/src/framecrc.rs +615 -0
- wedeo-0.3.1/tests/wedeo-oracle/src/lib.rs +844 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/fate_av1.rs +238 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/fate_av1_encode.rs +219 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/fate_h264.rs +318 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/fate_pcm_wav.rs +407 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/fate_suite.rs +431 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/fate_symphonia.rs +471 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/fate_vp9.rs +176 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/gpu_readback.rs +53 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/oracle_arch_lint.rs +697 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/oracle_dod_alloc.rs +206 -0
- wedeo-0.3.1/tests/wedeo-oracle/tests/oracle_registry_full.rs +399 -0
- wedeo-0.3.1/tools/extract_tables.py +147 -0
- wedeo-0.3.1/typos.toml +25 -0
- wedeo-0.3.1/web/app.js +480 -0
- wedeo-0.3.1/web/build.sh +11 -0
- wedeo-0.3.1/web/index.html +136 -0
- wedeo-0.3.1/web/samples/chord_48k.wav +0 -0
- wedeo-0.3.1/web/samples/h264_aac_320x240.mp4 +0 -0
- wedeo-0.3.1/web/samples/vp9_smpte_320x240.mkv +0 -0
- wedeo-0.3.1/web/studio.png +0 -0
- wedeo-0.3.1/web/styles.css +327 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# cargo-nextest configuration for wedeo
|
|
2
|
+
# https://nexte.st/docs/configuration/
|
|
3
|
+
|
|
4
|
+
[store]
|
|
5
|
+
dir = "target/nextest"
|
|
6
|
+
|
|
7
|
+
# --- Default profile (local dev) ---
|
|
8
|
+
[profile.default]
|
|
9
|
+
test-threads = "num-cpus"
|
|
10
|
+
slow-timeout = { period = "10s", terminate-after = 6 }
|
|
11
|
+
leak-timeout = "500ms"
|
|
12
|
+
retries = 0
|
|
13
|
+
fail-fast = true
|
|
14
|
+
failure-output = "immediate"
|
|
15
|
+
success-output = "never"
|
|
16
|
+
|
|
17
|
+
# --- CI profile ---
|
|
18
|
+
[profile.ci]
|
|
19
|
+
fail-fast = false
|
|
20
|
+
failure-output = "immediate-final"
|
|
21
|
+
success-output = "final"
|
|
22
|
+
retries = 0
|
|
23
|
+
|
|
24
|
+
[profile.ci.junit]
|
|
25
|
+
path = "junit.xml"
|
|
26
|
+
|
|
27
|
+
# --- FATE profile (focused FATE debugging) ---
|
|
28
|
+
[profile.fate]
|
|
29
|
+
test-threads = 4
|
|
30
|
+
fail-fast = false
|
|
31
|
+
status-level = "all"
|
|
32
|
+
final-status-level = "all"
|
|
33
|
+
slow-timeout = { period = "30s", terminate-after = 4 }
|
|
34
|
+
|
|
35
|
+
[profile.fate.junit]
|
|
36
|
+
path = "junit.xml"
|
|
37
|
+
|
|
38
|
+
# --- Per-test overrides ---
|
|
39
|
+
|
|
40
|
+
# FATE integration tests get more time (they do file I/O and spawn subprocesses)
|
|
41
|
+
[[profile.default.overrides]]
|
|
42
|
+
filter = "package(wedeo-fate) & kind(test)"
|
|
43
|
+
slow-timeout = { period = "30s", terminate-after = 4 }
|
|
44
|
+
leak-timeout = "2s"
|
|
45
|
+
test-group = "fate-integration"
|
|
46
|
+
|
|
47
|
+
[[profile.ci.overrides]]
|
|
48
|
+
filter = "package(wedeo-fate) & kind(test)"
|
|
49
|
+
slow-timeout = { period = "30s", terminate-after = 4 }
|
|
50
|
+
leak-timeout = "2s"
|
|
51
|
+
test-group = "fate-integration"
|
|
52
|
+
|
|
53
|
+
# --- Test groups ---
|
|
54
|
+
# FATE tests write to shared /tmp/wedeo-fate/ directories — limit concurrency
|
|
55
|
+
# to avoid filename collisions on files like asynth-44100-2.wav
|
|
56
|
+
[test-groups.fate-integration]
|
|
57
|
+
max-threads = 4
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Decode output differs from FFmpeg, crash, or incorrect behavior
|
|
3
|
+
labels: [bug]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: What happened
|
|
9
|
+
placeholder: Describe the issue.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: reproduce
|
|
14
|
+
attributes:
|
|
15
|
+
label: Reproduction
|
|
16
|
+
description: Input file and commands to reproduce.
|
|
17
|
+
placeholder: |
|
|
18
|
+
cargo run --release --bin wedeo-framecrc -- input.264
|
|
19
|
+
ffmpeg -bitexact -i input.264 -f framecrc -
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: expected
|
|
24
|
+
attributes:
|
|
25
|
+
label: Expected behavior
|
|
26
|
+
placeholder: What should happen (e.g., framecrc output should match FFmpeg).
|
|
27
|
+
- type: input
|
|
28
|
+
id: version
|
|
29
|
+
attributes:
|
|
30
|
+
label: wedeo version
|
|
31
|
+
placeholder: "git rev: abc1234 or cargo version"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: New codec or format
|
|
2
|
+
description: Propose implementing a new codec or container format
|
|
3
|
+
labels: [enhancement, codec]
|
|
4
|
+
body:
|
|
5
|
+
- type: input
|
|
6
|
+
id: codec
|
|
7
|
+
attributes:
|
|
8
|
+
label: Codec or format name
|
|
9
|
+
placeholder: "e.g., HEVC, VP9, Matroska"
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: context
|
|
14
|
+
attributes:
|
|
15
|
+
label: Context
|
|
16
|
+
description: Why this codec, what FATE tests cover it, any relevant FFmpeg source files.
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
- type: dropdown
|
|
20
|
+
id: contributor
|
|
21
|
+
attributes:
|
|
22
|
+
label: Are you planning to implement this?
|
|
23
|
+
options:
|
|
24
|
+
- "Yes, I'll submit a PR"
|
|
25
|
+
- "No, this is a request"
|
|
26
|
+
validations:
|
|
27
|
+
required: true
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## What
|
|
2
|
+
|
|
3
|
+
<!-- One sentence. -->
|
|
4
|
+
|
|
5
|
+
## Why
|
|
6
|
+
|
|
7
|
+
<!-- Problem solved or capability added. -->
|
|
8
|
+
|
|
9
|
+
## Verification
|
|
10
|
+
|
|
11
|
+
<!-- Test output, FATE/JVT comparison, or benchmark. Paste actual output. -->
|
|
12
|
+
|
|
13
|
+
## FFmpeg reference
|
|
14
|
+
|
|
15
|
+
<!-- For codec/format work: which C source files were read. -->
|
|
16
|
+
<!-- For non-codec work: delete this section. -->
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
- [ ] `cargo clippy` passes
|
|
21
|
+
- [ ] `cargo fmt --check` passes
|
|
22
|
+
- [ ] `cargo nextest run` passes (or `cargo test`)
|
|
23
|
+
- [ ] New divergences documented in DIVERGENCES.md (if applicable)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Reporting a Vulnerability
|
|
4
|
+
|
|
5
|
+
If you discover a security vulnerability in wedeo, please report it by
|
|
6
|
+
[opening a private security advisory](https://github.com/sharifhsn/wedeo/security/advisories/new).
|
|
7
|
+
|
|
8
|
+
Do not open a public issue for security vulnerabilities.
|
|
9
|
+
|
|
10
|
+
## Scope
|
|
11
|
+
|
|
12
|
+
wedeo is a media decoder. Security-relevant issues include:
|
|
13
|
+
- Buffer overflows or out-of-bounds reads from malformed input
|
|
14
|
+
- Panics or crashes from fuzzed/malicious media files
|
|
15
|
+
- Memory safety issues (any `unsafe` block)
|
|
16
|
+
|
|
17
|
+
## Response
|
|
18
|
+
|
|
19
|
+
I'll acknowledge reports within 72 hours and aim to fix confirmed
|
|
20
|
+
vulnerabilities within 2 weeks.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: cargo
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
groups:
|
|
8
|
+
rust-deps:
|
|
9
|
+
patterns: ["*"]
|
|
10
|
+
commit-message:
|
|
11
|
+
prefix: "build(deps)"
|
|
12
|
+
|
|
13
|
+
- package-ecosystem: github-actions
|
|
14
|
+
directory: /
|
|
15
|
+
schedule:
|
|
16
|
+
interval: weekly
|
|
17
|
+
commit-message:
|
|
18
|
+
prefix: "ci(deps)"
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
CARGO_TERM_COLOR: always
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
lint:
|
|
15
|
+
name: Lint
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
submodules: false
|
|
21
|
+
- run: sudo apt-get update && sudo apt-get install -y nasm libasound2-dev
|
|
22
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
23
|
+
with:
|
|
24
|
+
components: rustfmt, clippy
|
|
25
|
+
- uses: Swatinem/rust-cache@v2
|
|
26
|
+
- name: Clippy
|
|
27
|
+
run: cargo clippy --workspace --all-targets -- -D warnings
|
|
28
|
+
- name: Format check
|
|
29
|
+
run: cargo fmt --all -- --check
|
|
30
|
+
|
|
31
|
+
test:
|
|
32
|
+
name: Test
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
with:
|
|
37
|
+
submodules: false
|
|
38
|
+
- run: sudo apt-get update && sudo apt-get install -y nasm libasound2-dev
|
|
39
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
40
|
+
- uses: Swatinem/rust-cache@v2
|
|
41
|
+
- uses: taiki-e/install-action@nextest
|
|
42
|
+
- name: Unit & integration tests
|
|
43
|
+
run: cargo nextest run --profile ci --exclude wedeo-oracle
|
|
44
|
+
- name: Upload test results
|
|
45
|
+
if: always()
|
|
46
|
+
uses: actions/upload-artifact@v4
|
|
47
|
+
with:
|
|
48
|
+
name: test-results
|
|
49
|
+
path: target/nextest/ci/junit.xml
|
|
50
|
+
|
|
51
|
+
fate-regression:
|
|
52
|
+
name: FATE Regression
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/checkout@v4
|
|
56
|
+
with:
|
|
57
|
+
submodules: false
|
|
58
|
+
- run: sudo apt-get update && sudo apt-get install -y nasm libasound2-dev ffmpeg
|
|
59
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
60
|
+
- uses: Swatinem/rust-cache@v2
|
|
61
|
+
|
|
62
|
+
- name: Cache FATE H.264 samples
|
|
63
|
+
uses: actions/cache@v4
|
|
64
|
+
id: fate-cache
|
|
65
|
+
with:
|
|
66
|
+
path: fate-suite/h264-conformance
|
|
67
|
+
key: fate-h264-conformance-v1
|
|
68
|
+
|
|
69
|
+
- name: Fetch FATE H.264 samples
|
|
70
|
+
if: steps.fate-cache.outputs.cache-hit != 'true'
|
|
71
|
+
timeout-minutes: 10
|
|
72
|
+
run: |
|
|
73
|
+
mkdir -p fate-suite
|
|
74
|
+
rsync -a rsync://fate-suite.ffmpeg.org/fate-suite/h264-conformance fate-suite/
|
|
75
|
+
|
|
76
|
+
- name: Build wedeo-framecrc
|
|
77
|
+
run: cargo build --release --bin wedeo-framecrc -p wedeo-oracle
|
|
78
|
+
|
|
79
|
+
# Regression check: compare against committed baselines.
|
|
80
|
+
# Exits 0 if no previously-passing test regressed.
|
|
81
|
+
# New failures on tests not in the baseline are allowed.
|
|
82
|
+
- name: Check for regressions
|
|
83
|
+
id: regression
|
|
84
|
+
run: |
|
|
85
|
+
set -o pipefail
|
|
86
|
+
python3 scripts/suite_runner.py \
|
|
87
|
+
--suite fate-cavlc,fate-cabac \
|
|
88
|
+
--check-snapshot \
|
|
89
|
+
--snapshot-dir test_suites/baselines \
|
|
90
|
+
2>&1 | tee /tmp/fate-results.txt
|
|
91
|
+
|
|
92
|
+
- name: Post summary
|
|
93
|
+
if: always()
|
|
94
|
+
run: |
|
|
95
|
+
echo '## FATE Regression Check' >> "$GITHUB_STEP_SUMMARY"
|
|
96
|
+
echo '```' >> "$GITHUB_STEP_SUMMARY"
|
|
97
|
+
if [ -f /tmp/fate-results.txt ]; then
|
|
98
|
+
cat /tmp/fate-results.txt >> "$GITHUB_STEP_SUMMARY"
|
|
99
|
+
else
|
|
100
|
+
echo 'No results (build or download may have failed)' >> "$GITHUB_STEP_SUMMARY"
|
|
101
|
+
fi
|
|
102
|
+
echo '```' >> "$GITHUB_STEP_SUMMARY"
|
|
103
|
+
|
|
104
|
+
deny:
|
|
105
|
+
name: Deny
|
|
106
|
+
runs-on: ubuntu-latest
|
|
107
|
+
steps:
|
|
108
|
+
- uses: actions/checkout@v4
|
|
109
|
+
- uses: EmbarkStudios/cargo-deny-action@v2
|
|
110
|
+
|
|
111
|
+
jvt-regression:
|
|
112
|
+
name: JVT Regression
|
|
113
|
+
runs-on: ubuntu-latest
|
|
114
|
+
steps:
|
|
115
|
+
- uses: actions/checkout@v4
|
|
116
|
+
with:
|
|
117
|
+
submodules: false
|
|
118
|
+
- run: sudo apt-get update && sudo apt-get install -y nasm libasound2-dev
|
|
119
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
120
|
+
- uses: Swatinem/rust-cache@v2
|
|
121
|
+
|
|
122
|
+
- name: Cache JVT vectors
|
|
123
|
+
uses: actions/cache@v4
|
|
124
|
+
with:
|
|
125
|
+
path: jvt-vectors
|
|
126
|
+
key: jvt-vectors-${{ hashFiles('test_suites/h264/*.json') }}
|
|
127
|
+
|
|
128
|
+
- name: Build wedeo-framecrc
|
|
129
|
+
run: cargo build --release --bin wedeo-framecrc -p wedeo-oracle
|
|
130
|
+
|
|
131
|
+
- name: Download JVT vectors
|
|
132
|
+
continue-on-error: true
|
|
133
|
+
timeout-minutes: 10
|
|
134
|
+
run: python3 scripts/fetch_jvt.py --jobs 8
|
|
135
|
+
|
|
136
|
+
# Regression check: compare against committed baselines.
|
|
137
|
+
- name: Check for regressions
|
|
138
|
+
id: regression
|
|
139
|
+
run: |
|
|
140
|
+
set -o pipefail
|
|
141
|
+
python3 scripts/suite_runner.py \
|
|
142
|
+
--suite jvt-avc-v1,jvt-fr-ext \
|
|
143
|
+
--format yuv420p \
|
|
144
|
+
--check-snapshot \
|
|
145
|
+
--snapshot-dir test_suites/baselines \
|
|
146
|
+
2>&1 | tee /tmp/jvt-results.txt
|
|
147
|
+
|
|
148
|
+
- name: Post summary
|
|
149
|
+
if: always()
|
|
150
|
+
run: |
|
|
151
|
+
echo '## JVT Regression Check' >> "$GITHUB_STEP_SUMMARY"
|
|
152
|
+
echo '```' >> "$GITHUB_STEP_SUMMARY"
|
|
153
|
+
if [ -f /tmp/jvt-results.txt ]; then
|
|
154
|
+
cat /tmp/jvt-results.txt >> "$GITHUB_STEP_SUMMARY"
|
|
155
|
+
else
|
|
156
|
+
echo 'No results (build or download may have failed)' >> "$GITHUB_STEP_SUMMARY"
|
|
157
|
+
fi
|
|
158
|
+
echo '```' >> "$GITHUB_STEP_SUMMARY"
|
|
159
|
+
|
|
160
|
+
oracle-gates:
|
|
161
|
+
name: Oracle Gates
|
|
162
|
+
runs-on: ubuntu-latest
|
|
163
|
+
steps:
|
|
164
|
+
- uses: actions/checkout@v4
|
|
165
|
+
with:
|
|
166
|
+
submodules: false
|
|
167
|
+
- run: sudo apt-get update && sudo apt-get install -y nasm libasound2-dev
|
|
168
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
169
|
+
- uses: Swatinem/rust-cache@v2
|
|
170
|
+
- name: Architecture DAG & unsafe lint (oracle_arch_lint)
|
|
171
|
+
run: cargo test -p wedeo-oracle --test oracle_arch_lint
|
|
172
|
+
- name: DOD allocation gate (oracle_dod_alloc)
|
|
173
|
+
run: cargo test -p wedeo-oracle --test oracle_dod_alloc
|
|
174
|
+
|
|
175
|
+
wasm:
|
|
176
|
+
name: WASM
|
|
177
|
+
runs-on: ubuntu-latest
|
|
178
|
+
steps:
|
|
179
|
+
- uses: actions/checkout@v4
|
|
180
|
+
with:
|
|
181
|
+
submodules: false
|
|
182
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
183
|
+
with:
|
|
184
|
+
components: clippy
|
|
185
|
+
targets: wasm32-unknown-unknown
|
|
186
|
+
- uses: Swatinem/rust-cache@v2
|
|
187
|
+
with:
|
|
188
|
+
workspaces: bins/wedeo-wasm
|
|
189
|
+
- name: Clippy (wedeo-wasm)
|
|
190
|
+
run: cargo clippy --manifest-path bins/wedeo-wasm/Cargo.toml --all-targets -- -D warnings
|
|
191
|
+
- name: Unit tests (wedeo-wasm)
|
|
192
|
+
run: cargo test --manifest-path bins/wedeo-wasm/Cargo.toml
|
|
193
|
+
- name: Build wasm32 target
|
|
194
|
+
run: cargo build --manifest-path bins/wedeo-wasm/Cargo.toml --target wasm32-unknown-unknown --profile wasm-release
|
|
195
|
+
|
|
196
|
+
miri:
|
|
197
|
+
name: Miri
|
|
198
|
+
runs-on: ubuntu-latest
|
|
199
|
+
steps:
|
|
200
|
+
- uses: actions/checkout@v4
|
|
201
|
+
with:
|
|
202
|
+
submodules: false
|
|
203
|
+
- run: sudo apt-get update && sudo apt-get install -y nasm
|
|
204
|
+
- uses: dtolnay/rust-toolchain@nightly
|
|
205
|
+
with:
|
|
206
|
+
components: miri
|
|
207
|
+
- uses: Swatinem/rust-cache@v2
|
|
208
|
+
- name: Miri (wedeo-core)
|
|
209
|
+
run: cargo +nightly miri test -p wedeo-core
|
|
210
|
+
- name: Miri (wedeo-rav1d)
|
|
211
|
+
run: cargo +nightly miri test -p wedeo-rav1d --lib
|
|
212
|
+
- name: Miri (wedeo-codec-pcm)
|
|
213
|
+
run: cargo +nightly miri test -p wedeo-codec-pcm --lib
|
|
214
|
+
- name: Miri (wedeo-codec-vp9)
|
|
215
|
+
run: cargo +nightly miri test -p wedeo-codec-vp9 --lib
|
|
216
|
+
- name: Miri (wedeo-codec-h264)
|
|
217
|
+
run: cargo +nightly miri test -p wedeo-codec-h264 --lib
|
|
218
|
+
- name: Miri (wedeo-syntax)
|
|
219
|
+
run: cargo +nightly miri test -p wedeo-syntax --lib -- --skip raw_demuxer_streams_across_tiny_chunks_and_compacts
|
|
220
|
+
- name: Miri (wedeo-graph)
|
|
221
|
+
run: cargo +nightly miri test -p wedeo-graph --lib
|
|
222
|
+
- name: Miri (wedeo-wasm)
|
|
223
|
+
env:
|
|
224
|
+
MIRIFLAGS: -Zmiri-disable-isolation
|
|
225
|
+
run: cargo +nightly miri test --manifest-path bins/wedeo-wasm/Cargo.toml --lib
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Publish Python package
|
|
2
|
+
on: workflow_dispatch
|
|
3
|
+
|
|
4
|
+
permissions:
|
|
5
|
+
contents: read
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
if: github.ref == 'refs/heads/main'
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- run: sudo apt-get update && sudo apt-get install -y nasm
|
|
14
|
+
- run: python -m pip install 'maturin>=1.9,<2' uv
|
|
15
|
+
- run: maturin build --release --out dist && maturin sdist --out dist
|
|
16
|
+
- name: Check the packaged executable
|
|
17
|
+
run: |
|
|
18
|
+
wheel=$(ls dist/*.whl)
|
|
19
|
+
uvx --from "$PWD/$wheel" wedeo ffprobe -show_streams -of json web/samples/h264_aac_320x240.mp4 | jq -e 'any(.streams[]; .codec_name == "h264")'
|
|
20
|
+
- uses: actions/upload-artifact@v4
|
|
21
|
+
with:
|
|
22
|
+
name: python-dist
|
|
23
|
+
path: dist/
|
|
24
|
+
|
|
25
|
+
publish:
|
|
26
|
+
needs: build
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
environment: pypi
|
|
29
|
+
permissions:
|
|
30
|
+
id-token: write
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/download-artifact@v4
|
|
33
|
+
with:
|
|
34
|
+
name: python-dist
|
|
35
|
+
path: dist/
|
|
36
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
wedeo-0.3.1/.gitignore
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Build
|
|
2
|
+
/target
|
|
3
|
+
/bins/wedeo-wasm/target
|
|
4
|
+
/dist
|
|
5
|
+
/web/wedeo.wasm
|
|
6
|
+
|
|
7
|
+
# FATE test samples (download via scripts/fetch-fate-suite.sh)
|
|
8
|
+
/fate-suite
|
|
9
|
+
|
|
10
|
+
# JVT conformance vectors (download via scripts/fetch_jvt.py)
|
|
11
|
+
/jvt-vectors
|
|
12
|
+
|
|
13
|
+
# Planning artifacts
|
|
14
|
+
start.json
|
|
15
|
+
|
|
16
|
+
# Reference specs (not redistributable)
|
|
17
|
+
/h264_spec
|
|
18
|
+
|
|
19
|
+
# IDE
|
|
20
|
+
.idea/
|
|
21
|
+
.vscode/
|
|
22
|
+
*.swp
|
|
23
|
+
*.swo
|
|
24
|
+
*~
|
|
25
|
+
|
|
26
|
+
# Python
|
|
27
|
+
__pycache__/
|
|
28
|
+
*.pyc
|
|
29
|
+
|
|
30
|
+
# OS
|
|
31
|
+
.DS_Store
|
|
32
|
+
Thumbs.db
|
|
33
|
+
.conformance-cache.json
|
|
34
|
+
scripts/.conformance_snapshot.json
|
|
35
|
+
scripts/.conformance_delta_*.json
|
|
36
|
+
scripts/.suite_*_snapshot.json
|
|
37
|
+
|
|
38
|
+
# Benchmark baselines (local, not shared)
|
|
39
|
+
.bench_baselines/
|
|
40
|
+
|
|
41
|
+
# Claude Code ephemeral session state
|
|
42
|
+
.claude/
|
|
43
|
+
|
|
44
|
+
# === Development-only files (kept locally, not published) ===
|
|
45
|
+
|
|
46
|
+
# Debugging & analysis scripts
|
|
47
|
+
/scripts/cabac_*.py
|
|
48
|
+
/scripts/mb_*.py
|
|
49
|
+
/scripts/mv_compare.py
|
|
50
|
+
/scripts/deblock_*.py
|
|
51
|
+
/scripts/neighbor_debug.py
|
|
52
|
+
/scripts/bs_compare.py
|
|
53
|
+
/scripts/bitpos_compare.py
|
|
54
|
+
/scripts/nnz_compare.py
|
|
55
|
+
/scripts/ffmpeg_*.py
|
|
56
|
+
/scripts/lldb_*.py
|
|
57
|
+
/scripts/poc_*.py
|
|
58
|
+
/scripts/dpb_compare.py
|
|
59
|
+
/scripts/frame_order*.py
|
|
60
|
+
/scripts/frame_type_map.py
|
|
61
|
+
/scripts/mmco_trace.py
|
|
62
|
+
/scripts/compare_mvs.py
|
|
63
|
+
/scripts/bskip_mv_compare.py
|
|
64
|
+
/scripts/check_direct_mode.py
|
|
65
|
+
/scripts/classify_*.py
|
|
66
|
+
/scripts/stream_features.py
|
|
67
|
+
/scripts/probe_h264_features.py
|
|
68
|
+
/scripts/extract_coeffs.py
|
|
69
|
+
/scripts/coeff_compare_8x8.py
|
|
70
|
+
/scripts/transform_flag_compare.py
|
|
71
|
+
/scripts/pixel_compare_mb.py
|
|
72
|
+
/scripts/view_yuv.py
|
|
73
|
+
/scripts/yuv_first_diff.py
|
|
74
|
+
/scripts/test_file.py
|
|
75
|
+
/scripts/trace_grep.sh
|
|
76
|
+
/scripts/fix_stale_tracing_features.sh
|
|
77
|
+
/scripts/shodh_watchdog.sh
|
|
78
|
+
/scripts/scrape_atomics_book.py
|
|
79
|
+
/scripts/build_cabac_trace.sh
|
|
80
|
+
/scripts/wedeo-trace.sh
|
|
81
|
+
/scripts/verify_*.py
|
|
82
|
+
/scripts/frext_triage.py
|
|
83
|
+
/scripts/audit_*.py
|
|
84
|
+
/scripts/bench_ab.py
|
|
85
|
+
/scripts/conformance_diff.py
|
|
86
|
+
/scripts/conformance_delta.py
|
|
87
|
+
/scripts/conformance_parse.py
|
|
88
|
+
/scripts/conformance_report.py
|
|
89
|
+
/scripts/conformance_frext.py
|
|
90
|
+
/scripts/conformance_snapshot.py
|
|
91
|
+
/scripts/dual_extract.py
|
|
92
|
+
/scripts/fix_stale_tracing_features.py
|
|
93
|
+
/scripts/mbaff_*.py
|
|
94
|
+
/scripts/pair_row_diff.py
|
|
95
|
+
/scripts/reflist_compare.py
|
|
96
|
+
/scripts/sps_flags.py
|
|
97
|
+
/scripts/build/
|
|
98
|
+
/scripts/.conformance_baseline.json
|
|
99
|
+
/scripts/.conformance_cabac_snapshot.json
|
|
100
|
+
/scripts/.conformance_frext_snapshot.json
|
|
101
|
+
/scripts/*.lldb
|
|
102
|
+
|
|
103
|
+
# Large reference docs (not redistributable)
|
|
104
|
+
/h264-spec.md
|
|
105
|
+
/memory-setup.md
|
|
106
|
+
/DEBUG_NOTES.md
|
|
107
|
+
/CONFORMANCE_STATE.md
|
|
108
|
+
/docs/*
|
|
109
|
+
!/docs/ARCHITECTURE.md
|
|
110
|
+
!/docs/history/
|
|
111
|
+
|
|
112
|
+
# Diagnostic & debug output
|
|
113
|
+
diag_*.txt
|
|
114
|
+
framecrc_*.txt
|
|
115
|
+
|
|
116
|
+
# Benchmark artifacts
|
|
117
|
+
/bench_ffmpeg
|
|
118
|
+
/bench_ffmpeg.c
|
|
119
|
+
/bench_ffmpeg_dbg*
|
|
120
|
+
|
|
121
|
+
# Test media files
|
|
122
|
+
*.mp4
|
|
123
|
+
|
|
124
|
+
# Investigation notes (ephemeral)
|
|
125
|
+
/PERF_PLAN.md
|
|
126
|
+
/VP9_LOOPFILTER_BUG.md
|
|
127
|
+
/VP9_Spec.md
|
|
128
|
+
|
|
129
|
+
# Internal planning & session state
|
|
130
|
+
/plans/
|
|
131
|
+
/tasks/
|
|
132
|
+
|
|
133
|
+
!/web/samples/*.mp4
|
wedeo-0.3.1/.gitmodules
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: local
|
|
3
|
+
hooks:
|
|
4
|
+
- id: cargo-fmt
|
|
5
|
+
name: cargo fmt
|
|
6
|
+
entry: cargo fmt --all --
|
|
7
|
+
language: system
|
|
8
|
+
types: [rust]
|
|
9
|
+
pass_filenames: false
|
|
10
|
+
- id: cargo-clippy
|
|
11
|
+
name: cargo clippy
|
|
12
|
+
entry: cargo clippy --all-targets -- -D warnings
|
|
13
|
+
language: system
|
|
14
|
+
types: [rust]
|
|
15
|
+
pass_filenames: false
|
wedeo-0.3.1/CLAUDE.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Wedeo — FFmpeg `n9.1` ("Gauss") Pure-Rust Rewrite
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
|
|
5
|
+
Pure-Rust Universal A/V Adapter verified against **FFmpeg `n9.1` ("Gauss")**.
|
|
6
|
+
**100% Pure Rust:** No `.S` files, no `cc` `build.rs`, no `bindgen`, no `c2rust`, no FFI, no `inventory`.
|
|
7
|
+
Licensed under **LGPL-2.1-or-later**.
|
|
8
|
+
Canonical architecture spec: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
|
|
9
|
+
|
|
10
|
+
## Architecture (19 Crates)
|
|
11
|
+
|
|
12
|
+
- **L0 (`wedeo-core`):** Depends ONLY on `bitflags`. VFR `Timestamp`/`Rational`, `BorderedPlane`, `RowProgressPlane`, `BufferPool`, `GpuSurface`, `StreamHealth`, concrete `Registry`.
|
|
13
|
+
- **L1:** `wedeo-syntax` (`#![no_std]`, `#![forbid(unsafe_code)]`), `wedeo-video-ops` (`SwsOpList` + `256×16` `CpuSwsBackend`), `wedeo-audio-ops` (`AudioOpList` + `1024`-sample `CompiledAudioOps`), `wedeo-graph` (`CompiledGraph`, `Timeline`, filters), `wedeo-gpu-wgpu` (optional `wgpu` WGSL compute backend).
|
|
14
|
+
- **L2a:** `wedeo-codec-{pcm,h264,vp9}`, `wedeo-format-{wav,mp4,mkv,ivf}`.
|
|
15
|
+
- **L2b:** `wedeo-{rav1d,rav1e,symphonia}` (segregated adapters).
|
|
16
|
+
- **L3:** `wedeo` (facade with `AudioReader`/`VideoReader`), `wedeo-cli` (`inspect`/`transcode`/`cut`/`mux`/`explain`, `wedeo ffmpeg`, `wedeo mcp`).
|
|
17
|
+
- **Dev-Only (`tests/wedeo-oracle`, `publish = false`):** FFmpeg `n9.1` oracle, `framecrc`, `audiogen`, `checkasm`, `CountingAlloc` DOD gates, and DAG lints.
|
|
18
|
+
|
|
19
|
+
## Hard Architectural Rules
|
|
20
|
+
|
|
21
|
+
- **Strict Downward DAG & A/V Separation:** Audio crates (`wedeo-audio-ops`, `wedeo-codec-pcm`, `wedeo-format-wav`, `wedeo-symphonia`) must NEVER depend on video or GPU crates. `wedeo-video-ops` must NEVER depend on `wgpu` or `wedeo-gpu-wgpu`.
|
|
22
|
+
- **Safety:** `#![forbid(unsafe_code)]` on all safe crates (`wedeo-codec-h264` uses `#![deny(unsafe_code)]` with audited `core::arch` SIMD isolated to `src/simd.rs`).
|
|
23
|
+
- **VFR-Native:** Always carry exact rational `(pts, dts, duration, time_base)`; never assume CFR.
|
|
24
|
+
- **DOD Steady-State Zero-Alloc:** Reuse `BufferPool`, pre-allocated scratch slabs, and in-place `BorderedPlane::extend_edges`.
|
|
25
|
+
- **Zero Dev Slop in Production:** Keep all FFmpeg oracle binaries, `framecrc`, `CountingAlloc`, and stage dumps (`#[cfg(feature = "dev-trace")]`) out of production APIs.
|
|
26
|
+
|
|
27
|
+
## Build & Verify
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
cargo clippy --workspace --all-targets -- -D warnings
|
|
31
|
+
cargo fmt --all -- --check
|
|
32
|
+
cargo test --offline -p wedeo-oracle --test oracle_arch_lint --test oracle_dod_alloc
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Debugging & Verification Workflow
|
|
36
|
+
|
|
37
|
+
- Read FFmpeg `n9.1` C source in `./FFmpeg/` before modifying codec/ops math; use explicit `wrapping_*` arithmetic for C `-fwrapv` parity.
|
|
38
|
+
- Never infer intermediate values from outputs — use `tracing` (or `dev-trace` feature) and differential `framecrc` / `audiogen` / `checkasm` comparisons against FFmpeg `n9.1`.
|
|
39
|
+
- Preserve deterministic ordering (`Vec<(String, String)>` for metadata, never `HashMap`).
|