Commits
Commits on
07bb3654c08ebd7aa8ed5e940f67cd198b08248fToday
fixtures.d/vectors.sh: fetched families (h264, hevc, audio, vp9, av1) and open media as get/getlist lists copied from fetch-vectors.sh, FLAC pinned to a commit, AV1 names from the bucket listingAhmet Kaan Gümüş · a685e18Browse files
fixtures: cover-art outputs run last and die loudly when the committed still is missing (were silently skipped)Ahmet Kaan Gümüş · b98cf53Browse files
fixtures: audio family (audio/, mp3ext, ac3dep) in scripts/fixtures.d/audio.sh; 6-channel tones from one aevalsrc because the 6-input join output raced between runsAhmet Kaan Gümüş · b1deb38Browse files
fixtures.d/video.sh: video, bitstreams and derived families ported from gen-fixtures.sh and gen-bitstream-fixtures.sh with determinism flags; all encodes via mk, remuxes and two-pass clip via have/mkAhmet Kaan Gümüş · fe63b0dBrowse files
Add ec-testkit dev crate: fixture paths and pinned ffmpeg lookup, replacing PATH ffmpeg and per-test probesAhmet Kaan Gümüş · 155ce74Browse files
2026-11-27
Windows: ec_hw::D3d11Pool copies captured D3D11 frames (WGC) into a ring of four shared NT-handle textures (CopyResource, Flush, event-query wait) and returns the D3d11Frame for encode_d3d11, so callers need no unsafe; imports key on a per-texture id instead of the handle value (a closed and reused handle can no longer hit a stale import). windows 0.62.2 as windows-capture 2.0.1. d3d11_pool example: verified on a WARP device (shared copies read back identical, ids cycle); the Vulkan import half still untested on Windows hardwareAhmet Kaan Gümüş · 9b67700Browse files
Windows zero-copy encode: HwEncoder::encode_d3d11 / EncodeInput::D3d11 take a shared D3D11 BGRA/RGBA texture (NT handle, VK_KHR_external_memory_win32 D3D11_TEXTURE import, dedicated allocation, cached per handle like DMA-BUF imports) into the same GPU RGB->NV12 path; d3d11_supported(order) reports importability. Compile-checked for x86_64-pc-windows-msvc only: no Windows GPU to run it onAhmet Kaan Gümüş · 301ebceBrowse files
Decode RGB downscale: separable Catmull-Rom (a=-0.5) widened by the scale ratio (support 2*in/out each side), Q12 integer kernel, taps normalised to 1<<10 with the residue on the centre tap, edge-clamped; replaces the integer box footprint that aliased text at non-integer ratios. nv12_to_rgb.comp and ec-dsp i420_to_packed compute the same integers (hw_decode_rgb max |diff| 0 native, 640 wide, 301 tall); out == in is the plain conversion as beforeAhmet Kaan Gümüş · 1b795c6Browse files
Vk encode: EncoderConfig::quality picks the Vulkan quality level (1 = driver best, each step faster; default level 1, RADV balance), session parameters created at that level; content hint DESKTOP; AV1 enables CDEF with four strength candidates per 64x64 block. Decode RGB upsamples chroma bilinearly, left-sited and row-centred as the RGB->NV12 shader writes it (GPU shader and ec-dsp i420_to_packed stay bit-identical)Ahmet Kaan Gümüş · 9876fb6Browse files
ec-hw Vk VBR: closed-loop steering only pulls the bitrate down (steering under-spend back up pushed the peak to 2.25x); each picture is capped at buffer_ms of max_bitrate (maxFrameSize), so a 50-100 ms buffer keeps every 1 s window near max_bitrate (Sintel 1440p60 8.9 Mb: worst second 36.9 -> 24.0 Mb at the default buffer, 22.1 -> 12.8 Mb at 66 ms). CBR gets no cap: radv pads to itAhmet Kaan Gümüş · 511a95bBrowse files
2026-11-26
ec-hw: HwDecoder::set_rgb_output changes the RGB output of an open_rgb decoder from the next picture on; RgbOutput::max_height bounds the height too (fit inside both, aspect kept, scaled height even)Ahmet Kaan Gümüş · d51b2aeBrowse files
ec-hw: dmabuf_modifiers(order) lists the DRM modifiers encode_dmabuf imports for BGRx/RGBx (single memory plane, importable, LINEAR included); dup_fd(RawFd) gives an OwnedFd for callers that only hold a raw descriptorAhmet Kaan Gümüş · 7836ccdBrowse files
ec-hw: reference picture selection for Vulkan H.265 (explicit short-term RPS keeps all 8 slots) and H.264 (every picture long-term idx = slot via MMCO6, list modification picks the reference); acks are cumulative; recovery evicts frames newer than its base; H.264 Vk decoder prunes unused gap frames before giving them slotsAhmet Kaan Gümüş · c411189Browse files
ec-hw: reference picture selection for Vulkan AV1 — HwEncoder::ack(timestamp) and recover(); a recovery frame references the newest acked frame still in the 8-slot DPB (2 chain + 6 anchors every 16 frames), else a keyframe; CodedFrame::recoveryAhmet Kaan Gümüş · 8737b14Browse files
2026-11-25
ec-hw: EncoderConfig::buffer_ms overrides the rate-control buffer (None keeps 20 ms below GOP 10, else 1000 ms)Ahmet Kaan Gümüş · 600391dBrowse files
vk-video-ffi: H.265, AV1 and VP9 decode sessions use the driver's DPB slot and active reference maxima, as ffmpeg doesAhmet Kaan Gümüş · 9531d9eBrowse files
vk-video-ffi H.264 decode: create the session with the driver's DPB slot and active reference maximaAhmet Kaan Gümüş · 08bc65c
vk-video-ffi H.264 decode: create the session with the driver's DPB slot and active reference maxima The session was sized with the stream's DPB slot count and active reference count (5/5 for these streams). The driver sizes session memory from those numbers, and a session that is too small corrupts decoding after an earlier session on the same device. ffmpeg creates sessions with the driver caps. DPB image count stays stream-sized.
ec-hw: Vk Unsupported falls back to VA everywhere; VP9/AV1 refuse below minCodedExtent; VA checks real picture size against driver minimumAhmet Kaan Gümüş · 8af23f0Browse files
ec-hw AV1 Vulkan: raw CDEF secondary strength, per-slot reference extents, odd frame sizes; VA refuses mono, 12-bit and non-4:2:0Ahmet Kaan Gümüş · d24d8b0
ec-hw AV1 Vulkan: raw CDEF secondary strength, per-slot reference extents, odd frame sizes; VA refuses mono, 12-bit and non-4:2:0 Vulkan std CDEF takes the coded 2-bit secondary strength (3 means 4), so the parser's adjusted value is mapped back before upload. This fixes the SVT-AV1 mismatches (lag0, hier3, grain, superres, resize). Reference picture resources carry each slot's own size, clearing the DPB association validation error on resized streams. Odd frame sizes decode at their real size; readback and I420 use the even-rounded pitch. The VA AV1 path refuses monochrome, 12-bit and 4:2:2/4:4:4 cleanly.
ec-hw: level tables and checks match ffmpeg (AV1 MainMbps, aspect bounds, NAL factors)Ahmet Kaan Gümüş · 5b6d329Browse files
vk-video-ffi: pad H.265 to driver min extent, H.264 sub-min Unsupported, decode-stage init barrierAhmet Kaan Gümüş · 1786477Browse files
ec-hw: one level selection per codec for VA and Vulkan; AV1 and HEVC VPS timing_info; VA H.264 High 8x8 transformAhmet Kaan Gümüş · ab12e5b
ec-hw: one level selection per codec for VA and Vulkan; AV1 and HEVC VPS timing_info; VA H.264 High 8x8 transform Level comes from crates/ec-hw/src/level.rs (smallest level fitting size, rate, DPB and bitrate; CQP ignores bitrate). The Vulkan shim takes the level and clamps it to the driver's maxLevel. AV1 sequence header carries timing_info (VA packed header, Vulkan OBU and std struct). HEVC VPS carries vps_timing_info when the SPS VUI does. VA H.264 High sets transform_8x8_mode_flag in the PPS and picture parameters.
Merge decode robustness: H.264 4:0:0 on Vk, clean VA refusals, VA pool growth, HEVC level 255, AMD HEVC CTB16 quirkAhmet Kaan Gümüş · 5d36862Browse files
ec-hw: 4:0:0 H.264 on Vulkan, VA surface growth, refuse VA 12-bit VP9 and AMD CTB16 HEVC, accept unknown H.265 levelsAhmet Kaan Gümüş · db3af7cBrowse files
ec-hw: Vulkan decode follows mid-stream size and DPB changesAhmet Kaan Gümüş · fc0a0f7
ec-hw: Vulkan decode follows mid-stream size and DPB changes Flush the previous picture when an SPS arrives, so it is finished against its own SPS. Rebuild the H.264/H.265 session when the coded size or DPB size changes (H.265 also on bit depth), flushing pending output first. AV1 sizes the session from the sequence header maximum.
vk-video-ffi: report H.264 Constrained Baseline encode; hw_config checks Main and CB vs VAAhmet Kaan Gümüş · 42021c7Browse files
ec-hw: hw_oracle example, per-frame framecrc vs ffmpeg software decode, reports Vk fallbackAhmet Kaan Gümüş · a63faefBrowse files
vk-video-ffi: read encoded bitstream from cached host memoryAhmet Kaan Gümüş · e22e714
vk-video-ffi: read encoded bitstream from cached host memory The encode bitstream buffer was HOST_COHERENT only, so the per-frame copy-out ran at uncached speed: AV1 (~187 KB/frame) spent ~0.68 ms per frame in the readback, which serialized on the CPU. Prefer HOST_CACHED with an invalidate on read, matching the decode readback.
vk-video-ffi: AV1 encode matches VA tools: switchable interp, loop filter level 1, primary_ref_frame LAST on inter framesAhmet Kaan Gümüş · d7ce722Browse files
vk-video-ffi: two-object DMA-BUF import via single-plane images and internal NV12/P010 copyAhmet Kaan Gümüş · ba75450
vk-video-ffi: two-object DMA-BUF import via single-plane images and internal NV12/P010 copy Drop DISJOINT (RADV advertises no DISJOINT for DRM modifiers). Planes from two objects import as R8/R8G8 (P010: R16/R16G16) single-plane images, one bind each, then copy into an internal NV12/P010 image that the encoder reads like a host upload. Unsupported when the modifier lacks single-plane formats. Smoke example adds split NV12/P010 cases (linear and tiled) and a two-pass cache check.
ec-hw: export film-grained AV1 pictures as DMA-BUFAhmet Kaan Gümüş · 3b58935
ec-hw: export film-grained AV1 pictures as DMA-BUF Grain is applied on the CPU on the first export and the grained NV12/P010 goes into a separate exportable ring slot, so the reference slot stays ungrained. The picture holds that slot until it drops. The staging buffer for the upload is created on first use.
vk-video-ffi: defer ring store copy and chain it into the next readbackAhmet Kaan Gümüş · 9c38a59
vk-video-ffi: defer ring store copy and chain it into the next readback store records the copy as pending; the next decode, export or readback of another slot flushes it, a readback of the same slot records it in the same graphics submission, so each picture takes one graphics submit and wait instead of two.