summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-02-08 13:57:57 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2024-02-16 21:34:38 +0100
commiteea9bd88a5f4c050fdcabd9f0c20e4dd14dfb206 (patch)
treeb113223e771b4d5987b554c04b0e6d00cc6a94ea
parent66b50445cb36cf6adb49c2397362509aedb42c71 (diff)
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>
-rw-r--r--doc/APIchanges3
-rw-r--r--libavutil/pixfmt.h7
-rw-r--r--libavutil/version.h2
3 files changed, 11 insertions, 1 deletions
diff --git a/doc/APIchanges b/doc/APIchanges
index 77b9740891..4e94132cf0 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09
API changes, most recent first:
+2024-02-16 - xxxxxxxxxx - lavu 58.39.100 - pixfmt.h
+ Add AV_VIDEO_MAX_PLANES
+
2024-02-13 - xxxxxxxxxx - lavf 60.21.100 - avformat.h
Add AVStreamGroup.disposition.
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, \