forge
Explore
Log in

Don't you dare go Hollow

The GPU's HEVC seat waits behind a flag

Browse files at this commit

c67649f45abe507c4bd2a2f0c3fb10617d48dbd0Ahmet Kaan GümüşParent: d113599
  • chore
    • the GPU's HEVC seat waits behind a flag
Show full message
🔧 chore(export): the GPU's HEVC seat waits behind a flag

Its pictures are wrong on real material -- a garbled band over flat green,
one `CABAC_MAX_BIN` notice per frame -- while the frame count decodes clean,
so nothing that only counts frames ever saw it. The software intra encoder
takes HEVC again until that is found and proven gone; `VE_HW_HEVC=1` asks
for the GPU, exactly as `VE_HW_AV1=1` does for the other opt-in seat.
crates/engine/src/export.rsmodified+9 -6
@@ -496,12 +496,15 @@ fn hw_seat(meta: &VideoMeta, settings: &ExportSettings) -> Option<HwEncoder> {
496 let (fps_num, fps_den) = crate::mux::frame_timing(meta.frame_rate).ok()?;496 let (fps_num, fps_den) = crate::mux::frame_timing(meta.frame_rate).ok()?;
497 let bitrate = bitrate_of(meta, settings);497 let bitrate = bitrate_of(meta, settings);
498 match settings.format {498 match settings.format {
499- // Both HEVC formats sit on the plugin's HEVC seat, and it is the499+ // Both HEVC formats sit on the plugin's HEVC seat, and it is opt-in
500- // default: what it codes is intra-only, the very file the software seat500+ // while its pixels are under repair: on real 1080p and 4K material the
501- // writes, so preferring the GPU changes how long an export takes and501+ // GPU's file decodes frame-for-frame and *looks* wrong -- a garbled
502- // not what comes out of it. `None` here is the plugin's own "no" --502+ // band over flat green, one `CABAC_MAX_BIN` notice per frame. Until
503- // no entrypoint, or a picture under the driver's 384x384 floor -- and503+ // that is found and proven gone, the software intra encoder takes the
504- // the software intra encoder takes the file.504+ // file and `VE_HW_HEVC=1` is what asks for the GPU.
505+ format if format.is_hevc() && !forced("VE_HW_HEVC") => None,
506+ // `None` here is the plugin's own "no" -- no entrypoint, or a picture
507+ // under the driver's 384x384 floor -- and the software seat takes it.
505 format if format.is_hevc() => {508 format if format.is_hevc() => {
506 HwEncoder::open_hevc(meta.width, meta.height, fps_num, fps_den, bitrate)509 HwEncoder::open_hevc(meta.width, meta.height, fps_num, fps_den, bitrate)
507 }510 }