swscale/utils: split off format code into new file

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).
This commit is contained in:
Niklas Haas 2025-02-23 15:25:15 +01:00
parent e4c8e80a2e
commit ae84aa775f
10 changed files with 592 additions and 568 deletions

View file

@ -27,7 +27,7 @@
#include "csputils.h"
#include "swscale.h"
#include "utils.h"
#include "format.h"
/* Minimum, maximum, and default knee point for perceptual tone mapping [0,1] */
#define PERCEPTUAL_KNEE_MIN 0.10f