[FFmpeg-cvslog] avutil/pixfmt: Add AV_VIDEO_MAX_PLANES
Michael Niedermayer
git at videolan.org
Fri Feb 16 22:40:44 EET 2024
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Feb 8 13:57:57 2024 +0100| [eea9bd88a5f4c050fdcabd9f0c20e4dd14dfb206] | committer: Michael Niedermayer
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 at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eea9bd88a5f4c050fdcabd9f0c20e4dd14dfb206
---
doc/APIchanges | 3 +++
libavutil/pixfmt.h | 7 +++++++
libavutil/version.h | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
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
@@ -32,6 +32,13 @@
#define AVPALETTE_SIZE 1024
#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.
*
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, \
More information about the ffmpeg-cvslog
mailing list