Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #286511

Category ffmpeg
Changed by Timo Rothenpieler <timoohnoyoudont@rothenpieler.org>
Changed at Fri 16 Oct 2026 15:13:51
Repository https://git.ffmpeg.org/ffmpeg.git
Project ffmpeg
Branch master
Revision 447b72d90f2c0738c973e33532cfd325e2f3c9a5

Comments

avfilter/vf_scale_cuda: support resizing during YUV<->RGB conversion
Resizing is done on the RGB side: YUV to RGB conversion converts at the
visible input size before scaling, RGB to YUV conversion converts after
scaling at the output size. Every scaling pass then works on a single
packed plane and reuses the generic RGB kernels, and the conversion
kernels are reused with a float RGB side.

The RGB intermediates hold normalized floats, so filter overshoot and
out of gamut colors are not clipped before the scaler rounds and clamps
once. As conversion and filtering are linear, the result matches
scaling on the YUV side, apart from rounding and the chroma upsampling
of the conversion kernels.

Resizing during conversion always uses the generic filters with the
selected interp_algo, with nearest using point sampling weights.
Conversion without resizing keeps using the direct conversion kernels.

Assisted-By: Claude Opus 5.5

Changed files