1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/libswscale
Niklas Haas e2637a083a swscale/utils: add SwsFormat abstraction and helpers
Groups together all relevant color metadata from an AVFrame. While we could
use AVFrame directly, keeping it a separate struct has three advantages:

1. Functions accepting an SwsFormat will definitely not care about the
   data pointers.
2. It clearly separates sanitized and raw metadata, since the function to
   construct an SwsFormat from an AVFrame will also sanitize.
3. It's slightly more lightweight to pass around.

Move these into a new header file "utils.h" to avoid crowding
swscale_internal.h even more, and also to solve a circular dependency issue
down the line.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
2024-10-23 23:04:06 +02:00
..
aarch64 swscale: Fix aarch64 and i386 compilation failures 2024-10-08 09:29:07 +03:00
arm arm: Consistently use proper interworking function returns 2024-10-09 15:52:51 +03:00
loongarch swscale: Fix conflicting types for loongarch 2024-10-09 01:55:50 +02:00
ppc swscale/ppc: fix altivec build failure 2024-10-08 16:45:36 +02:00
riscv swscale/rgb2rgb: enable R-V V deinterleaveBytes 2024-09-04 22:04:11 +03:00
tests tests/swscale: fix minor typos 2024-10-07 19:51:34 +02:00
x86 swscale: Fix aarch64 and i386 compilation failures 2024-10-08 09:29:07 +03:00
alphablend.c swscale/internal: constify SwsFunc 2024-10-07 19:51:34 +02:00
bayer_template.c swscale/internal: constify SwsFunc 2024-10-07 19:51:34 +02:00
gamma.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
half2float.c swscale/input: add rgbaf16 input support 2022-08-19 22:09:36 +02:00
hscale_fast_bilinear.c
hscale.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
input.c swscale/input: add Y216LE input support 2024-10-23 14:11:23 -03:00
libswscale.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
log2_tab.c
Makefile swscale/input: add rgbaf16 input support 2022-08-19 22:09:36 +02:00
options.c swscale/internal: rename NB_SWS_DITHER for consistency 2024-10-07 19:51:34 +02:00
output.c swscale/output: add Y216LE output support 2024-10-23 14:11:35 -03:00
rgb2rgb_template.c swscale/internal: constify SwsFunc 2024-10-07 19:51:34 +02:00
rgb2rgb.c swscale/internal: constify SwsFunc 2024-10-07 19:51:34 +02:00
rgb2rgb.h swscale/internal: constify SwsFunc 2024-10-07 19:51:34 +02:00
slice.c swscale/internal: constify and expose ff_swscale() 2024-10-09 13:18:08 +02:00
swscale_internal.h swscale/internal: constify and expose ff_swscale() 2024-10-09 13:18:08 +02:00
swscale_unscaled.c swscale/swscale_unscaled: clear the low bits in planar8ToP01xleWrapper 2024-10-21 09:52:58 -03:00
swscale.c swscale/internal: constify and expose ff_swscale() 2024-10-09 13:18:08 +02:00
swscale.h swscale: add sws_free_context() 2024-10-23 23:04:04 +02:00
swscaleres.rc
utils.c swscale/utils: add SwsFormat abstraction and helpers 2024-10-23 23:04:06 +02:00
utils.h swscale/utils: add SwsFormat abstraction and helpers 2024-10-23 23:04:06 +02:00
version_major.h libs: bump major version for all libraries 2024-03-07 11:29:43 -03:00
version.c lib*/version: Use static_assert for static asserts 2024-03-31 00:08:42 +01:00
version.h swscale: add sws_free_context() 2024-10-23 23:04:04 +02:00
vscale.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
yuv2rgb.c swscale/internal: constify SwsFunc 2024-10-07 19:51:34 +02:00