aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/format.c
Commit message (Collapse)AuthorAgeFilesLines
* all: fix typos found by codespellTimo Rothenpieler3 days1-1/+1
|
* swscale: add support for new 10/12 bit MSB formatsTimo Rothenpieler2025-07-111-0/+8
|
* swscale/graph: prefer bools to intsNiklas Haas2025-05-181-1/+1
| | | | | This is more consistent with the rest of the newly added code, which universally switched to using bools for boolean values.
* avutil/csp: Improve enum range comparisonsAndreas Rheinhardt2025-03-211-2/+2
| | | | | | | | | | | | | | | | | | | The underlying integer type of an enumeration is implementation-defined (see C11, 6.7.2.2 (4)); GCC defaults to unsigned if there are no negative values like for all enums from pixfmt.h except enum AVPixelFormat. This means that tests like "if (csp >= AVCOL_SPC_NB)" for invalid colorspaces need not work as expected (namely if enum AVColorSpace is signed). It also means that testing for such an enum variable to be >= 0 may be tautologically true. Clang emits a -Wtautological-unsigned-enum-zero-compare warning for this. Fix both of these issues by casting to unsigned. Also do the same in libswscale/format.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* swscale/output: add support for NV20James Almer2025-03-191-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* swscale/input: add support for NV20James Almer2025-03-191-0/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* swscale/utils: split off format code into new fileNiklas Haas2025-03-141-0/+582
utils.c is getting quite crowded, and I need a new place to dump a lot of format handling code for the ongoing rewrite. Rather than bloating this file even more, start splitting format handling helpers off into a new file. This also renames the existing utils.h header, which didn't really contain anything except the SwsFormat definition anyway (the prototypes for what should have been in utils.h are all still in the legacy swscale_internal.h).