Commit Graph
2 Commits
Author SHA1 Message Date
Anees Iqbal e0208b1571 ✅ Pass a JPEG refusal outside what the backend answers
Core's JpegDecoder now answers what its backend decodes at all
(JpegDecodes: the samplings and the largest picture): VA-API's the
samplings its driver lists and its largest size, NVIDIA's the four it
measures at any size. The guest hears of it only through the refusals it
already got, so nothing it sees changes.

The conformance suite's jpeg-check reads it. A stream outside the answer
that a case asked to decode now passes when refused as UnsupportedStream
("refused as answered"), and fails when it decodes; inside the answer every
refusal fails, as before. jpeg-check.sh's last line counts the passes, the
refused as answered among them, and the failures.

On an RX 550 (radeonsi, Polaris 12) the driver lists 4:2:0, 4:2:2 and grey
up to 4096x4096, so 19 cases failed on development (job 4315): every 4:4:4
one, and the 16384-wide 4:2:2 case. Each was the engine refusing a stream
by the driver's own answer.
2026-11-07 10:57:33 -08:00
Anees Iqbal 833e496af1 🆕 Add the VA-API video backend
reims-vgpu-video-vaapi is the host's codecs on Linux through libva, with no
codec layer between: H.264, HEVC, VP9 and AV1 decoders through one generic
session, H.264 and HEVC encoders, and a JPEG engine whose outputs are read
into host memory of its own, in strips past 64 MiB. Its waits on the GPU
are bounded at 5 s, inside the driver too, processing runs wait outside
the driver's lock, and every picture begun is ended. hevc-craft and
vp9-craft make streams no encoder here writes, and docs/video/vaapi.md
records what radeonsi and NVIDIA's VA-API driver answer.

Source: c5b409362 eb70a2030 db99192cc e3d5616a4 7cef9973a 1148ce260 60d08c4f4
        efbcf2dbb c4c476643 31bad2301 a07ffd70b b7455918b 3ff9083c6 3bf366e81
        6d3b97a59 a10ff547d 1ccde0ef6 d763ddffd 30c2cef88 41235220c 319bc132e
        1a0d1c3da d9b09f352 dc672b5cc 33b40ae4a 77609a028 8ac416039 118f49023
        76951e3ea 939f635ee 505569531 9400f48cb 9e050f933 62e19c8ef 0c2d725b3
        c8c7b3400 95ce68182 b5f40ad74 d01bbdc9e 601c23067 a0243edfc 96f459104
        8c58f98c4 eef22173d ab8fc3c4d 745cef197 7d74266f5 22625b578 73e48ad5a
        986872956 b63299e88 096878653
2026-10-26 12:24:31 +02:00