Re: [FFmpeg-devel] [PATCH v2 2/5] swscale/rgb2xyz: add explicit width parameter

2024-10-07 Thread Michael Niedermayer
On Mon, Oct 07, 2024 at 07:53:00PM +0200, Niklas Haas wrote: > From: Niklas Haas > > This fixes an 11-year-old bug in the rgb2xyz functions, when used with a > negative stride. The current loop bounds turned it into a no-op. > > Additionally, this increases performance on highly cropped images,

[FFmpeg-devel] [PATCH v2 2/5] swscale/rgb2xyz: add explicit width parameter

2024-10-07 Thread Niklas Haas
From: Niklas Haas This fixes an 11-year-old bug in the rgb2xyz functions, when used with a negative stride. The current loop bounds turned it into a no-op. Additionally, this increases performance on highly cropped images, whose stride may be substantially higher than the effective width. Spons