Commits
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
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
2026-11-26
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
2026-11-25
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 Vk encode config parity (H.264 profile, colour, gop, forced keyframes) and shared VA/Vk rate control (hrd_buffer_ms, RateFeedback), steered on pipelined submit/flush tooAhmet Kaan Gümüş · d0fd4cbBrowse files
Merge Vk decode DMA-BUF export, HwDecoder::reset, per-profile capabilities, grain for 16-bit/RGB; one DmaBufPlane type for import and exportAhmet Kaan Gümüş · 0df0354Browse files
Vk decode parity: DMA-BUF export, reset, AV1 film grain for 10-bit, per-profile capabilitiesAhmet Kaan Gümüş · f49eeb8Browse files
Merge branch 'worktree-agent-ab057528cdea26a6b'Ahmet Kaan Gümüş · 5d4b8b4
Merge branch 'worktree-agent-ab057528cdea26a6b' # Conflicts: # crates/ec-hw/src/hw.rs # shims/vk-video-ffi/src/av1_encode.rs # shims/vk-video-ffi/src/h264_encode.rs # shims/vk-video-ffi/src/h265_encode.rs # shims/vk-video-ffi/src/session.rs
vk: VA rate feedback and HRD buffer on Vulkan, H.264 profile, colour configAhmet Kaan Gümüş · ff39f7f
vk: VA rate feedback and HRD buffer on Vulkan, H.264 profile, colour config hrd_buffer_ms and RateFeedback move to a shared ec-hw rate module, used by the VA and Vulkan encoders. Vulkan CBR now runs the 1000 ms buffer for GOP >= 10 and applies the steered bitrate through set_rate, no IDR. The H.264 profile maps to profile_idc, constraint_set1 (Constrained Baseline), PPS transform_8x8_mode and entropy_coding_mode. A profile the driver rejects is Unsupported. The colour description goes into the H.264/H.265 VUI and the AV1 colour config, as VA writes it. Adds the hw_config example: H.264 Main, BT.601 full range, GOP 15, forced key frame at 7; Vulkan and VA match in ffprobe fields and key frames.
Depth-2 pipelined Vulkan encode: shim slots, ec-vk and ec-hw submit/flush, hw_pipeline exampleAhmet Kaan Gümüş · 87336a0Browse files
vk: NV12 and P010 DMA-BUF encode input (1 or 2 objects), per-session import cacheAhmet Kaan Gümüş · 7996a95
vk: NV12 and P010 DMA-BUF encode input (1 or 2 objects), per-session import cache
DmaBuf now lists fds, planes {fd, offset, pitch}, width, height, modifier
and a DmaBufFormat (Bgrx, Rgbx, Nv12, P010). NV12/P010 import as a
multi-planar DRM modifier image (DISJOINT with one object per plane) and
copy plane by plane into the encoder source. Imports are cached per
session (16 entries, LRU) keyed by fstat dev/inode, layout, modifier,
size and format; dmabuf_imports() reports the import count.
ec-hw gains DmaBufYuvFrame and encode_dmabuf_yuv (Vulkan only). The RGB
DmaBufFrame API is unchanged. dmabuf_smoke covers NV12 (H.264, H.265,
AV1) and P010 (H.265, AV1) byte-identical to host upload, plus the cache
case.vk-video-ffi, ec-hw: VP9 decode over Vulkan VideoAhmet Kaan Gümüş · 2134128
vk-video-ffi, ec-hw: VP9 decode over Vulkan Video Profile 0 8-bit and profile 2 10-bit 4:2:0 on the Vulkan path, so VP9 no longer needs VA-API. The shim takes the parsed uncompressed header and builds StdVideoDecodeVP9PictureInfo. ec-hw reuses ec-vp9-syntax for parsing and superframes, and the shared RefSlots (renamed from av1_refs) for the eight reference slots. The VA VP9 decoder uses RefSlots too. hw_decode example gains three libvpx VP9 streams (8-bit 640x360 with hidden altrefs, 8-bit 720p realtime, 10-bit), all bit-exact against ffmpeg.
vk-video-ffi: zero-copy DMA-BUF input (encode_dmabuf) for H.264/H.265/AV1, forwarded through ec-vk and ec-hwAhmet Kaan Gümüş · 2602aec
vk-video-ffi: zero-copy DMA-BUF input (encode_dmabuf) for H.264/H.265/AV1, forwarded through ec-vk and ec-hw Import the dma-buf as a VkImage (DRM format modifier explicit layout), acquire it from the foreign queue family and copy it into the RGB converter input buffer on the upload lane; the existing compute pass does the NV12 conversion and downscale. dmabuf_smoke: encode_dmabuf output is byte-identical to encode_rgb for linear and tiled modifiers, and for the 640x360 downscale. Co-Authored-By: Claude <noreply@anthropic.com>
Vk runtime rate change: set_rate in the shim sessions (rate-control re-sent inside the coding scope, no new IDR), ec-vk set_rate, HwEncoder::tune for Vk and VA; hw_tune exampleAhmet Kaan Gümüş · 0c81983Browse files
vk-video-ffi: Av1DecodeSession (Main 8-bit, distinct DPB/output, plain-struct sequence/frame headers); smoke example bit-exact vs ffmpeg on a key frameAhmet Kaan Gümüş · 6c86984Browse files
vk-video-ffi: H265DecodeSession (Main 8-bit, distinct DPB/output, resolved short-term RPS); smoke example bit-exact vs ffmpegAhmet Kaan Gümüş · 6f8f2a3Browse files
ec-hw: Vulkan H.264 decode behind HwDecoder (Vk first, VA fallback), shared dpb264 with slot surfaces; bit-exact vs ffmpeg on B-frame/multi-ref streams; hw_decode exampleAhmet Kaan Gümüş · 18fc857Browse files
encode_rgb scales: RGB source may be larger than the encoder (box/area downscale in the RGB->NV12 compute pass; VA path via ec_dsp::rgb_box_downscale); same-size output unchangedAhmet Kaan Gümüş · bb05374Browse files
RGB input: GPU compute RGB/BGR->NV12 (BT.709 limited, matches ec-dsp) for Vulkan H.264/H.265/AV1 encode; HwEncoder::encode_rgb (VA path converts on the CPU); ec-dsp bgra_to_i420_709; hw_rgb exampleAhmet Kaan Gümüş · e98bba9Browse files
ec-hw: HwEncoder (Vulkan first, VA fallback on Linux), HwDecoder (VA for now), capabilities() without opening an encoder; compiles on every OS; hw_caps exampleAhmet Kaan Gümüş · 274b9cbBrowse files