From a6f88ba73824d9a9fad5416693c58eedf172dadd Mon Sep 17 00:00:00 2001 From: Stuart Cameron Date: Sun, 22 Nov 2026 17:46:30 +1100 Subject: [PATCH] fix(deinterlace): run QTGMC's MVTools Mask on an 8-bit stand-in at any depth (task #89) havsfunc's QTGMC runs mv.Mask(kind=1, ml=ProgSADMask) on InputType 2/3 at Placebo..Medium, and MVTools' Mask refuses every clip above 8 bits, so all those 10/12/16-bit jobs (and every High Precision one) failed. plugin_formats.havsfunc_mask_any_depth rebinds havsfunc's core for the QTGMC call to a proxy whose mv.Mask is mvtools_mask_any_depth: an 8-bit BlankClip stand-in of the clip's size, ml x 2^(bits-8) for kind 1, the mask put on the clip's scale. Exact because kinds 0-4 never read the clip's pixels, and MVTools takes the SAD shift from the clip but the scene-change thresholds from the vectors. The template rebinds _deinterlace_qtgmc in a {{#QTGMC_MASK_ANY_DEPTH}} block only for prog_sad_mask_blocks() jobs; every other script is unchanged. 10-bit vs 8-bit output 0.16 levels (Slow/Medium), 0.07 (Placebo), below the Mask-off control; 8-bit output unchanged. Tests: test_269 (test_263 adjusted), the contracts test's task #89 group, probe calls havsfunc.QTGMC[InputType=2] (HANDLED) and pass.QTGMC[InputType=2] with the table updated, two format-sweep variants, heavy 8-vs-10 parity cases. Also fixes the Input Type description in the Deinterlace panel. Report: docs/reports/task-89-qtgmc-mask-high-bit-depth. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 12 +- Scripts/probe-plugin-formats.py | 20 + Tests/TestResources/plugin_format_table.json | 2925 +++++++++++------ app/assets/filters/core/deinterlace.json | 2 +- app/test/format_sweep_cases_test.dart | 12 +- ...tegration_high_bit_depth_filters_test.dart | 29 + .../integration_qtgmc_parameters_test.dart | 44 + app/test/plugin_format_contracts_test.dart | 113 + app/test/support/format_sweep.dart | 8 + docs/ENGINEERING_NOTES.md | 47 + docs/reports/README.md | 1 + .../factor_sweep_macos-arm64_1.18.0-rc3.txt | 20 + .../mask_depths_macos-arm64_1.18.0-rc3.txt | 24 + .../data/stand_in_macos-arm64_1.18.0-rc3.txt | 41 + .../index.html | 181 + .../scripts/common.py | 83 + .../scripts/factor_sweep.py | 52 + .../scripts/reproduce.sh | 21 + .../scripts/stand_in.py | 94 + worker/filters/core/deinterlace.json | 2 +- worker/src/models/qtgmc_parameters.rs | 4 +- worker/src/script_generator.rs | 5 + worker/templates/pipeline_template.vpy | 9 + worker/templates/plugin_formats.py | 86 + worker/tests/filter_integration_test.rs | 97 +- 25 files changed, 2849 insertions(+), 1083 deletions(-) create mode 100644 docs/reports/task-89-qtgmc-mask-high-bit-depth/data/factor_sweep_macos-arm64_1.18.0-rc3.txt create mode 100644 docs/reports/task-89-qtgmc-mask-high-bit-depth/data/mask_depths_macos-arm64_1.18.0-rc3.txt create mode 100644 docs/reports/task-89-qtgmc-mask-high-bit-depth/data/stand_in_macos-arm64_1.18.0-rc3.txt create mode 100644 docs/reports/task-89-qtgmc-mask-high-bit-depth/index.html create mode 100644 docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/common.py create mode 100644 docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/factor_sweep.py create mode 100755 docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/reproduce.sh create mode 100644 docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/stand_in.py diff --git a/CLAUDE.md b/CLAUDE.md index ecdf29a6..74a13c5a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -138,7 +138,7 @@ VapourBox/ | `worker/src/pixel_format.rs` | Source `pix_fmt` → pipe format (see "Source Pixel Formats"); a format's chroma grid and a size's pad onto it (`chroma_grid`, `grid_pad`, task #97) | | `worker/templates/stabilize.py` | Stabilize pass: the weave (`Stab` measured at 16-bit) and the vertical pitch correction (see "Stabilize") | | `worker/templates/srestore.py` | The Unblend pass: VapourBox's windowed port of srestore (see "Unblend (SRestore)") | -| `worker/templates/plugin_formats.py` | Each limited plugin's format `Contract` and `run_within()`, the one way a pass runs a plugin outside its formats; `pad_around()` / `read_padded()` for a frame size it refuses (see "High Bit Depth Sources"); `mvtools_blocks()` and `mvtools_flow_opt()` for MVTools' small-picture faults | +| `worker/templates/plugin_formats.py` | Each limited plugin's format `Contract` and `run_within()`, the one way a pass runs a plugin outside its formats; `pad_around()` / `read_padded()` for a frame size it refuses (see "High Bit Depth Sources"); `mvtools_blocks()` and `mvtools_flow_opt()` for MVTools' small-picture faults; `havsfunc_mask_any_depth()` for QTGMC's 8-bit-only Mask (task #89) | | `Scripts/probe-plugin-formats.py` | Runs every plugin call the template makes at every format and size a pass can be handed; writes / checks `Tests/TestResources/plugin_format_table.json` (task #48) | | `worker/src/models/unblend_parameters.rs` | Unblend's parameters, srestore's ratio arithmetic (`srestore_ratio`) and the refusal wording | | `worker/src/cpu.rs` | The x86 deps CPU tier (`v3`/`v2`) — the single decision; see "CPU tiers" | @@ -458,7 +458,15 @@ Adding a filter touches many files. Missing any step causes silent failures (fil CPU), so `_deinterlace_qtgmc_rows` pads with `mvtools_blocks(min_cols=_pf.mvtools_mask_cols(w, h, b, o))`, b/o from `QTGMCParameters::prog_sad_mask_blocks` (havsfunc's effective values), - for those jobs only (task #79, test_263). Check on a fixture with real low + for those jobs only (task #79, test_263). That Mask also refuses a clip + above 8 bits, so the same jobs rebind `_deinterlace_qtgmc` through + `_pf.havsfunc_mask_any_depth(haf, fn)`, which runs every Mask havsfunc + makes on an 8-bit stand-in of the clip's size, `ml × 2^(bits − 8)` for + kind 1, the mask put on the clip's scale (task #89, test_269; a + `{{#QTGMC_MASK_ANY_DEPTH}}` block, so other jobs' scripts are unchanged). + It works because kind 0–4 never read the clip's pixels and MVTools takes + the SAD shift from the clip but the scene-change thresholds from the + vectors. Check on a fixture with real low bits that the plugin leaves the samples it doesn't change exact — see "High Bit Depth Sources" - If any parameter is a **level, threshold or offset expressed in 8-bit units** diff --git a/Scripts/probe-plugin-formats.py b/Scripts/probe-plugin-formats.py index 59c00ac6..6b42c343 100755 --- a/Scripts/probe-plugin-formats.py +++ b/Scripts/probe-plugin-formats.py @@ -164,6 +164,18 @@ def descratch_pass(c): y = descratch(core.std.ShufflePlanes([c, blank, blank], [0, 0, 0], vs.YUV)) return core.std.ShufflePlanes([y, c], [0, 1, 2], vs.YUV) + def qtgmc_input_type_2_pass(c): + # The Deinterlace pass's call for InputType 2 at Medium (BlockSize + # 16, Overlap 8): _deinterlace_qtgmc_rows under the stand-in, inside + # the QTGMC contract's run_within(). + import plugin_formats as pf + + def rows(x): + fn = pf.havsfunc_mask_any_depth( + haf, lambda y: haf.QTGMC(y, Preset='Medium', InputType=2, TFF=True)) + return pf.mvtools_blocks(x, fn, min_cols=pf.mvtools_mask_cols(x.width, x.height, 16, 8)) + return pf.run_within(c, 'havsfunc.QTGMC', rows, delta_only=False) + def sangnom(c): aa = core.resize.Spline36(c, c.width * 2, c.height * 2) aa = core.sangnom.SangNom(aa, order=1, aa=48) @@ -207,6 +219,14 @@ def call(key, covers, run): # Fast doesn't: the only presets that refuse a 4:2:x width 2 mod 4 (task # #56 F2). The template picks this contract for SrchClipPP 1. call('havsfunc.QTGMC[SrchClipPP=1]', ['havsfunc.QTGMC'], lambda c: haf.QTGMC(c, Preset='Super Fast', TFF=True)) + # InputType 2/3 at Placebo..Medium run MVTools' Mask (ProgSADMask), which + # refuses a clip above 8 bits (task #89); Medium is the cheapest preset + # that runs it. The bare call records the refusal; the pass runs every + # Mask havsfunc makes on an 8-bit stand-in (havsfunc_mask_any_depth), with + # the template's padding (#79) and its run_within() for the frame size. + call('havsfunc.QTGMC[InputType=2]', ['havsfunc.QTGMC'], + lambda c: haf.QTGMC(c, Preset='Medium', InputType=2, TFF=True)) + call('pass.QTGMC[InputType=2]', [], qtgmc_input_type_2_pass) call('bwdif.Bwdif', ['bwdif.Bwdif'], lambda c: core.bwdif.Bwdif(c, field=3, edeint=nnedi3(c, field=3))) # The plugin itself (its refusal), and through run_within() its contract. call('nnedi3.nnedi3', ['nnedi3.nnedi3', 'znedi3.nnedi3'], lambda c: nnedi3_plugin(c, field=1)) diff --git a/Tests/TestResources/plugin_format_table.json b/Tests/TestResources/plugin_format_table.json index fbe902b0..2faa8133 100644 --- a/Tests/TestResources/plugin_format_table.json +++ b/Tests/TestResources/plugin_format_table.json @@ -13724,7 +13724,7 @@ "within_refused": [] } }, - "havsfunc.QTGMC[SrchClipPP=1]": { + "havsfunc.QTGMC[InputType=2]": { "cells": { "411p8/f0/160x120": { "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", @@ -13735,488 +13735,420 @@ "ok": false }, "420p10/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p10/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p10/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p12/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p12/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p12/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p14/f0/160x120": { "error": "bitdepth: output pixel bitdepth not supported.", "ok": false }, "420p16/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f0/352x240": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f0/64x48": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f0/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f0/720x486": { "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", - "ok": false, - "within": "ok" + "ok": false }, "420p16/f0/720x576": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f2/352x240": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f2/64x48": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f2/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p16/f2/720x486": { "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", - "ok": false, - "within": "ok" + "ok": false }, "420p16/f2/720x576": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "420p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "ok": true }, "420p8/f0/720x486": { "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", - "ok": false, - "within": "ok" + "ok": false }, "420p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "ok": true }, "420p8/f2/720x486": { "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", - "ok": false, - "within": "ok" + "ok": false }, "420p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p9/f0/160x120": { - "ok": true + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p10/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p10/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p10/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p12/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p12/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p12/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f0/352x240": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f0/64x48": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f0/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f0/720x486": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f0/720x576": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f2/352x240": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f2/64x48": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f2/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f2/720x486": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p16/f2/720x576": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "422p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "ok": true }, "422p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/718x480": { - "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", - "ok": false, - "within": "ok" + "ok": true }, "422p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p10/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p10/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p10/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p12/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p12/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p12/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f0/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f0/352x240": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f0/64x48": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f0/718x480": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f0/720x486": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f0/720x576": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f1/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f2/160x120": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f2/352x240": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f2/64x48": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f2/718x480": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f2/720x486": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p16/f2/720x576": { - "ok": true, - "within": "ok" + "error": "Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.", + "ok": false }, "444p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true } }, "summary": { "depths": [ - 8, - 10, - 12, - 16 + 8 ], "field_based": true, "sizes_refused": [ - "420p8/f0/718x480", - "420p8/f2/718x480", - "420p16/f0/718x480", - "420p16/f2/718x480", - "422p8/f0/718x480", - "422p8/f2/718x480", - "422p16/f0/718x480", - "422p16/f2/718x480", "420p8/f0/720x486", - "420p8/f2/720x486", - "420p16/f0/720x486", - "420p16/f2/720x486" + "420p8/f2/720x486" ], "subsampling": [ "420", "422", "444" - ], - "within_refused": [] + ] } }, - "havsfunc.SMDegrain": { + "havsfunc.QTGMC[SrchClipPP=1]": { "cells": { "411p8/f0/160x120": { "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", @@ -14227,334 +14159,455 @@ "ok": false }, "420p10/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p10/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p10/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p12/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p12/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p12/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p14/f0/160x120": { - "ok": true + "error": "bitdepth: output pixel bitdepth not supported.", + "ok": false }, "420p16/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "420p16/f0/720x486": { - "ok": true + "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", + "ok": false, + "within": "ok" }, "420p16/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "420p16/f2/720x486": { - "ok": true + "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", + "ok": false, + "within": "ok" }, "420p16/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "420p8/f0/720x486": { - "ok": true + "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", + "ok": false, + "within": "ok" }, "420p8/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "420p8/f2/720x486": { - "ok": true + "error": "SeparateFields: clip height must be mod 2 in the smallest subsampled plane", + "ok": false, + "within": "ok" }, "420p8/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p9/f0/160x120": { "ok": true }, "422p10/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p10/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p10/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p12/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p12/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p12/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "422p16/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "422p16/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "422p8/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/718x480": { - "ok": true + "error": "Analyse: failed to retrieve first frame from super clip. Error message: Resize error 1027: image dimensions must be divisible by subsampling factor", + "ok": false, + "within": "ok" }, "422p8/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p10/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p10/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p10/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p12/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p12/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p12/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" } }, "summary": { @@ -14565,21 +14618,37 @@ 16 ], "field_based": true, - "sizes_refused": [], + "sizes_refused": [ + "420p8/f0/718x480", + "420p8/f2/718x480", + "420p16/f0/718x480", + "420p16/f2/718x480", + "422p8/f0/718x480", + "422p8/f2/718x480", + "422p16/f0/718x480", + "422p16/f2/718x480", + "420p8/f0/720x486", + "420p8/f2/720x486", + "420p16/f0/720x486", + "420p16/f2/720x486" + ], "subsampling": [ "420", "422", "444" - ] + ], + "within_refused": [] } }, - "havsfunc.STPresso": { + "havsfunc.SMDegrain": { "cells": { "411p8/f0/160x120": { - "ok": true + "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", + "ok": false }, "411p8/f2/160x120": { - "ok": true + "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", + "ok": false }, "420p10/f0/160x120": { "ok": true @@ -14928,7 +14997,7 @@ ] } }, - "havsfunc.SmoothLevels": { + "havsfunc.STPresso": { "cells": { "411p8/f0/160x120": { "ok": true @@ -15283,7 +15352,7 @@ ] } }, - "havsfunc.Vinverse": { + "havsfunc.SmoothLevels": { "cells": { "411p8/f0/160x120": { "ok": true @@ -15638,7 +15707,7 @@ ] } }, - "havsfunc.YAHR": { + "havsfunc.Vinverse": { "cells": { "411p8/f0/160x120": { "ok": true @@ -15758,8 +15827,7 @@ "ok": true }, "420p9/f0/160x120": { - "error": "CTMF: only constant format 8, 10, 12, 14, 16 bit integer and 32 bit float input supported", - "ok": false + "ok": true }, "422p10/f0/160x120": { "ok": true @@ -15994,7 +16062,7 @@ ] } }, - "havsfunc.daa": { + "havsfunc.YAHR": { "cells": { "411p8/f0/160x120": { "ok": true @@ -16003,442 +16071,335 @@ "ok": true }, "420p10/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p10/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p10/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p12/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p12/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p12/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p14/f0/160x120": { "ok": true }, "420p16/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p9/f0/160x120": { - "ok": true + "error": "CTMF: only constant format 8, 10, 12, 14, 16 bit integer and 32 bit float input supported", + "ok": false }, "422p10/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p10/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p10/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p12/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p12/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p12/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p10/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p10/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p10/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p12/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p12/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p12/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true } }, "summary": { @@ -16454,11 +16415,10 @@ "420", "422", "444" - ], - "within_refused": [] + ] } }, - "havsfunc.santiag": { + "havsfunc.daa": { "cells": { "411p8/f0/160x120": { "ok": true @@ -16467,335 +16427,442 @@ "ok": true }, "420p10/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p10/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p10/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p12/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p12/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p12/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p14/f0/160x120": { - "error": "bitdepth: output pixel bitdepth not supported.", - "ok": false + "ok": true }, "420p16/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "420p16/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "420p8/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "420p9/f0/160x120": { "ok": true }, "422p10/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p10/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p10/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p12/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p12/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p12/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p16/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "422p8/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p10/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p10/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p10/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p12/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p12/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p12/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p16/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f0/720x576": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f1/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/160x120": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/1920x1080": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/352x240": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/64x48": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/718x480": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/720x486": { - "ok": true + "ok": true, + "within": "ok" }, "444p8/f2/720x576": { - "ok": true + "ok": true, + "within": "ok" } }, "summary": { @@ -16811,10 +16878,11 @@ "420", "422", "444" - ] + ], + "within_refused": [] } }, - "lghost.LGhost": { + "havsfunc.santiag": { "cells": { "411p8/f0/160x120": { "ok": true @@ -16841,7 +16909,8 @@ "ok": true }, "420p14/f0/160x120": { - "ok": true + "error": "bitdepth: output pixel bitdepth not supported.", + "ok": false }, "420p16/f0/160x120": { "ok": true @@ -17169,15 +17238,13 @@ ] } }, - "mclean.mClean": { + "lghost.LGhost": { "cells": { "411p8/f0/160x120": { - "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", - "ok": false + "ok": true }, "411p8/f2/160x120": { - "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", - "ok": false + "ok": true }, "420p10/f0/160x120": { "ok": true @@ -17526,13 +17593,15 @@ ] } }, - "mpeg2stinx": { + "mclean.mClean": { "cells": { "411p8/f0/160x120": { - "ok": true + "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", + "ok": false }, "411p8/f2/160x120": { - "ok": true + "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", + "ok": false }, "420p10/f0/160x120": { "ok": true @@ -17881,15 +17950,13 @@ ] } }, - "mv.Degrain1": { + "mpeg2stinx": { "cells": { "411p8/f0/160x120": { - "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", - "ok": false + "ok": true }, "411p8/f2/160x120": { - "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", - "ok": false + "ok": true }, "420p10/f0/160x120": { "ok": true @@ -18238,7 +18305,7 @@ ] } }, - "mv.Degrain2": { + "mv.Degrain1": { "cells": { "411p8/f0/160x120": { "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", @@ -18595,7 +18662,7 @@ ] } }, - "mv.Degrain3": { + "mv.Degrain2": { "cells": { "411p8/f0/160x120": { "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", @@ -18952,7 +19019,7 @@ ] } }, - "mv.FlowFPS": { + "mv.Degrain3": { "cells": { "411p8/f0/160x120": { "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", @@ -19309,7 +19376,7 @@ ] } }, - "mv.FlowInter": { + "mv.FlowFPS": { "cells": { "411p8/f0/160x120": { "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", @@ -19666,13 +19733,15 @@ ] } }, - "neo_f3kdb.Deband": { + "mv.FlowInter": { "cells": { "411p8/f0/160x120": { - "ok": true + "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", + "ok": false }, "411p8/f2/160x120": { - "ok": true + "error": "Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.", + "ok": false }, "420p10/f0/160x120": { "ok": true @@ -20021,7 +20090,7 @@ ] } }, - "nnedi3.nnedi3": { + "neo_f3kdb.Deband": { "cells": { "411p8/f0/160x120": { "ok": true @@ -20030,450 +20099,1225 @@ "ok": true }, "420p10/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p10/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p10/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p12/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p12/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p12/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p14/f0/160x120": { "ok": true }, "420p16/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p16/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "420p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "420p9/f0/160x120": { "ok": true }, "422p10/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p10/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p10/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p12/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p12/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p12/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p16/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "422p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p10/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p10/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p10/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p12/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p12/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p12/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p16/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/160x120": { + "ok": true + }, + "444p8/f0/1920x1080": { + "ok": true + }, + "444p8/f0/352x240": { + "ok": true + }, + "444p8/f0/64x48": { + "ok": true + }, + "444p8/f0/718x480": { + "ok": true + }, + "444p8/f0/720x486": { + "ok": true + }, + "444p8/f0/720x576": { + "ok": true + }, + "444p8/f1/160x120": { + "ok": true + }, + "444p8/f2/160x120": { + "ok": true + }, + "444p8/f2/1920x1080": { + "ok": true + }, + "444p8/f2/352x240": { + "ok": true + }, + "444p8/f2/64x48": { + "ok": true + }, + "444p8/f2/718x480": { + "ok": true + }, + "444p8/f2/720x486": { + "ok": true + }, + "444p8/f2/720x576": { + "ok": true + } + }, + "summary": { + "depths": [ + 8, + 10, + 12, + 16 + ], + "field_based": true, + "sizes_refused": [], + "subsampling": [ + "420", + "422", + "444" + ] + } + }, + "nnedi3.nnedi3": { + "cells": { + "411p8/f0/160x120": { + "ok": true + }, + "411p8/f2/160x120": { + "ok": true + }, + "420p10/f0/160x120": { "ok": true, "within": "ok" }, - "444p8/f0/1920x1080": { + "420p10/f1/160x120": { "ok": true, "within": "ok" }, + "420p10/f2/160x120": { + "ok": true, + "within": "ok" + }, + "420p12/f0/160x120": { + "ok": true, + "within": "ok" + }, + "420p12/f1/160x120": { + "ok": true, + "within": "ok" + }, + "420p12/f2/160x120": { + "ok": true, + "within": "ok" + }, + "420p14/f0/160x120": { + "ok": true + }, + "420p16/f0/160x120": { + "ok": true, + "within": "ok" + }, + "420p16/f0/1920x1080": { + "ok": true, + "within": "ok" + }, + "420p16/f0/352x240": { + "ok": true, + "within": "ok" + }, + "420p16/f0/64x48": { + "ok": true, + "within": "ok" + }, + "420p16/f0/718x480": { + "ok": true, + "within": "ok" + }, + "420p16/f0/720x486": { + "ok": true, + "within": "ok" + }, + "420p16/f0/720x576": { + "ok": true, + "within": "ok" + }, + "420p16/f1/160x120": { + "ok": true, + "within": "ok" + }, + "420p16/f2/160x120": { + "ok": true, + "within": "ok" + }, + "420p16/f2/1920x1080": { + "ok": true, + "within": "ok" + }, + "420p16/f2/352x240": { + "ok": true, + "within": "ok" + }, + "420p16/f2/64x48": { + "ok": true, + "within": "ok" + }, + "420p16/f2/718x480": { + "ok": true, + "within": "ok" + }, + "420p16/f2/720x486": { + "ok": true, + "within": "ok" + }, + "420p16/f2/720x576": { + "ok": true, + "within": "ok" + }, + "420p8/f0/160x120": { + "ok": true, + "within": "ok" + }, + "420p8/f0/1920x1080": { + "ok": true, + "within": "ok" + }, + "420p8/f0/352x240": { + "ok": true, + "within": "ok" + }, + "420p8/f0/64x48": { + "ok": true, + "within": "ok" + }, + "420p8/f0/718x480": { + "ok": true, + "within": "ok" + }, + "420p8/f0/720x486": { + "ok": true, + "within": "ok" + }, + "420p8/f0/720x576": { + "ok": true, + "within": "ok" + }, + "420p8/f1/160x120": { + "ok": true, + "within": "ok" + }, + "420p8/f2/160x120": { + "ok": true, + "within": "ok" + }, + "420p8/f2/1920x1080": { + "ok": true, + "within": "ok" + }, + "420p8/f2/352x240": { + "ok": true, + "within": "ok" + }, + "420p8/f2/64x48": { + "ok": true, + "within": "ok" + }, + "420p8/f2/718x480": { + "ok": true, + "within": "ok" + }, + "420p8/f2/720x486": { + "ok": true, + "within": "ok" + }, + "420p8/f2/720x576": { + "ok": true, + "within": "ok" + }, + "420p9/f0/160x120": { + "ok": true + }, + "422p10/f0/160x120": { + "ok": true, + "within": "ok" + }, + "422p10/f1/160x120": { + "ok": true, + "within": "ok" + }, + "422p10/f2/160x120": { + "ok": true, + "within": "ok" + }, + "422p12/f0/160x120": { + "ok": true, + "within": "ok" + }, + "422p12/f1/160x120": { + "ok": true, + "within": "ok" + }, + "422p12/f2/160x120": { + "ok": true, + "within": "ok" + }, + "422p16/f0/160x120": { + "ok": true, + "within": "ok" + }, + "422p16/f0/1920x1080": { + "ok": true, + "within": "ok" + }, + "422p16/f0/352x240": { + "ok": true, + "within": "ok" + }, + "422p16/f0/64x48": { + "ok": true, + "within": "ok" + }, + "422p16/f0/718x480": { + "ok": true, + "within": "ok" + }, + "422p16/f0/720x486": { + "ok": true, + "within": "ok" + }, + "422p16/f0/720x576": { + "ok": true, + "within": "ok" + }, + "422p16/f1/160x120": { + "ok": true, + "within": "ok" + }, + "422p16/f2/160x120": { + "ok": true, + "within": "ok" + }, + "422p16/f2/1920x1080": { + "ok": true, + "within": "ok" + }, + "422p16/f2/352x240": { + "ok": true, + "within": "ok" + }, + "422p16/f2/64x48": { + "ok": true, + "within": "ok" + }, + "422p16/f2/718x480": { + "ok": true, + "within": "ok" + }, + "422p16/f2/720x486": { + "ok": true, + "within": "ok" + }, + "422p16/f2/720x576": { + "ok": true, + "within": "ok" + }, + "422p8/f0/160x120": { + "ok": true, + "within": "ok" + }, + "422p8/f0/1920x1080": { + "ok": true, + "within": "ok" + }, + "422p8/f0/352x240": { + "ok": true, + "within": "ok" + }, + "422p8/f0/64x48": { + "ok": true, + "within": "ok" + }, + "422p8/f0/718x480": { + "ok": true, + "within": "ok" + }, + "422p8/f0/720x486": { + "ok": true, + "within": "ok" + }, + "422p8/f0/720x576": { + "ok": true, + "within": "ok" + }, + "422p8/f1/160x120": { + "ok": true, + "within": "ok" + }, + "422p8/f2/160x120": { + "ok": true, + "within": "ok" + }, + "422p8/f2/1920x1080": { + "ok": true, + "within": "ok" + }, + "422p8/f2/352x240": { + "ok": true, + "within": "ok" + }, + "422p8/f2/64x48": { + "ok": true, + "within": "ok" + }, + "422p8/f2/718x480": { + "ok": true, + "within": "ok" + }, + "422p8/f2/720x486": { + "ok": true, + "within": "ok" + }, + "422p8/f2/720x576": { + "ok": true, + "within": "ok" + }, + "444p10/f0/160x120": { + "ok": true, + "within": "ok" + }, + "444p10/f1/160x120": { + "ok": true, + "within": "ok" + }, + "444p10/f2/160x120": { + "ok": true, + "within": "ok" + }, + "444p12/f0/160x120": { + "ok": true, + "within": "ok" + }, + "444p12/f1/160x120": { + "ok": true, + "within": "ok" + }, + "444p12/f2/160x120": { + "ok": true, + "within": "ok" + }, + "444p16/f0/160x120": { + "ok": true, + "within": "ok" + }, + "444p16/f0/1920x1080": { + "ok": true, + "within": "ok" + }, + "444p16/f0/352x240": { + "ok": true, + "within": "ok" + }, + "444p16/f0/64x48": { + "ok": true, + "within": "ok" + }, + "444p16/f0/718x480": { + "ok": true, + "within": "ok" + }, + "444p16/f0/720x486": { + "ok": true, + "within": "ok" + }, + "444p16/f0/720x576": { + "ok": true, + "within": "ok" + }, + "444p16/f1/160x120": { + "ok": true, + "within": "ok" + }, + "444p16/f2/160x120": { + "ok": true, + "within": "ok" + }, + "444p16/f2/1920x1080": { + "ok": true, + "within": "ok" + }, + "444p16/f2/352x240": { + "ok": true, + "within": "ok" + }, + "444p16/f2/64x48": { + "ok": true, + "within": "ok" + }, + "444p16/f2/718x480": { + "ok": true, + "within": "ok" + }, + "444p16/f2/720x486": { + "ok": true, + "within": "ok" + }, + "444p16/f2/720x576": { + "ok": true, + "within": "ok" + }, + "444p8/f0/160x120": { + "ok": true, + "within": "ok" + }, + "444p8/f0/1920x1080": { + "ok": true, + "within": "ok" + }, + "444p8/f0/352x240": { + "ok": true, + "within": "ok" + }, + "444p8/f0/64x48": { + "ok": true, + "within": "ok" + }, + "444p8/f0/718x480": { + "ok": true, + "within": "ok" + }, + "444p8/f0/720x486": { + "ok": true, + "within": "ok" + }, + "444p8/f0/720x576": { + "ok": true, + "within": "ok" + }, + "444p8/f1/160x120": { + "ok": true, + "within": "ok" + }, + "444p8/f2/160x120": { + "ok": true, + "within": "ok" + }, + "444p8/f2/1920x1080": { + "ok": true, + "within": "ok" + }, + "444p8/f2/352x240": { + "ok": true, + "within": "ok" + }, + "444p8/f2/64x48": { + "ok": true, + "within": "ok" + }, + "444p8/f2/718x480": { + "ok": true, + "within": "ok" + }, + "444p8/f2/720x486": { + "ok": true, + "within": "ok" + }, + "444p8/f2/720x576": { + "ok": true, + "within": "ok" + } + }, + "summary": { + "depths": [ + 8, + 10, + 12, + 16 + ], + "field_based": true, + "sizes_refused": [], + "subsampling": [ + "420", + "422", + "444" + ], + "within_refused": [] + } + }, + "pass.DeScratch": { + "cells": { + "411p8/f0/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "411p8/f2/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "420p10/f0/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p10/f1/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p10/f2/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p12/f0/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p12/f1/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p12/f2/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p14/f0/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f0/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f0/1920x1080": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f0/352x240": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f0/64x48": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f0/718x480": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f0/720x486": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f0/720x576": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f1/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f2/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f2/1920x1080": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f2/352x240": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f2/64x48": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f2/718x480": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f2/720x486": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p16/f2/720x576": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "420p8/f0/160x120": { + "ok": true + }, + "420p8/f0/1920x1080": { + "ok": true + }, + "420p8/f0/352x240": { + "ok": true + }, + "420p8/f0/64x48": { + "ok": true + }, + "420p8/f0/718x480": { + "ok": true + }, + "420p8/f0/720x486": { + "ok": true + }, + "420p8/f0/720x576": { + "ok": true + }, + "420p8/f1/160x120": { + "ok": true + }, + "420p8/f2/160x120": { + "ok": true + }, + "420p8/f2/1920x1080": { + "ok": true + }, + "420p8/f2/352x240": { + "ok": true + }, + "420p8/f2/64x48": { + "ok": true + }, + "420p8/f2/718x480": { + "ok": true + }, + "420p8/f2/720x486": { + "ok": true + }, + "420p8/f2/720x576": { + "ok": true + }, + "420p9/f0/160x120": { + "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", + "ok": false + }, + "422p10/f0/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p10/f1/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p10/f2/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p12/f0/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p12/f1/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p12/f2/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f0/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f0/1920x1080": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f0/352x240": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f0/64x48": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f0/718x480": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f0/720x486": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f0/720x576": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f1/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f2/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f2/1920x1080": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f2/352x240": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f2/64x48": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f2/718x480": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f2/720x486": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p16/f2/720x576": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "422p8/f0/160x120": { + "ok": true + }, + "422p8/f0/1920x1080": { + "ok": true + }, + "422p8/f0/352x240": { + "ok": true + }, + "422p8/f0/64x48": { + "ok": true + }, + "422p8/f0/718x480": { + "ok": true + }, + "422p8/f0/720x486": { + "ok": true + }, + "422p8/f0/720x576": { + "ok": true + }, + "422p8/f1/160x120": { + "ok": true + }, + "422p8/f2/160x120": { + "ok": true + }, + "422p8/f2/1920x1080": { + "ok": true + }, + "422p8/f2/352x240": { + "ok": true + }, + "422p8/f2/64x48": { + "ok": true + }, + "422p8/f2/718x480": { + "ok": true + }, + "422p8/f2/720x486": { + "ok": true + }, + "422p8/f2/720x576": { + "ok": true + }, + "444p10/f0/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p10/f1/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p10/f2/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p12/f0/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p12/f1/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p12/f2/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f0/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f0/1920x1080": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f0/352x240": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f0/64x48": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f0/718x480": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f0/720x486": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f0/720x576": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f1/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f2/160x120": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f2/1920x1080": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f2/352x240": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f2/64x48": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f2/718x480": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f2/720x486": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p16/f2/720x576": { + "error": "Descratch: Video must be YV12, YV16 or YV24!", + "ok": false + }, + "444p8/f0/160x120": { + "ok": true + }, + "444p8/f0/1920x1080": { + "ok": true + }, "444p8/f0/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f0/720x576": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f1/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/160x120": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/1920x1080": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/352x240": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/64x48": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/718x480": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/720x486": { - "ok": true, - "within": "ok" + "ok": true }, "444p8/f2/720x576": { - "ok": true, - "within": "ok" + "ok": true } }, "summary": { "depths": [ - 8, - 10, - 12, - 16 + 8 ], "field_based": true, "sizes_refused": [], @@ -20481,107 +21325,82 @@ "420", "422", "444" - ], - "within_refused": [] + ] } }, - "pass.DeScratch": { + "pass.QTGMC[InputType=2]": { "cells": { "411p8/f0/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "411p8/f2/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "420p10/f0/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p10/f1/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p10/f2/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p12/f0/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p12/f1/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p12/f2/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p14/f0/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f0/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f0/1920x1080": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f0/352x240": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f0/64x48": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f0/718x480": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f0/720x486": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f0/720x576": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f1/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f2/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f2/1920x1080": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f2/352x240": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f2/64x48": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f2/718x480": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f2/720x486": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p16/f2/720x576": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "420p8/f0/160x120": { "ok": true @@ -20629,92 +21448,70 @@ "ok": true }, "420p9/f0/160x120": { - "error": "ShufflePlanes: plane 1 and 2 do not have binary compatible storage", - "ok": false + "ok": true }, "422p10/f0/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p10/f1/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p10/f2/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p12/f0/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p12/f1/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p12/f2/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f0/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f0/1920x1080": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f0/352x240": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f0/64x48": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f0/718x480": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f0/720x486": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f0/720x576": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f1/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f2/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f2/1920x1080": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f2/352x240": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f2/64x48": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f2/718x480": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f2/720x486": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p16/f2/720x576": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "422p8/f0/160x120": { "ok": true @@ -20762,88 +21559,67 @@ "ok": true }, "444p10/f0/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p10/f1/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p10/f2/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p12/f0/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p12/f1/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p12/f2/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f0/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f0/1920x1080": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f0/352x240": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f0/64x48": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f0/718x480": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f0/720x486": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f0/720x576": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f1/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f2/160x120": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f2/1920x1080": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f2/352x240": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f2/64x48": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f2/718x480": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f2/720x486": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p16/f2/720x576": { - "error": "Descratch: Video must be YV12, YV16 or YV24!", - "ok": false + "ok": true }, "444p8/f0/160x120": { "ok": true @@ -20893,7 +21669,10 @@ }, "summary": { "depths": [ - 8 + 8, + 10, + 12, + 16 ], "field_based": true, "sizes_refused": [], diff --git a/app/assets/filters/core/deinterlace.json b/app/assets/filters/core/deinterlace.json index e9665ba0..8698c43e 100644 --- a/app/assets/filters/core/deinterlace.json +++ b/app/assets/filters/core/deinterlace.json @@ -223,7 +223,7 @@ }, "ui": { "label": "Input Type", - "description": "0: Interlaced | 1: Telecined (3:2 pulldown) | 2: Progressive | 3: Double-rate progressive", + "description": "0: Interlaced (the default) | 1: Progressive: repairs shimmer and aliasing without deinterlacing | 2: Progressive with combing left by a bad deinterlace: rebuilt from half the fields where it moves | 3: As 2, from the other half of the fields", "widget": "slider", "visibleWhen": { "method": [ diff --git a/app/test/format_sweep_cases_test.dart b/app/test/format_sweep_cases_test.dart index 9919d570..f0f37654 100644 --- a/app/test/format_sweep_cases_test.dart +++ b/app/test/format_sweep_cases_test.dart @@ -34,7 +34,7 @@ import 'support/format_sweep.dart'; /// disappears fails here; adding a method or sub-feature means changing one /// number (and, if it is inert on the fixture, an actuation override). const expectedVariantCounts = { - 'deinterlace': 15, // 3 methods + QTGMC's 11 presets + Bwdif with NNEDI3 (task #81) + 'deinterlace': 17, // 3 methods + QTGMC's 11 presets + Bwdif with NNEDI3 (task #81) + InputType 2/3 (task #89) 'unblend': 1, 'descratch': 1, 'spotless': 2, @@ -311,8 +311,14 @@ void main() { expect(params, contains(key), reason: '${v.filterId}: no parameter $key'); } } - final id = '${v.filterId}/${v.values['method']}+' - '${(v.values.entries.where((e) => e.key != 'method').toList()..sort((a, b) => a.key.compareTo(b.key))).map((e) => '${e.key}=${e.value}').join('+')}'; + // An enum axis's value reads `[param=v]` after the method (task #89). + final axes = enumAxes.where((a) => a.filterId == v.filterId).map((a) => a.param).toSet(); + final axisPart = v.values.entries + .where((e) => axes.contains(e.key)) + .map((e) => '[${e.key}=${e.value}]') + .join(); + final id = '${v.filterId}/${v.values['method']}$axisPart+' + '${(v.values.entries.where((e) => e.key != 'method' && !axes.contains(e.key)).toList()..sort((a, b) => a.key.compareTo(b.key))).map((e) => '${e.key}=${e.value}').join('+')}'; expect(ids, contains(id), reason: 'option variant $id was not generated (a duplicate pipeline?)'); expect(v.reason, isNotEmpty); } diff --git a/app/test/integration_high_bit_depth_filters_test.dart b/app/test/integration_high_bit_depth_filters_test.dart index 0412d9c4..c39552ba 100644 --- a/app/test/integration_high_bit_depth_filters_test.dart +++ b/app/test/integration_high_bit_depth_filters_test.dart @@ -638,6 +638,35 @@ List<_Pass> _passes() => [ ), tolerance: 3.0, ), + // InputType 2 at Slow runs MVTools' Mask (ProgSADMask), which refuses + // a clip above 8 bits: every 10-bit job failed until task #89 ran it on + // an 8-bit stand-in (0.68 here, as plain QTGMC Fast's 0.70; High + // Precision failed at 8 bits too), docs/reports/task-89-qtgmc-mask-high-bit-depth. + _Pass( + 'deinterlace_qtgmc_input_type_2', + _only( + deinterlace: const QTGMCParameters( + enabled: true, + preset: QTGMCPreset.slow, + tff: true, + inputType: 2, + ), + ), + tolerance: 3.0, + ), + _Pass( + 'deinterlace_qtgmc_input_type_3_high_precision', + _only( + deinterlace: const QTGMCParameters( + enabled: true, + preset: QTGMCPreset.medium, + tff: true, + inputType: 3, + highPrecision: true, + ), + ), + tolerance: 3.0, + ), _Pass( 'deinterlace_qtgmc_chroma_upsample', _only( diff --git a/app/test/integration_qtgmc_parameters_test.dart b/app/test/integration_qtgmc_parameters_test.dart index 287df78f..32931ea0 100644 --- a/app/test/integration_qtgmc_parameters_test.dart +++ b/app/test/integration_qtgmc_parameters_test.dart @@ -751,5 +751,49 @@ void main() { expect(script, contains("_pf.mvtools_blocks(clip, _deinterlace_qtgmc, label='Deinterlace')")); } }, timeout: const Timeout(Duration(minutes: 2))); + + test('InputType 2/3 run MVTools Mask on an 8-bit stand-in (task #89)', () async { + // Mask refuses a clip above 8 bits, so every 10-16-bit job (and every + // High Precision one) at InputType 2/3, Placebo..Medium failed. Those + // jobs, and only those, wrap the QTGMC call so havsfunc's Mask runs on + // an 8-bit stand-in (plugin_formats.havsfunc_mask_any_depth). + Future scriptFor(int inputType, QTGMCPreset preset) { + final params = QTGMCParameters( + enabled: true, + method: DeinterlaceMethod.qtgmc, + preset: preset, + tff: true, + inputType: inputType, + highPrecision: true, + ); + return generateScriptViaWorker(VideoJob( + id: const Uuid().v4(), + inputPath: TestConfig.inputFile, + outputPath: '${TestConfig.outputDir}/deint_mask_any_depth_$inputType.mkv', + qtgmcParameters: params, + processingPipeline: ProcessingPipeline(deinterlace: params), + encodingSettings: const EncodingSettings( + codec: VideoCodec.h264, + container: ContainerFormat.mkv, + audioMode: AudioMode.none, + ), + startFrame: 10, + endFrame: 30, + )); + } + + const wrap = '_deinterlace_qtgmc = _pf.havsfunc_mask_any_depth(haf, _deinterlace_qtgmc)'; + for (final (inputType, preset) in [(2, QTGMCPreset.slower), (3, QTGMCPreset.medium)]) { + final script = await scriptFor(inputType, preset); + expect(script, contains('InputType=$inputType,')); + expect(script, contains('\n$wrap\n'), + reason: 'InputType $inputType at ${preset.name} runs Mask: it must use the stand-in'); + } + for (final (inputType, preset) in [(0, QTGMCPreset.slower), (2, QTGMCPreset.fast)]) { + final script = await scriptFor(inputType, preset); + expect(script, isNot(contains('havsfunc_mask_any_depth')), + reason: 'InputType $inputType at ${preset.name} runs no Mask: script unchanged'); + } + }, timeout: const Timeout(Duration(minutes: 2))); }); } diff --git a/app/test/plugin_format_contracts_test.dart b/app/test/plugin_format_contracts_test.dart index 5f40ebd8..5149386b 100644 --- a/app/test/plugin_format_contracts_test.dart +++ b/app/test/plugin_format_contracts_test.dart @@ -409,6 +409,114 @@ for fmt in (vs.YUV420P8, vs.YUV444P8): print(json.dumps(problems)) '''; +// Task #89: MVTools' Mask refuses a clip above 8 bits, so havsfunc's QTGMC +// failed every 10-16-bit job at InputType 2/3, Placebo..Medium (ProgSADMask). +// plugin_formats.havsfunc_mask_any_depth runs that Mask on an 8-bit stand-in +// with ml x 2^(bits - 8). Checked here against the bundle: on a deep picture +// that is an 8-bit one shifted, the stand-in's mask is the 8-bit mask on the +// deep scale, sample for sample; QTGMC through the helper runs at every +// depth while the bare call still refuses (when MVTools accepts deep clips, +// this fails and the helper can go); an 8-bit job through the helper is the +// plain call's picture; havsfunc's core is restored after the call, an +// error included (docs/reports/task-89-qtgmc-mask-high-bit-depth). +const _maskAnyDepthCheck = r''' +import json, sys +import vapoursynth as vs +core = vs.core +sys.path.insert(0, sys.argv[1]) +import plugin_formats as pf +import havsfunc as haf + +problems = [] +def check(cond, msg): + if not cond: + problems.append(msg) + +def max_diff(a, b): + # Largest |a - b| over every plane and frame. + d = core.std.Expr([a, b], 'x y - abs') + worst = 0 + for p in range(a.format.num_planes): + s = core.std.PlaneStats(d, plane=p) + for n in range(a.num_frames): + worst = max(worst, s.get_frame(n).props['PlaneStatsMax']) + return worst + +# A textured picture panning 3 px right and 1 down a frame: real vectors and +# SADs, and no frame near MVTools' scene-change thresholds (grain on a flat +# picture put one there, which deep vectors decided differently even for an +# 8-bit clip: MVTools' own depth rounding, not the stand-in's). +tex = core.std.BlankClip(width=180, height=120, format=vs.YUV444P8, length=1, color=[128, 128, 128]) +tex = core.std.BoxBlur(core.grain.Add(tex, var=2500, uvar=400, constant=True, seed=1), hradius=1, vradius=1) +src8 = core.std.Splice([core.std.CropAbs(tex, 128, 96, left=3 * n, top=n) for n in range(6)]) +src8 = core.resize.Bicubic(src8, format=vs.YUV422P8) +base = core.resize.Point(src8, format=vs.YUV444P16) + +# pel=1: each SAD of the shifted picture is then exactly 2^(bits - 8) times +# the 8-bit one. With pel=2 the half-pel planes round at each depth, so the +# deep SAD differs (up to 10 mask levels here) as it would for a native deep +# Mask too: that is MVTools' interpolation, not the stand-in. +def vectors(c): + return core.mv.Analyse(core.mv.Super(c, pel=1), isb=True, blksize=16, overlap=8) + +# The stand-in's mask on a picture that is an 8-bit one shifted (limited range, +# Point: an exact x 2^(bits - 8)) is the 8-bit mask put on the deep scale. +v8 = vectors(src8) +for kind in (0, 1, 3): + m8 = core.mv.Mask(src8, v8, kind=kind, ml=10) + check(pf.mvtools_mask_any_depth(src8, v8, kind=kind, ml=10).format.id == m8.format.id, + 'an 8-bit clip must reach Mask unchanged') + for bits in (10, 16): + deep = core.resize.Point(src8, format=src8.format.replace(bits_per_sample=bits).id) + got = pf.mvtools_mask_any_depth(deep, vectors(deep), kind=kind, ml=10) + want = core.std.Expr(m8, 'x %d * 255 /' % ((1 << bits) - 1), format=got.format.id) + check(got.format.bits_per_sample == bits, 'kind %d at %d bits: mask came back %s' + % (kind, bits, got.format.name)) + diff = max_diff(got, want) + check(diff == 0, 'kind %d at %d bits: the stand-in mask is %d off the 8-bit mask' + % (kind, bits, diff)) + if kind == 1: + avg = sum(core.std.PlaneStats(m8).get_frame(n).props['PlaneStatsAverage'] for n in range(m8.num_frames)) / m8.num_frames + check(0.02 < avg < 0.98, 'the SAD mask is flat (%.3f): the picture no longer tests it' % avg) + +def qtgmc(c, it=2): + return pf.mvtools_blocks( + c, lambda x: haf.QTGMC(x, Preset='Medium', InputType=it, TFF=True), + min_cols=pf.mvtools_mask_cols(c.width, c.height, 16, 8)) + +wrapped = pf.havsfunc_mask_any_depth(haf, qtgmc) +for fmt in (vs.YUV420P10, vs.YUV422P10, vs.YUV420P16): + c = core.resize.Bicubic(base, format=fmt) + try: + out = wrapped(c) + check(out.format.id == c.format.id, '%s: QTGMC through the helper came back %s' + % (c.format.name, out.format.name)) + for n in range(out.num_frames): + out.get_frame(n) + except vs.Error as e: + problems.append('%s: QTGMC InputType 2 through the helper failed: %s' % (c.format.name, e)) + try: + bare = qtgmc(c) + bare.get_frame(0) + problems.append('%s: the bare QTGMC InputType 2 call now runs; MVTools may accept deep ' + 'clips, so havsfunc_mask_any_depth may be unneeded (task #89)' % c.format.name) + except vs.Error as e: + check('Mask' in str(e), '%s: the bare call failed, but not on Mask: %s' % (c.format.name, e)) + +saved = haf.core +check(max_diff(pf.havsfunc_mask_any_depth(haf, lambda c: qtgmc(c, 3))(src8), qtgmc(src8, 3)) == 0, + '8-bit QTGMC InputType 3 through the helper differs from the plain call') +check(haf.core is saved, "havsfunc's core was not restored") +def fails(c): + raise RuntimeError('boom') +try: + pf.havsfunc_mask_any_depth(haf, fails)(src8) +except RuntimeError: + pass +check(haf.core is saved, "havsfunc's core was not restored after an error") +print(json.dumps(problems)) +'''; + // LUTDeCrawl and LUTDeRainbow used to AND their masks through eight // Lut2(function=lambda x, y: x & y) tables, a million Python calls each at 10 // bits: 80% of the quick probe, and the full probe never finished on macOS x64 @@ -661,6 +769,11 @@ print(json.dumps({'contracts': {k: dict(v._asdict()) for k, v in pf.CONTRACTS.it expect(problems, isEmpty, reason: problems.join('\n')); }); + test('QTGMC InputType 2/3 runs MVTools Mask at every depth on an 8-bit stand-in (task #89)', () async { + final problems = await _pythonJson(_maskAnyDepthCheck) as List; + expect(problems, isEmpty, reason: problems.join('\n')); + }, timeout: const Timeout(Duration(minutes: 3))); + test('run_within keeps every sample the plugin leaves alone, and refuses clearly', () async { final problems = await _pythonJson(_runWithinCheck) as List; expect(problems, isEmpty, reason: problems.join('\n')); diff --git a/app/test/support/format_sweep.dart b/app/test/support/format_sweep.dart index fcddbb55..cfe9621d 100644 --- a/app/test/support/format_sweep.dart +++ b/app/test/support/format_sweep.dart @@ -159,6 +159,14 @@ const optionVariants = [ reason: 'NNEDI3 as Bwdif\'s interpolator: znedi3 (x86) refuses a 4:2:0 ' 'frame 2 mod 4 high, which _nnedi3() pads (task #81); the ' 'heightTwoMod4 rows keep it fixed'), + // InputType is a slider, not an enum, so no axis reaches it. + OptionVariant('deinterlace', {'method': 'qtgmc', 'inputType': 2}, + reason: 'InputType 2 at the default preset (Slower) runs MVTools\' Mask ' + '(ProgSADMask), 8-bit only: it failed every deeper row until the pass ran ' + 'it on an 8-bit stand-in (task #89); the padding for its faults is #79\'s'), + OptionVariant('deinterlace', {'method': 'qtgmc', 'inputType': 3, 'preset': 'Medium'}, + reason: 'InputType 3 at Medium, the fastest preset that runs the Mask ' + '(task #89)'), ]; /// A frame size's own numbers, for overrides that must scale with it. diff --git a/docs/ENGINEERING_NOTES.md b/docs/ENGINEERING_NOTES.md index 7f9fa322..3c2b4c03 100644 --- a/docs/ENGINEERING_NOTES.md +++ b/docs/ENGINEERING_NOTES.md @@ -6300,3 +6300,50 @@ rc2 passed. clone. Every other unpinned source clone is task #110. Report: [docs/reports/task-103-linux-zimg-pin](reports/task-103-linux-zimg-pin/index.html). + +### QTGMC InputType 2/3 at more than 8 bits: Mask on an 8-bit stand-in (task #89, 2026-11-22) + +havsfunc's QTGMC runs `core.mv.Mask(srchClip, bVec1, kind=1, ml=ProgSADMask)` +on InputType 2/3 whenever ProgSADMask > 0: its default at Placebo, Very Slow, +Slower (the app's default), Slow and Medium. MVTools' Mask refuses every clip +above 8 bits (master and v24), so all those 10/12/16-bit jobs failed, and so +did every 8-bit one with High Precision. Task #79 found it. + +- **Why a stand-in is exact.** Kinds 0–4 read only the clip's format and size. + Kind 1 shifts each SAD (Analyse's, at the vectors' depth) by bits − 8, read + from the *clip*, while the scene-change thresholds scale by the *vectors'* + depth. So an 8-bit BlankClip of the clip's size with `ml × 2^(bits−8)` gives + the mask a native deep Mask would, apart from MVTools' truncation of the + shift (at most one level). The mask then goes to the clip's scale + (`x·peak/255`). +- **Fix.** `plugin_formats.havsfunc_mask_any_depth(haf, fn)` points + havsfunc's module `core` at a proxy for the duration of the QTGMC call + (restored after it, error or not), whose `mv.Mask` is + `mvtools_mask_any_depth`. The template rebinds `_deinterlace_qtgmc` through + it in a `{{#QTGMC_MASK_ANY_DEPTH}}` block, emitted only for + `prog_sad_mask_blocks()` jobs, so other scripts are unchanged. No deps + release: the user chose this over a havsfunc patch 9 (which would have + needed 1.18.0-rc4). +- **Result** (pal-sd-25.mov with synthetic low bits, rc3, M1 Pro). Output + 10-bit vs 8-bit: 0.16 levels at Slow and Medium, 0.07 at Placebo, each below + the same comparison with the Mask off (0.28 / 0.12). That residual is + QTGMC's own rounding at depth; its srchClip moves the mask about one level + even on an exact ×4 picture. 8-bit through the helper equals plain havsfunc + (0 / 0). The factor sweep's minimum is ×4 at 10 bits and ×256 at 16. + Forcing ProgSADMask=0 instead would move the picture 1.4–2.8 levels. +- **Corrections.** "Bit-identical Mask" holds only where every deep SAD is + exactly 2^(bits−8) times the 8-bit one (pel 1). With pel 2, Super's + half-pel planes round per depth, so on a grain texture the mask differed by + up to 10 levels with identical vectors, as a native deep Mask would. Grain + on a flat picture also put a frame at the scene-change threshold, where + 16-bit vectors decided differently. Both are MVTools rounding at depth, not + the stand-in. +- **Placebo on 1.16.0** didn't repeat itself (plain havsfunc twice: max 7 + levels); on rc3 it does. That is consistent with FFT3DFilter (task #62). +- **Guards.** test_269; the contracts test's `task #89` group; probe calls + `havsfunc.QTGMC[InputType=2]` (HANDLED) and `pass.QTGMC[InputType=2]`; two + format-sweep variants; heavy 8-vs-10 parity. Also fixed: the Input Type + description in the Deinterlace panel (1 was "Telecined", 2–3 "Progressive" / + "Double-rate"). + +Report: [docs/reports/task-89-qtgmc-mask-high-bit-depth](reports/task-89-qtgmc-mask-high-bit-depth/index.html). diff --git a/docs/reports/README.md b/docs/reports/README.md index b4f3d375..a6e1b363 100644 --- a/docs/reports/README.md +++ b/docs/reports/README.md @@ -66,6 +66,7 @@ to it. | Date | Report | Outcome | |---|---|---| +| 2026-11-22 | [Task #89: QTGMC InputType 2/3 at more than 8 bits](task-89-qtgmc-mask-high-bit-depth/index.html) | Fixed in the template: havsfunc's QTGMC runs MVTools' `mv.Mask` (ProgSADMask) on InputType 2/3 at Placebo–Medium, and Mask refuses any clip above 8 bits, so every 10–16-bit job (and every High Precision one) failed. `havsfunc_mask_any_depth` runs it on an 8-bit stand-in with `ml × 2^(bits−8)`: kind 1 never reads the clip's pixels, and MVTools takes the SAD shift from the clip but the scene-change thresholds from the vectors. 10-bit vs 8-bit output 0.16 levels (Slow/Medium), 0.07 (Placebo), below the Mask-off control (0.28 / 0.12); 8-bit unchanged (0 / 0); the factor sweep's minimum is ×4 at 10 bits and ×256 at 16. A correction is kept visible: the mask is exact only where SADs scale exactly (pel 1; pel 2's interpolation rounds per depth). macOS arm64 only, synthetic low bits | | 2026-11-22 | [Task #100: 4:4:0 sources decoded as 4:4:4](task-100-440-sources/index.html) | Fixed in the worker: the pipe-format classifier put 4:4:0 (some JPEG/MJPEG cameras) with 4:2:2, judging one axis, so the decoder halved its horizontal chroma (1-px colour columns: mean 70 levels off, the columns gone; testsrc2 1.78 / 21 against a one-step 4:4:4 rendering). It is piped as 4:4:4 now: 0 / 0, an encode bit-identical to ffmpeg's own 4:4:4 decode, and an odd-width 4:4:0 source runs. Output change: "Match source" makes 4:4:4 from such a source (was 4:2:2). A property test checks both axes for every code. Synthetic fixtures, macOS arm64 | | 2026-11-22 | [Task #103: Linux VapourSynth linked zimg master at build time](task-103-linux-zimg-pin/index.html) | Fixed in the deps (1.18.0-rc3 Linux assets replaced): R78's `subprojects/zimg.wrap` (`revision = HEAD`) is what Linux VapourSynth links, because its `meson setup` never receives `PKG_CONFIG_PATH`. zimg master's `e2e43d09` (graphengine update) made every resize abort ("double free or corruption", 617 of 6861 sweep rows). The wrap is pinned to 67e06032 and `libvapoursynth.so.4` is byte-identical to rc2's again. A correction is kept visible: pinning the script's own zimg clone first changed nothing (that library is unused). Graphengine cause not bisected (task #109); arm64 built but not tested | | 2026-11-22 | [Task #98: per-thread buffer maps in DFTTest, LGhost, CTMF, TCanny, EEDI3m](task-98-per-thread-buffer-maps/index.html) | Fixed in the deps (1.18.0-rc3): five plugins fill or check per-thread buffer maps with no lock and abort vspipe (`unordered_map::at`, 0xC0000409 on Windows); DFTTest's is the nightly knlmeanscl flake. Each is built from a pinned commit with our locking patch on every platform: 14-20 of 20 1000-instance graphs aborted (EEDI3m 0 of 10, not reproduced) unpatched, none patched; output identical on macOS arm64 and x64. M1 only; Windows DLLs built but run only in CI | diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/factor_sweep_macos-arm64_1.18.0-rc3.txt b/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/factor_sweep_macos-arm64_1.18.0-rc3.txt new file mode 100644 index 00000000..98ab7094 --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/factor_sweep_macos-arm64_1.18.0-rc3.txt @@ -0,0 +1,20 @@ +# factor_sweep.py, deps 1.18.0-rc3, macos-arm64 +10-bit x4 picture factor 1: mask (11.173, 255), output (0.213, 47) +10-bit x4 picture factor 2: mask (6.316, 255), output (0.187, 47) +10-bit x4 picture factor 3: mask (3.139, 255), output (0.171, 47) +10-bit x4 picture factor 4: mask (0.979, 255), output (0.164, 47) +10-bit x4 picture factor 5: mask (2.588, 255), output (0.17, 47) +10-bit x4 picture factor 8: mask (7.649, 255), output (0.199, 47) +10-bit x4 picture factor 16: mask (17.578, 255), output (0.28, 63) +real 10-bit factor 2: mask (6.298, 255), output (0.177, 47) +real 10-bit factor 3: mask (3.118, 255), output (0.161, 47) +real 10-bit factor 4: mask (0.987, 255), output (0.154, 47) +real 10-bit factor 5: mask (2.592, 255), output (0.159, 47) +real 10-bit factor 8: mask (7.652, 255), output (0.188, 47) +16-bit x256 picture factor 64: mask (11.223, 255), output (0.222, 47) +16-bit x256 picture factor 128: mask (6.353, 255), output (0.196, 47) +16-bit x256 picture factor 192: mask (3.169, 255), output (0.18, 47) +16-bit x256 picture factor 256: mask (0.985, 255), output (0.173, 47) +16-bit x256 picture factor 320: mask (2.568, 255), output (0.179, 47) +16-bit x256 picture factor 512: mask (7.625, 255), output (0.207, 47) +16-bit x256 picture factor 1024: mask (17.55, 255), output (0.287, 63) diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/mask_depths_macos-arm64_1.18.0-rc3.txt b/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/mask_depths_macos-arm64_1.18.0-rc3.txt new file mode 100644 index 00000000..1096c4c3 --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/mask_depths_macos-arm64_1.18.0-rc3.txt @@ -0,0 +1,24 @@ +YUV420P8 2 Slow ok +YUV420P8 2 Medium ok +YUV420P8 2 Fast ok +YUV420P8 3 Slow ok +YUV420P8 3 Medium ok +YUV420P8 3 Fast ok +YUV420P10 2 Slow ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P10 2 Medium ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P10 2 Fast ok +YUV420P10 3 Slow ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P10 3 Medium ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P10 3 Fast ok +YUV422P10 2 Slow ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV422P10 2 Medium ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV422P10 2 Fast ok +YUV422P10 3 Slow ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV422P10 3 Medium ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV422P10 3 Fast ok +YUV420P16 2 Slow ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P16 2 Medium ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P16 2 Fast ok +YUV420P16 3 Slow ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P16 3 Medium ERR Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant d +YUV420P16 3 Fast ok diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/stand_in_macos-arm64_1.18.0-rc3.txt b/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/stand_in_macos-arm64_1.18.0-rc3.txt new file mode 100644 index 00000000..5c85e2a2 --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/data/stand_in_macos-arm64_1.18.0-rc3.txt @@ -0,0 +1,41 @@ +# stand_in.py, deps 1.18.0-rc3, macos-arm64 +real low bits (mean |10-bit - rounded 8-bit x4|, 10-bit levels): 0.468 +A pel=1 mask, 10-bit x4 picture through the stand-in vs native 8-bit: (0.0, 0) + pel=1 vectors, kind 0 mask from 10-bit vectors vs 8-bit vectors: (0.0, 0) + pel=1 vectors, kind 3 mask from 10-bit vectors vs 8-bit vectors: (0.0, 0) + pel=1 vectors, kind 4 mask from 10-bit vectors vs 8-bit vectors: (0.0, 0) +A pel=2 mask, 10-bit x4 picture through the stand-in vs native 8-bit: (0.0, 0) + pel=2 vectors, kind 0 mask from 10-bit vectors vs 8-bit vectors: (0.0, 0) + pel=2 vectors, kind 3 mask from 10-bit vectors vs 8-bit vectors: (0.0, 0) + pel=2 vectors, kind 4 mask from 10-bit vectors vs 8-bit vectors: (0.0, 0) +B IT=2 Slow 8-bit: helper vs plain (0.0, 0), plain twice (0.0, 0) + mask inside QTGMC: exact-10 vs 8 (0.979, 255), real-10 vs 8 (0.987, 255) + output: exact-10 vs 8 (0.164, 47) (Mask off: (0.28, 47)) | real-10 vs 8 (0.154, 47) (Mask off: (0.273, 47)) + Mask on vs off at 8 bits: (1.395, 55) | 28 s +B IT=2 Medium 8-bit: helper vs plain (0.0, 0), plain twice (0.0, 0) + mask inside QTGMC: exact-10 vs 8 (1.027, 255), real-10 vs 8 (1.034, 255) + output: exact-10 vs 8 (0.166, 45) (Mask off: (0.295, 47)) | real-10 vs 8 (0.156, 45) (Mask off: (0.285, 45)) + Mask on vs off at 8 bits: (1.62, 56) | 25 s +B IT=2 Placebo 8-bit: helper vs plain (0.0, 0), plain twice (0.0, 0) + mask inside QTGMC: exact-10 vs 8 (0.006, 45), real-10 vs 8 (0.006, 45) + output: exact-10 vs 8 (0.074, 9) (Mask off: (0.119, 9)) | real-10 vs 8 (0.079, 9) (Mask off: (0.152, 9)) + Mask on vs off at 8 bits: (2.784, 148) | 118 s +B IT=3 Slow 8-bit: helper vs plain (0.0, 0), plain twice (0.0, 0) + mask inside QTGMC: exact-10 vs 8 (0.979, 255), real-10 vs 8 (0.987, 255) + output: exact-10 vs 8 (0.165, 55) (Mask off: (0.281, 48)) | real-10 vs 8 (0.154, 55) (Mask off: (0.274, 41)) + Mask on vs off at 8 bits: (1.394, 58) | 53 s +B IT=3 Medium 8-bit: helper vs plain (0.0, 0), plain twice (0.0, 0) + mask inside QTGMC: exact-10 vs 8 (1.027, 255), real-10 vs 8 (1.034, 255) + output: exact-10 vs 8 (0.167, 58) (Mask off: (0.295, 43)) | real-10 vs 8 (0.157, 58) (Mask off: (0.285, 42)) + Mask on vs off at 8 bits: (1.619, 60) | 36 s +B IT=3 Placebo 8-bit: helper vs plain (0.0, 0), plain twice (0.0, 0) + mask inside QTGMC: exact-10 vs 8 (0.006, 45), real-10 vs 8 (0.006, 45) + output: exact-10 vs 8 (0.074, 9) (Mask off: (0.119, 9)) | real-10 vs 8 (0.079, 9) (Mask off: (0.152, 9)) + Mask on vs off at 8 bits: (2.781, 130) | 63 s +C YUV420P10 runs + plain havsfunc: Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8 +C YUV420P16 runs + plain havsfunc: Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8 +C YUV444P12 runs + plain havsfunc: Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8 +C High Precision (8 -> 16 -> 8, dithered) vs 8-bit: (0.182, 47) diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/index.html b/docs/reports/task-89-qtgmc-mask-high-bit-depth/index.html new file mode 100644 index 00000000..6b21c199 --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/index.html @@ -0,0 +1,181 @@ + + + + + +Task #89: QTGMC InputType 2/3 at more than 8 bits + + + +

Task #89: QTGMC InputType 2/3 at more than 8 bits (havsfunc's 8-bit-only mv.Mask)

+

2026-11-22 · deps 1.18.0-rc3 (also 1.16.0 in Plan) · macOS arm64 (M1 Pro) · found by task #79

+ +

Outcome

+

Fixed in the template, with no deps change. havsfunc's QTGMC runs +core.mv.Mask(srchClip, bVec1, kind=1, ml=ProgSADMask) when InputType is 2 or 3 +and ProgSADMask > 0, which it is by default at Placebo, Very Slow, Slower (the app's default), +Slow and Medium. MVTools' Mask refuses any clip above 8 bits, so every 10/12/16-bit job with those +settings failed, and so did every 8-bit one with High Precision (16-bit) on:

+
Mask: input clip must be GRAY8, YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant dimensions.
+

For exactly those jobs the Deinterlace pass now rebinds _deinterlace_qtgmc through +plugin_formats.havsfunc_mask_any_depth(haf, fn). While QTGMC builds its graph it points havsfunc's +module-level core at a proxy whose mv.Mask is mvtools_mask_any_depth. That function hands +Mask an 8-bit stand-in clip of the same size and subsampling, multiplies ml by 2bits−8 for kind 1, +and puts the 0–255 mask on the clip's full scale (x·peak/255). Other jobs' scripts are byte-for-byte +unchanged.

+

On the same picture at two depths, a 10-bit job now differs from the 8-bit one by 0.16 levels (Slow, +Medium) and 0.07 (Placebo). That is less than the same comparison with the Mask switched off (0.28 and 0.12), +which shows the stand-in adds no difference of its own. What remains is QTGMC rounding at the deeper depth.

+ +

Why a stand-in is exact (MVTools master ed90ee9 and v24 read the same here)

+
    +
  • Kinds 0–4 never read the clip's pixels. The clip supplies only the format and size. Only kind 5 copies + the source luma, and the helper passes kind 5 through unchanged.
  • +
  • The SAD shift is read from the clip. MakeSADMaskTime computes + sad = vector.sad >> (bitsPerSample − 8), with bitsPerSample taken from the clip's frame. + Analyse measured that SAD at the vectors' depth, which is srchClip's depth in havsfunc. Each block's mask value is + ByteNorm(sad, 4 / (ml·blkX·blkY), gamma), so on an 8-bit stand-in, ml × 2bits−8 gives the + same value. The one difference is that MVTools truncates sad >> k before dividing. That puts them at + most one mask level apart, and the stand-in is the more precise of the two.
  • +
  • The scene-change thresholds scale by the vectors' depth (scaleThSCD reads the analysis + data), so a stand-in doesn't move the scene-change decision. ysc is in 8-bit units either way.
  • +
  • The factor can't be read from the vectors without requesting a frame while the script is evaluated, which no + template may do (task #65). It comes from the clip, whose depth is the vectors' depth in havsfunc.
  • +
+ +

Measurements

+

Source: Tests/TestResources/pal-sd-25.mov, 40 frames of 720x576 4:2:2, measured on frames 6–29. The file is an +8-bit master in a 10-bit container (its low two bits sit 0.002 levels from zero). A light blur at 10 bits gives it +0.47 levels of real sub-8-bit content. Three clips are compared: 8-bit (that blur rounded), +exact-10 (the 8-bit clip ×4: the same picture at two depths) and real-10 (the blurred clip itself). +Differences are luma mean / max in 8-bit levels.

+

Limits: one clip with synthetic low bits, on one platform. A mean says nothing about where the differences +fall. The Mask-off control is what separates QTGMC's own depth rounding from the stand-in. x86 was not measured here; the +contracts test and format sweep run on every CI platform.

+ +

A. The Mask alone

+ + + + +
comparisonpel 1pel 2
kind 1 mask: the stand-in on exact-10 vs native Mask on 8-bit0 / 00 / 0
kind 0, 3, 4 masks from 10-bit vs 8-bit vectors (the vectors are identical)0 / 00 / 0
+

Correction, kept visible. The plan called the stand-in "bit-identical" on this evidence. That holds +only when every SAD of the deeper picture is exactly 2bits−8 times the 8-bit one. With pel 2, Super interpolates +the half-pel planes at each depth with its own rounding. On a synthetic grain texture the contracts test first used, the +kind 1 mask then differed by up to 10 mask levels at 10 and at 16 bits, with identical vectors. A native deep Mask would see +that same deep SAD, so this comes from MVTools' interpolation, not from the stand-in. The contracts test now checks exactness +at pel 1, where SADs scale exactly. A second fixture there, grain on a flat picture, put one frame at the scene-change +threshold, and the 16-bit vectors decided it differently even with an 8-bit clip. That too is MVTools rounding at depth, +and the fixture was replaced with a panning texture.

+ +

B. QTGMC end to end (stand_in.py)

+ + + + + + + + +
InputTypepreset8-bit: helper vs plain8-bit: plain run twicemask inside QTGMC, exact-10 vs 8output exact-10 vs 8same, Mask offoutput real-10 vs 8same, Mask offMask on vs off at 8 bits
2Slow0 / 00 / 00.979 / 2550.164 / 470.280 / 470.154 / 470.273 / 471.395 / 55
2Medium0 / 00 / 01.027 / 2550.166 / 450.295 / 470.156 / 450.285 / 451.620 / 56
2Placebo0 / 00 / 00.006 / 450.074 / 90.119 / 90.079 / 90.152 / 92.784 / 148
3Slow0 / 00 / 00.979 / 2550.165 / 550.281 / 480.154 / 550.274 / 411.394 / 58
3Medium0 / 00 / 01.027 / 2550.167 / 580.295 / 430.157 / 580.285 / 421.619 / 60
3Placebo0 / 00 / 00.006 / 450.074 / 90.119 / 90.079 / 90.152 / 92.781 / 130
+

The mask inside QTGMC differs by about one level at Slow and Medium, even on the exact-10 picture. QTGMC builds srchClip +itself (SrchClipPP 3: thresholds and blurs), and at 10 bits it rounds differently, which moves some vectors. The output +difference with the Mask on is smaller than with it off at every preset, so the stand-in adds nothing measurable on +top of QTGMC's own rounding. The last column shows what is at stake: forcing ProgSADMask=0 on deep clips, a +rejected alternative, changes the picture by 1.4–2.8 levels.

+

Placebo on 1.16.0 (Plan). On the deps 1.16.0 bundle, plain havsfunc at Placebo did not repeat +itself (run twice: 0.0014 mean, max 7). On 1.18.0-rc3 it does (0 / 0), and the helper equals plain havsfunc there too. That +fits the FFT3DFilter race fixed in deps 1.18.0 (task #62). The other 1.16.0 numbers equal these to the third decimal.

+ +

The ml factor (factor_sweep.py, InputType 2, Slow)

+ + + + + + + + + + + + + + + + + + + + + +
picturefactormask inside QTGMC vs 8-bit joboutput vs 8-bit job
10-bit, exact ×4111.1730.213
26.3160.187
33.1390.171
40.9790.164
52.5880.170
87.6490.199
1617.5780.280
real 10-bit26.2980.177
33.1180.161
40.9870.154
52.5920.159
87.6520.188
16-bit, exact ×2566411.2230.222
1286.3530.196
1923.1690.180
2560.9850.173
3202.5680.179
5127.6250.207
102417.5500.287
+

The minimum falls at 2bits−8 at both depths, as the source predicts.

+ +

C. Formats

+

Through the helper, YUV420P10, YUV420P16 and YUV444P12 run, and plain havsfunc refuses each one. High Precision +(8 → 16 → 8, dithered) differs from the plain 8-bit job by 0.182 / 47. Task #79's refusal table +(data/mask_depths_macos-arm64_1.18.0-rc3.txt) is unchanged on rc3: every 10/16-bit InputType 2/3 Slow/Medium row +refuses, while 8-bit and Fast run.

+ +

Decisions

+
    +
  • Template-side, not a havsfunc patch (the user chose option C). It needs no deps release (a + patch would have needed 1.18.0-rc4), works on every bundle from 1.16.0, and does not depend on havsfunc's source text: if + upstream changes, the helper becomes inert rather than wrong. The cost is that it relies on havsfunc reading its + module-level core at call time, which patch 7 (akarin) already relies on, and on QTGMC building no + FrameEval that calls back after it returns.
  • +
  • Only the jobs that run the Mask (InputType 2/3 at Placebo–Medium, the same condition as + QTGMCParameters::prog_sad_mask_blocks from #79) get the block. Every other script is unchanged + (test_269).
  • +
  • Rejected: running QTGMC at 8 bits through run_within, which quantises the whole output; + and forcing ProgSADMask=0 above 8 bits, which gives a different picture (1.4–2.8 levels).
  • +
  • #79's padding still holds as it stands. With the stand-in, Mask always works at 8 bits (1 byte per sample), so its + 32-byte stride rule in mvtools_mask_cols stays exact for deeper clips.
  • +
  • ShutterBlur's kind 0 Mask (not exposed) goes through the same proxy and is exact for the same reason.
  • +
+ +

Tests

+
    +
  • test_269 (Rust): the block is in the encode and preview scripts exactly for InputType 2/3 at + Placebo–Medium (High Precision included), and absent otherwise. test_263 tolerates it.
  • +
  • plugin_format_contracts_test.dart (push gate): the stand-in's mask is exact at 10 and 16 bits (kinds 0, 1, 3, + pel 1); QTGMC InputType 2 at Medium runs through the helper at YUV420P10, YUV422P10 and YUV420P16 while the bare call + still refuses on Mask; 8-bit through the helper equals the plain call; havsfunc's core is restored, even after + an error.
  • +
  • Probe: havsfunc.QTGMC[InputType=2] records the refusal (8-bit only, in HANDLED), and + pass.QTGMC[InputType=2] (the pass as the template runs it) accepts every cell.
  • +
  • Format sweep: two variants, InputType 2 (Slower) and InputType 3 (Medium). All 138 nightly rows pass on macOS arm64 + (run, depth, acts, parity).
  • +
  • Heavy parity (integration_high_bit_depth_filters_test.dart): InputType 2 Slow gives 0.68, and InputType 3 Medium with + High Precision gives 0.26, against a tolerance of 3.0. Without the fix, both fail on Mask (High Precision at 8 bits too).
  • +
+ +

Not tested

+
    +
  • x86 (master and v24 MVTools) and Windows were not measured; CI's contracts test and sweep cover them functionally.
  • +
  • Real 10-bit camera footage; the low bits here are synthetic.
  • +
  • An explicit BlockSize or Overlap other than the presets' defaults. Mask's arithmetic doesn't depend on them.
  • +
+ +

Reproduce

+
docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/reproduce.sh deps/macos-arm64
+

This runs stand_in.py, factor_sweep.py and task #79's mask_depths.py with the bundle's +Python. It writes data/*_<platform>_<deps version>.txt and takes about 9 minutes on an M1 Pro. The +scripts import the shipped helper from worker/templates/plugin_formats.py. +factor_sweep.py copies it with the factor varied.

+ + diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/common.py b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/common.py new file mode 100644 index 00000000..3b099fe5 --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/common.py @@ -0,0 +1,83 @@ +"""Shared by the task #89 scripts: the fixture, decoded by the bundle's +ffmpeg, as three clips, and the difference measure. + +Tests/TestResources/pal-sd-25.mov is an 8-bit master in a 10-bit 4:2:2 +container (its low two bits are 0.002 levels from zero), so the "real" +10-bit clip gets sub-8-bit content from a light blur at 10 bits: + src10r the blurred 10-bit picture (0.47 levels of real low bits) + src8 src10r rounded to 8 bits (resize.Point, undithered) + src10x src8 back at 10 bits, an exact x4: the same picture at two depths +Run with the bundle's Python (reproduce.sh sets it up). +""" +import ctypes +import os +import subprocess +import sys + +import vapoursynth as vs + +core = vs.core +core.max_cache_size = 4096 + +HERE = os.path.dirname(os.path.abspath(__file__)) +REPO = os.path.abspath(os.path.join(HERE, '..', '..', '..', '..')) +sys.path.insert(0, os.path.join(REPO, 'worker', 'templates')) + +W, H, N = 720, 576, 40 +FIRST, LAST = 6, 30 # frames measured (QTGMC's temporal edges left out) + + +def _decode(): + ffmpeg = os.environ.get('VAPOURBOX_FFMPEG', 'ffmpeg') + src = os.path.join(REPO, 'Tests', 'TestResources', 'pal-sd-25.mov') + return subprocess.run( + [ffmpeg, '-v', 'error', '-i', src, '-frames:v', str(N), '-f', 'rawvideo', + '-pix_fmt', 'yuv422p10le', '-'], check=True, stdout=subprocess.PIPE).stdout + + +def sources(): + data = _decode() + fsize = W * H * 2 * 2 + blank = core.std.BlankClip(width=W, height=H, format=vs.YUV422P10, length=N, fpsnum=25, fpsden=1) + + def read(n, f): + fo = f.copy() + off = n * fsize + for p, (pw, ph) in enumerate([(W, H), (W // 2, H), (W // 2, H)]): + stride = fo.get_stride(p) + ptr = ctypes.cast(fo.get_write_ptr(p), ctypes.c_void_p).value + row = pw * 2 + for y in range(ph): + ctypes.memmove(ptr + y * stride, data[off + y * row: off + (y + 1) * row], row) + off += row * ph + return fo + + src10r = core.std.ModifyFrame(blank, blank, read) + src10r = core.std.SetFrameProps(src10r, _Matrix=6, _FieldBased=0) + src10r = core.std.Convolution(src10r, [1, 2, 1, 2, 12, 2, 1, 2, 1]) + src8 = core.resize.Point(src10r, format=vs.YUV422P8) + src10x = core.resize.Point(src8, format=vs.YUV422P10) + return src10r, src8, src10x + + +def low_bits(src10r, src10x): + """Mean |real 10-bit - rounded 8-bit x4| of luma, in 10-bit levels.""" + st = core.std.PlaneStats(src10r, src10x, plane=0) + return st.get_frame(10).props['PlaneStatsDiff'] * 1023 + + +def stats(a, b): + """(mean, max) |a - b| of luma over the measured frames, in b's levels; + a is brought to b's depth by a plain division first.""" + shift = a.format.bits_per_sample - b.format.bits_per_sample + if shift: + a = core.std.Expr(a, 'x %d /' % (1 << shift), format=a.format.replace(bits_per_sample=b.format.bits_per_sample).id) + if a.format.id != b.format.id: + a = core.resize.Point(a, format=b.format.id) + d = core.std.PlaneStats(a, b, plane=0) + e = core.std.PlaneStats(core.std.Expr([a, b], 'x y - abs'), plane=0) + tot, mx = 0.0, 0 + for n in range(FIRST, LAST): + tot += d.get_frame(n).props['PlaneStatsDiff'] + mx = max(mx, e.get_frame(n).props['PlaneStatsMax']) + return round(tot / (LAST - FIRST) * ((1 << b.format.bits_per_sample) - 1), 3), int(mx) diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/factor_sweep.py b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/factor_sweep.py new file mode 100644 index 00000000..d24986e3 --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/factor_sweep.py @@ -0,0 +1,52 @@ +"""Task #89: the ml scaling factor. The helper multiplies ml by 2^(bits - 8) +for kind 1 (MVTools shifts each SAD by bits - 8, read from the clip). This +runs QTGMC InputType 2 at Slow with every other factor in the stand-in and +compares the mask inside QTGMC (and the output) with the 8-bit job's: the +difference should be smallest at x4 for 10 bits and x256 for 16 bits. +Means / maxima in 8-bit levels. +""" +import vapoursynth as vs +import havsfunc as haf + +from common import core, sources, stats +import plugin_formats as pf + +src10r, src8, src10x = sources() +FACTOR = [None] +CAPTURED = [] + + +def stand_in(clip, vectors, ml=100.0, kind=0, **kw): + # The shipped helper, with the kind-1 factor replaced by FACTOR. + fmt = clip.format + if fmt.bits_per_sample <= 8: + m = core.mv.Mask(clip, vectors, ml=ml, kind=kind, **kw) + else: + stand = core.std.BlankClip(clip, format=fmt.replace(bits_per_sample=8).id, keep=True) + if kind == 1: + ml = ml * FACTOR[0] + m = core.mv.Mask(stand, vectors, ml=ml, kind=kind, **kw) + m = core.std.Expr(m, 'x %d * 255 /' % ((1 << fmt.bits_per_sample) - 1), + format=m.format.replace(bits_per_sample=fmt.bits_per_sample).id) + CAPTURED.append(m) + return m + + +pf.mvtools_mask_any_depth = stand_in +kw = dict(Preset='Slow', InputType=2, TFF=True) + + +def qtgmc(c): + return pf.havsfunc_mask_any_depth(haf, lambda x: haf.QTGMC(x, **kw))(c) + + +o8 = qtgmc(src8) +m8 = CAPTURED[-1] +src16x = core.resize.Point(src8, format=vs.YUV422P16) +for name, src, factors in (('10-bit x4 picture', src10x, (1, 2, 3, 4, 5, 8, 16)), + ('real 10-bit', src10r, (2, 3, 4, 5, 8)), + ('16-bit x256 picture', src16x, (64, 128, 192, 256, 320, 512, 1024))): + for f in factors: + FACTOR[0] = f + o = qtgmc(src) + print('%-20s factor %5d: mask %s, output %s' % (name, f, stats(CAPTURED[-1], m8), stats(o, o8))) diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/reproduce.sh b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/reproduce.sh new file mode 100755 index 00000000..d6fa940f --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/reproduce.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Re-runs every number in the task #89 report against a deps bundle. +# docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/reproduce.sh > +# Writes ../data/*_.txt. macOS/Linux bundles (R78 Python package). +set -eu +DEPS=$(cd "$1" && pwd) +HERE=$(cd "$(dirname "$0")" && pwd) +PLAT=$(basename "$DEPS") +CFG=$(mktemp -d) +export PYTHONHOME="$DEPS/python" PYTHONPATH="$DEPS/python-packages:$DEPS" XDG_CONFIG_HOME="$CFG" +export DYLD_LIBRARY_PATH="$DEPS/lib" LD_LIBRARY_PATH="$DEPS/lib" +export VAPOURBOX_FFMPEG="$DEPS/ffmpeg/ffmpeg" +[ -x "$VAPOURBOX_FFMPEG" ] || VAPOURBOX_FFMPEG="$DEPS/bin/ffmpeg" +PY="$DEPS/python/bin/python3" +mkdir -p "$HERE/../data" +VER=$(sed -n 's/.*"version": *"\([^"]*\)".*/\1/p' "$DEPS/version.json") +for s in stand_in factor_sweep; do + { echo "# $s.py, deps $VER, $PLAT"; "$PY" "$HERE/$s.py"; } > "$HERE/../data/${s}_${PLAT}_$VER.txt" +done +"$PY" "$HERE/../../task-79-qtgmc-mask-avx2/scripts/mask_depths.py" > "$HERE/../data/mask_depths_${PLAT}_$VER.txt" +rm -rf "$CFG" diff --git a/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/stand_in.py b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/stand_in.py new file mode 100644 index 00000000..347e798c --- /dev/null +++ b/docs/reports/task-89-qtgmc-mask-high-bit-depth/scripts/stand_in.py @@ -0,0 +1,94 @@ +"""Task #89: does plugin_formats.havsfunc_mask_any_depth (the shipped helper, +imported from worker/templates) give a deep QTGMC InputType 2/3 job the +8-bit job's picture, to within QTGMC's own depth rounding? + +A. Mask alone, on the same picture at 8 and 10 bits, pel 1 and pel 2. +B. QTGMC InputType 2/3 at Slow, Medium, Placebo: 8-bit through the helper + vs plain havsfunc (and plain twice, for determinism), 10-bit (exact x4 + and real) vs 8-bit, with a control: the same comparison with the Mask + off (ProgSADMask=0), and what the Mask changes at all at 8 bits. +C. Other formats and High Precision run. +Mean / max luma differences in 8-bit levels (B, C) or mask levels (A). +""" +import sys +import time + +import vapoursynth as vs +import havsfunc as haf + +from common import core, sources, low_bits, stats +import plugin_formats as pf + +src10r, src8, src10x = sources() +print('real low bits (mean |10-bit - rounded 8-bit x4|, 10-bit levels):', round(low_bits(src10r, src10x), 3)) + +# Every mask the helper makes, captured (the proxy looks the function up on +# each call, so wrapping the module attribute sees havsfunc's calls too). +CAPTURED = [] +_shipped = pf.mvtools_mask_any_depth + + +def _capture(clip, vectors, **kw): + m = _shipped(clip, vectors, **kw) + CAPTURED.append(m) + return m + + +pf.mvtools_mask_any_depth = _capture + + +def qtgmc(c, **kw): + return pf.havsfunc_mask_any_depth(haf, lambda x: haf.QTGMC(x, **kw))(c) + + +# --- A --------------------------------------------------------------------- +for pel in (1, 2): + def vecs(c): + return core.mv.Analyse(core.mv.Super(c, pel=pel), isb=True, delta=1, blksize=16, overlap=8) + m8 = core.mv.Mask(src8, vecs(src8), kind=1, ml=10) + mx = _shipped(src10x, vecs(src10x), kind=1, ml=10) + print('A pel=%d mask, 10-bit x4 picture through the stand-in vs native 8-bit:' % pel, stats(mx, m8)) + for k in (0, 3, 4): + a = core.mv.Mask(src8, vecs(src8), kind=k, ml=10) + b = core.mv.Mask(src8, vecs(src10x), kind=k, ml=10) + print(' pel=%d vectors, kind %d mask from 10-bit vectors vs 8-bit vectors:' % (pel, k), stats(b, a)) + +# --- B --------------------------------------------------------------------- +for it in (2, 3): + for preset in ('Slow', 'Medium', 'Placebo'): + kw = dict(Preset=preset, InputType=it, TFF=True) + t = time.time() + o8 = haf.QTGMC(src8, **kw) + twice = stats(haf.QTGMC(src8, **kw), o8) + CAPTURED.clear() + helper8 = stats(qtgmc(src8, **kw), o8) + m8 = CAPTURED[-1] + ox = qtgmc(src10x, **kw) + mx = CAPTURED[-1] + orr = qtgmc(src10r, **kw) + mr = CAPTURED[-1] + off = dict(kw, ProgSADMask=0.0) + c8 = haf.QTGMC(src8, **off) + print('B IT=%d %-7s 8-bit: helper vs plain %s, plain twice %s' % (it, preset, helper8, twice)) + print(' mask inside QTGMC: exact-10 vs 8 %s, real-10 vs 8 %s' % (stats(mx, m8), stats(mr, m8))) + print(' output: exact-10 vs 8 %s (Mask off: %s) | real-10 vs 8 %s (Mask off: %s)' % ( + stats(ox, o8), stats(haf.QTGMC(src10x, **off), c8), + stats(orr, o8), stats(haf.QTGMC(src10r, **off), c8))) + print(' Mask on vs off at 8 bits: %s | %.0f s' % (stats(c8, o8), time.time() - t)) + +# --- C --------------------------------------------------------------------- +for fmt in (vs.YUV420P10, vs.YUV420P16, vs.YUV444P12): + c = core.resize.Point(src10r, format=fmt) + try: + qtgmc(c, Preset='Slow', InputType=2, TFF=True).get_frame(10) + print('C', c.format.name, 'runs') + except vs.Error as e: + print('C', c.format.name, 'ERROR', str(e)[:100]) + try: + haf.QTGMC(c, Preset='Slow', InputType=2, TFF=True).get_frame(10) + print(' plain havsfunc runs too') + except vs.Error as e: + print(' plain havsfunc:', str(e)[:60]) +hp = core.resize.Point(qtgmc(core.resize.Point(src8, format=vs.YUV422P16), Preset='Slow', InputType=2, TFF=True), + format=vs.YUV422P8, dither_type='error_diffusion') +print('C High Precision (8 -> 16 -> 8, dithered) vs 8-bit:', stats(hp, haf.QTGMC(src8, Preset='Slow', InputType=2, TFF=True))) diff --git a/worker/filters/core/deinterlace.json b/worker/filters/core/deinterlace.json index c4b17817..be4d7b79 100644 --- a/worker/filters/core/deinterlace.json +++ b/worker/filters/core/deinterlace.json @@ -57,7 +57,7 @@ "vapoursynth": { "name": "InputType" }, "ui": { "label": "Input Type", - "description": "0=interlaced, 1=telecined, 2=progressive, 3=double-rate progressive", + "description": "0=interlaced, 1=progressive (repair only), 2=progressive with combing from a bad deinterlace, 3=as 2 from the other fields", "widget": "dropdown" } }, diff --git a/worker/src/models/qtgmc_parameters.rs b/worker/src/models/qtgmc_parameters.rs index 0dacbb02..6e4ee3b6 100644 --- a/worker/src/models/qtgmc_parameters.rs +++ b/worker/src/models/qtgmc_parameters.rs @@ -451,7 +451,9 @@ impl QTGMCParameters { /// to half the BlockSize in effect. Mask writes before its buffer on x86 /// under 4 block columns and garbles its bottom rows when a row fills its /// stride, and takes no `opt` from QTGMC, so the template pads the width - /// (`plugin_formats.mvtools_mask_cols`, task #79). + /// (`plugin_formats.mvtools_mask_cols`, task #79). Mask also refuses a + /// clip above 8 bits, so the same jobs run havsfunc's Mask on an 8-bit + /// stand-in (`plugin_formats.havsfunc_mask_any_depth`, task #89). pub fn prog_sad_mask_blocks(&self) -> Option<(i32, i32)> { if !matches!(self.input_type, Some(2) | Some(3)) { return None; diff --git a/worker/src/script_generator.rs b/worker/src/script_generator.rs index 6629ce33..2cff068b 100644 --- a/worker/src/script_generator.rs +++ b/worker/src/script_generator.rs @@ -1060,6 +1060,11 @@ impl ScriptGenerator { .map(|(b, o)| format!("min_cols=_pf.mvtools_mask_cols(clip.width, clip.height, {b}, {o}), ")) .unwrap_or_default(), ); + script = if params.prog_sad_mask_blocks().is_some() { + keep_block_lines("QTGMC_MASK_ANY_DEPTH", script) + } else { + remove_block("{{#QTGMC_MASK_ANY_DEPTH}}", "{{/QTGMC_MASK_ANY_DEPTH}}", script) + }; // Noise processing // When noise reduction is set to QTGMC built-in, use the noise diff --git a/worker/templates/pipeline_template.vpy b/worker/templates/pipeline_template.vpy index cbfb096f..d8beca6e 100644 --- a/worker/templates/pipeline_template.vpy +++ b/worker/templates/pipeline_template.vpy @@ -509,6 +509,15 @@ def _deinterlace_qtgmc(clip): return clip +{{#QTGMC_MASK_ANY_DEPTH}} +# InputType 2 and 3 at Placebo..Medium run MVTools' Mask inside QTGMC, and +# Mask refuses a clip above 8 bits: for them every Mask havsfunc makes while +# QTGMC builds its graph runs on an 8-bit stand-in with ml scaled (task #89; +# High Precision's 16-bit call included). +_deinterlace_qtgmc = _pf.havsfunc_mask_any_depth(haf, _deinterlace_qtgmc) + + +{{/QTGMC_MASK_ANY_DEPTH}} def _deinterlace_qtgmc_rows(clip): # MVTools inside QTGMC divides by zero on a picture two block rows tall # (Very Fast..Draft: 32-px blocks, overlap 8, so 56..79 rows; task #56 F9). diff --git a/worker/templates/plugin_formats.py b/worker/templates/plugin_formats.py index 9eb2e0d7..5e21ad25 100644 --- a/worker/templates/plugin_formats.py +++ b/worker/templates/plugin_formats.py @@ -112,6 +112,13 @@ 'luma runs on a 4:2:2 carrier (#29), measured as pass.DeScratch', 'pass.DeScratch': 'the DeScratch pass as the template runs it at 8-bit: ' 'field-flagged 4:2:0 luma runs on a 4:2:2 carrier (#29)', + 'havsfunc.QTGMC[InputType=2]': "8-bit only: MVTools' Mask (QTGMC's ProgSADMask, " + 'InputType 2/3 at Placebo..Medium) refuses a deeper clip; ' + 'the pass runs that Mask on an 8-bit stand-in with ml ' + 'scaled (havsfunc_mask_any_depth, task #89), measured as ' + 'pass.QTGMC[InputType=2]', + 'pass.QTGMC[InputType=2]': 'QTGMC InputType 2 as the Deinterlace pass runs it: ' + "havsfunc's Mask through havsfunc_mask_any_depth (#89)", } # Refusals the probe measured that no pass handles yet, each with the task @@ -169,6 +176,9 @@ # columns, and, when the grid stops short of the bottom, a width that is not a # multiple of 32 bytes (no VapourSynth stride alignment divides it, so the # copy goes row by row). +# Mask is also 8-bit only (task #89): havsfunc_mask_any_depth() runs it on an +# 8-bit stand-in at every depth, so its rows are always 1 byte a sample and +# the 32-byte stride rule above is exact for a 10-16-bit job too. MVTOOLS_MASK_MIN_BLOCKS = 4 MVTOOLS_MASK_STRIDE_STEP = 32 @@ -523,6 +533,82 @@ def mvtools_mask_cols(width, height, blksize, overlap): return w if w > max(width, MVTOOLS_MIN_COLS) else width +def mvtools_mask_any_depth(clip, vectors, ml=100.0, kind=0, **kwargs): + """MVTools' mv.Mask(clip, vectors, ml=, kind=, ...) at any integer depth + (task #89, docs/reports/task-89-qtgmc-mask-high-bit-depth). Mask refuses a + clip above 8 bits (master and v24 alike), so a deeper one gets an 8-bit + stand-in of its size and subsampling. That is exact because: + - kinds 0-4 never read the clip's pixels, only its format and size + (kind 5, which copies the source luma, is passed through as it is); + - kind 1 (SAD) shifts each block's SAD, measured by Analyse at the + vectors' depth, by (bits - 8) read from the *clip*, so on an 8-bit + stand-in ml x 2**(bits - 8) gives the same mask (without MVTools' + truncation of the shift: at most one mask level apart). Valid because + the vectors come from a clip of the same depth, as in havsfunc; the + depth can't be read from the vectors without requesting a frame while + the script is evaluated, which no template may do (task #65); + - thSCD1/thSCD2 are scaled by the vectors' depth, not the clip's, so the + scene-change decision doesn't move; ysc is in 8-bit units either way. + The mask (0-255) is then put on the clip's full scale (x * peak / 255) in + Mask's own output family (GRAY in gives YUV444 out, as MVTools does), so + a MaskedMerge weighs by m / peak as before. An 8-bit or float clip calls + Mask unchanged. Calls vs.core's Mask, never havsfunc's core, which may be + the proxy below.""" + fmt = clip.format + bits = fmt.bits_per_sample + if fmt.sample_type != vs.INTEGER or bits <= 8 or kind == 5: + return vs.core.mv.Mask(clip, vectors, ml=ml, kind=kind, **kwargs) + stand = vs.core.std.BlankClip(clip, format=fmt.replace(bits_per_sample=8).id, keep=True) + if kind == 1: + ml = ml * (1 << (bits - 8)) + mask = vs.core.mv.Mask(stand, vectors, ml=ml, kind=kind, **kwargs) + peak = (1 << bits) - 1 + return _expr(mask, f'x {peak} * 255 /', format=mask.format.replace(bits_per_sample=bits).id) + + +class _MaskAnyDepthMv: + """havsfunc's core.mv with Mask replaced by mvtools_mask_any_depth.""" + + def __init__(self, mv): + self._mv = mv + + def __getattr__(self, name): + if name == 'Mask': + return mvtools_mask_any_depth + return getattr(self._mv, name) + + +class _MaskAnyDepthCore: + """havsfunc's core (VapourSynth's, or patch 7's akarin proxy) with + mv.Mask replaced; everything else passes through.""" + + def __init__(self, inner): + self._inner = inner + + def __getattr__(self, name): + if name == 'mv': + return _MaskAnyDepthMv(self._inner.mv) + return getattr(self._inner, name) + + +def havsfunc_mask_any_depth(haf, fn): + """fn wrapped so that every mv.Mask havsfunc makes while fn(clip) builds + its graph runs through mvtools_mask_any_depth (task #89): QTGMC's + ProgSADMask Mask (InputType 2/3 at Placebo..Medium) refuses a clip above + 8 bits. havsfunc reads its module global `core` at call time, so it is + rebound for the call and restored after, even on an error. Safe for + QTGMC, which builds no FrameEval or ModifyFrame that would call back into + havsfunc after it returns.""" + def wrapped(clip): + saved = haf.core + haf.core = _MaskAnyDepthCore(saved) + try: + return fn(clip) + finally: + haf.core = saved + return wrapped + + def mvtools_blocks(clip, fn, *, min_cols=0, label=None): """fn(clip), where fn runs MVTools Compensate / Degrain / BlockFPS with an overlap (directly or inside havsfunc), on a copy padded right and bottom to diff --git a/worker/tests/filter_integration_test.rs b/worker/tests/filter_integration_test.rs index 67ef629e..aab51500 100644 --- a/worker/tests/filter_integration_test.rs +++ b/worker/tests/filter_integration_test.rs @@ -10211,8 +10211,14 @@ fn test_263_qtgmc_input_type_2_3_pads_for_mvtools_mask() { assert!(s.contains(&format!("InputType={input_type},"))); assert!(s.contains(&format!("{call}{}label='Deinterlace')", pad(32, 16))), "InputType {input_type}: no Mask pad"); } - // Only that argument differs. - let strip = |s: &str| plain(s).replace(&pad(32, 16), ""); + // Only that argument differs, and task #89's stand-in block (test_269). + let strip = |s: &str| { + let s = plain(s).replace(&pad(32, 16), ""); + let start = s.find("# InputType 2 and 3 at Placebo..Medium run MVTools' Mask").expect("no stand-in block"); + let end_marker = "_pf.havsfunc_mask_any_depth(haf, _deinterlace_qtgmc)\n"; + let end = start + s[start..].find(end_marker).unwrap() + end_marker.len(); + format!("{}{}", &s[..start], &s[end..]) + }; assert_eq!(strip(&encode), plain(&base_encode)); assert_eq!(strip(&preview), plain(&base_preview)); } @@ -10570,3 +10576,90 @@ fn test_268_a_source_off_its_chroma_grid_is_padded() { assert!(script.contains("def _resize(src, **window):\n return core.resize."), "{name}"); } } + +/// Task #89: MVTools' Mask refuses a clip above 8 bits, so havsfunc's QTGMC +/// failed every 10/12/16-bit job (and every High Precision one) at InputType +/// 2 or 3 at Placebo..Medium, where it runs Mask(kind=1, ml=ProgSADMask). +/// Exactly those jobs wrap `_deinterlace_qtgmc` in +/// `_pf.havsfunc_mask_any_depth(haf, ...)`, which runs havsfunc's Mask on an +/// 8-bit stand-in with ml scaled by 2^(bits - 8); every other job's script is +/// what it was. `plugin_format_contracts_test.dart` runs the helper against +/// the bundle (docs/reports/task-89-qtgmc-mask-high-bit-depth). +#[test] +fn test_269_qtgmc_mask_runs_at_any_depth() { + create_output_dir(); + let scripts = |preset: QTGMCPreset, input_type: Option, high_precision: bool| { + let mut job = create_base_job("test_269_qtgmc_mask_any_depth"); + job.qtgmc_parameters = QTGMCParameters { + enabled: true, + preset, + tff: Some(true), + input_type, + high_precision: Some(high_precision), + ..QTGMCParameters::default() + }; + job.processing_pipeline = Some(ProcessingPipeline { + deinterlace: job.qtgmc_parameters.clone(), + ..ProcessingPipeline::default() + }); + generate_both_scripts(&job) + }; + let wrapped = "\n_deinterlace_qtgmc = _pf.havsfunc_mask_any_depth(haf, _deinterlace_qtgmc)\n"; + let plain_call = "_pf.mvtools_blocks(clip, _deinterlace_qtgmc, "; + + for preset in [ + QTGMCPreset::Placebo, + QTGMCPreset::VerySlow, + QTGMCPreset::Slower, + QTGMCPreset::Slow, + QTGMCPreset::Medium, + ] { + for input_type in [2, 3] { + for high_precision in [false, true] { + let (encode, preview) = scripts(preset, Some(input_type), high_precision); + for s in [&encode, &preview] { + assert!(!s.contains("QTGMC_MASK_ANY_DEPTH"), "tag left in the script"); + assert_eq!(s.matches(wrapped).count(), 1, "{preset:?} InputType {input_type}: no stand-in"); + // After the function it wraps, before the call that runs it. + let at = s.find(wrapped).unwrap(); + assert!(s.find("def _deinterlace_qtgmc(clip):").unwrap() < at); + assert!(at < s.find(plain_call).unwrap()); + } + } + } + } + // No Mask, no wrapper: InputType unset/0/1 anywhere, or a preset where + // ProgSADMask is 0. + for (preset, input_type) in [ + (QTGMCPreset::Slower, None), + (QTGMCPreset::Slower, Some(0)), + (QTGMCPreset::Placebo, Some(1)), + (QTGMCPreset::Fast, Some(2)), + (QTGMCPreset::VeryFast, Some(3)), + (QTGMCPreset::Draft, Some(2)), + ] { + let (encode, preview) = scripts(preset, input_type, false); + for s in [&encode, &preview] { + assert!(!s.contains("QTGMC_MASK_ANY_DEPTH"), "tag left in the script"); + assert!(!s.contains("havsfunc_mask_any_depth"), "{preset:?} {input_type:?} runs no Mask"); + // Byte for byte as before: the function, two blank lines, the next. + assert!(s.contains(" return clip\n\n\ndef _deinterlace_qtgmc_rows(clip):")); + } + } + + // The helper scales the SAD threshold by the depth, calls VapourSynth's + // own Mask (never havsfunc's rebound core, which would recurse) and + // restores havsfunc's core after the call. + let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")); + let formats = std::fs::read_to_string(root.join("templates/plugin_formats.py")).unwrap().replace("\r\n", "\n"); + for needle in [ + "def mvtools_mask_any_depth(clip, vectors, ml=100.0, kind=0, **kwargs):", + "ml = ml * (1 << (bits - 8))", + "vs.core.mv.Mask(stand, vectors, ml=ml, kind=kind, **kwargs)", + "format=fmt.replace(bits_per_sample=8).id, keep=True)", + "def havsfunc_mask_any_depth(haf, fn):", + " finally:\n haf.core = saved", + ] { + assert!(formats.contains(needle), "plugin_formats.py lost: {needle}"); + } +}