Files
FFmpeg/libavutil
Julius Bairaktaris de15c3678b avutil/hwcontext_amf: allow X2BGR10 and RGBAF16 frames contexts
Both formats are already in format_map[] and map to AMF_SURFACE_R10G10B10A2
and AMF_SURFACE_RGBA_F16, but they were missing from supported_formats[]
and supported_transfer_formats[]. An AMF frames context could therefore
not use them as sw_format, and hwupload/hwdownload rejected them, which
in turn kept the AMF filters from offering the two formats AMF's HQ
Scaler needs for HDR.

Both are single-plane packed formats, so the existing transfer paths
handle them unchanged: amf_transfer_data_to/from derive plane count from
the surface and copy with av_image_copy2().

Verified on Windows 11, RX 9070 XT, driver 32.0.31035.1003:

  ffmpeg -init_hw_device amf -f lavfi -i testsrc2=size=640x360 \
    -vf "format=x2bgr10le,hwupload,hwdownload,format=x2bgr10le" -f null -

passes where it previously failed with "Invalid output format x2bgr10le
for hwframe download", and a rawvideo rgbaf16le round-trip through
hwupload,hwdownload comes back bit-exact.

Assisted-by: Claude Opus 5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
2026-09-16 22:05:28 +00:00
..
2025-08-03 13:48:47 +02:00
…
…
…
…
2026-04-28 12:29:37 +00:00
2026-09-12 23:52:20 +00:00
2026-06-23 19:15:57 +02:00
…
2026-09-07 03:57:59 +00:00
2024-03-04 17:45:00 +01:00
…
…
…
…
…
…
2025-08-03 13:48:47 +02:00
2026-09-12 23:52:20 +00:00
…
…
2026-09-12 23:52:20 +00:00
2024-03-15 12:51:15 +01:00
2025-09-02 17:05:50 +02:00
…
…
2026-01-18 03:33:04 +00:00
2025-08-03 13:48:47 +02:00
2025-12-23 03:39:16 +00:00
…
…
2026-09-12 23:52:20 +00:00
…
…
2025-08-03 13:48:47 +02:00
2024-06-01 18:05:58 +03:00
2025-08-03 13:48:47 +02:00
…
…
…
…
…
…
…
…
2024-03-31 00:08:43 +01:00
…
2025-09-02 17:05:50 +02:00
…
2025-08-03 13:48:47 +02:00
…
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
…
…
…
…
…
…
…
…
2025-08-03 13:48:47 +02:00
…
…
…
…
…
…
…
…
2025-08-03 13:48:47 +02:00
2026-06-23 19:15:57 +02:00
…
2025-08-03 13:48:47 +02:00
…
…