diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-02-08 13:57:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-02-16 21:34:38 +0100 |
commit | eea9bd88a5f4c050fdcabd9f0c20e4dd14dfb206 (patch) | |
tree | b113223e771b4d5987b554c04b0e6d00cc6a94ea /libavutil | |
parent | 66b50445cb36cf6adb49c2397362509aedb42c71 (diff) | |
download | ffmpeg-eea9bd88a5f4c050fdcabd9f0c20e4dd14dfb206.tar.gz |
avutil/pixfmt: Add AV_VIDEO_MAX_PLANES
It seems we do not have a named identifier for the maximum planes of pixel formats
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/pixfmt.h | 7 | ||||
-rw-r--r-- | libavutil/version.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 9c87571f49..3ffba7c0d3 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -33,6 +33,13 @@ #define AVPALETTE_COUNT 256 /** + * Maximum number of planes in any pixel format. + * This should be used when a maximum is needed, but code should not + * be written to require a maximum for no good reason. + */ +#define AV_VIDEO_MAX_PLANES 4 + +/** * Pixel format. * * @note diff --git a/libavutil/version.h b/libavutil/version.h index cebf4a0acd..9f45af93df 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -79,7 +79,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 58 -#define LIBAVUTIL_VERSION_MINOR 38 +#define LIBAVUTIL_VERSION_MINOR 39 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ |