forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-vk/examples/h265_encode.rsClear filter

2026-11-27

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.
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.
vk: 10-bit H.265 Main10 and AV1 encode from P010, Vulkan 10-bit decode output; ec-hw encode_16 and HwDecoder::open_16/next_frame_16Ahmet Kaan Gümüş · 82a0fd5
vk: 10-bit H.265 Main10 and AV1 encode from P010, Vulkan 10-bit decode output; ec-hw encode_16 and HwDecoder::open_16/next_frame_16

Shim: P010 input plane upload, Main 10 / high_bitdepth parameter sets, encode_16 on H.265 and AV1 sessions; RGB and DMA-BUF input refused at 10 bits; 10-bit caps query maps to Unsupported.
ec-vk: bit_depth in H265/Av1 encoder configs, encode_16.
ec-hw: EncoderConfig.bit_depth 10 on Vulkan (H.264 stays Unsupported), HwEncoder::encode_16; Mode::I420_16 decode output for Vulkan and VA-API, shared fill_i420_16 in picture.rs.
examples/hw_ten: 30-frame 1280x720 round trip, PSNR and VA comparison.