This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 7a1a02fa0368c8d1f42e5030505b52e127fe0853 Author: Julius Bairaktaris <[email protected]> AuthorDate: Fri Jul 31 13:01:57 2026 +0200 Commit: ArazIusubov <[email protected]> CommitDate: Wed Sep 16 22:05:28 2026 +0000 avfilter/vf_sr_amf: offer 10-bit and f16 packed RGB AMF's HQ Scaler accepts R10G10B10A2 and RGBA_F16 for the algorithms that require packed RGB, but the filter only offered RGBA and BGRA because an AMF frames context could not carry the other two. Now that hwcontext_amf supports them, add them to the negotiated list so a 10-bit or half-float source is no longer forced down to 8-bit RGB. Tested on Windows 11, RX 9070 XT, driver 32.0.31035.1003: sr1-1, point, sr1-0 and bilinear all produce correct output for x2bgr10le and rgbaf16le input at 1280x720 -> 2560x1440. Assisted-by: Claude Opus 5 Signed-off-by: Julius Bairaktaris <[email protected]> --- doc/filters.texi | 8 ++++---- libavfilter/vf_sr_amf.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index ca7bfcb194..3d63288be9 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -23275,16 +23275,16 @@ This is a default value Point AMF returns an unwritten surface for this algorithm when the format is @code{nv12} or @code{p010}, so software input in those formats is converted to -a packed RGB format (@code{rgba} or @code{bgra}) automatically and a hardware -surface in them is rejected. +a packed RGB format (@code{rgba}, @code{bgra}, @code{x2bgr10le} or +@code{rgbaf16le}) automatically and a hardware surface in them is rejected. @item sr1-1 Video SR1.1 This algorithm only supports packed RGB formats and requires a DirectX 11 or DirectX 12 device, so it is available on Windows only. Software input in another format such as @code{nv12} or @code{p010} is converted to a packed RGB -format (@code{rgba} or @code{bgra}) automatically; a hardware surface in such a -format is rejected. +format (@code{rgba}, @code{bgra}, @code{x2bgr10le} or @code{rgbaf16le}) +automatically; a hardware surface in such a format is rejected. Note that the VideoSR algorithms (@code{sr1-0} and @code{sr1-1}) do not preserve the alpha channel (it is left zeroed); append e.g. @code{format=rgb24} downstream if an opaque result is required. diff --git a/libavfilter/vf_sr_amf.c b/libavfilter/vf_sr_amf.c index e4d56c24a1..1758c94ea9 100644 --- a/libavfilter/vf_sr_amf.c +++ b/libavfilter/vf_sr_amf.c @@ -86,6 +86,8 @@ static int amf_filter_query_formats(AVFilterContext *avctx) static const enum AVPixelFormat pix_fmts_packed_rgb[] = { AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA, + AV_PIX_FMT_X2BGR10, + AV_PIX_FMT_RGBAF16, AV_PIX_FMT_AMF_SURFACE, AV_PIX_FMT_NONE, }; -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
