Change #275112
| Category | ffmpeg |
| Changed by | Niklas Haas <git@haasn.dev> |
| Changed at | Fri 17 Jul 2026 15:23:21 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 5c864087246655cf102e614c2096055f9afc78a2 |
Comments
swscale/uops: add SWS_UOP_RW_SHUFFLE This directly encodes the "pshufb" loop style processing seen in the x86 backend (and, presumably, other backends down the line). The major advantage of encoding this as a separate UOP is that it allows the macro generator to exhaustively enumerate all needed variants of the read/write chunk sizes, which so-far have been hand-maintained through trial and error. I decided to also go ahead and pre-emptively generalize the clear value to allow us to encode RGBA clears in addition to RGB0 clears, which makes this UOP useful for e.g. Gray -> RGBA32 as well; something that the current pshufb loop did not handle. This commit merely adds the UOP defition; it does not yet port the packed shuffle solver or x86 implementation. Signed-off-by: Niklas Haas <git@haasn.dev>
Changed files
- libswscale/uops.c
- libswscale/uops.h
- libswscale/uops_list.h
- libswscale/uops_macros.h
- libswscale/uops_macros_gen.c