[FFmpeg-cvslog] avcodec/packet: add a decoded frame cropping side data type
James Almer
git at videolan.org
Mon Jul 8 19:30:57 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue May 28 09:29:33 2024 -0300| [1b58f3af30c49d78657df9f2b641e25cb52faa25] | committer: James Almer
avcodec/packet: add a decoded frame cropping side data type
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b58f3af30c49d78657df9f2b641e25cb52faa25
---
doc/APIchanges | 3 +++
libavcodec/packet.c | 1 +
libavcodec/packet.h | 13 +++++++++++++
libavcodec/version.h | 2 +-
4 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index 3afcb35ce0..98bc100662 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07
API changes, most recent first:
+2024-07-08 - xxxxxxxxxx - lavc 61.10.100 - packet.h
+ Add AV_PKT_DATA_FRAME_CROPPING.
+
2024-07-07 - xxxxxxxxxx - lavf 61.5.100 - avformat.h
Add AV_DISPOSITION_MULTILAYER
diff --git a/libavcodec/packet.c b/libavcodec/packet.c
index e118bbaad1..032f270777 100644
--- a/libavcodec/packet.c
+++ b/libavcodec/packet.c
@@ -305,6 +305,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type)
case AV_PKT_DATA_IAMF_MIX_GAIN_PARAM: return "IAMF Mix Gain Parameter Data";
case AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM: return "IAMF Demixing Info Parameter Data";
case AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM: return "IAMF Recon Gain Info Parameter Data";
+ case AV_PKT_DATA_FRAME_CROPPING: return "Frame Cropping";
}
return NULL;
}
diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index f05deb7950..13667ffa36 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -326,6 +326,19 @@ enum AVPacketSideDataType {
*/
AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,
+ /**
+ * The number of pixels to discard from the top/bottom/left/right border of the
+ * decoded frame to obtain the sub-rectangle intended for presentation.
+ *
+ * @code
+ * u32le crop_top
+ * u32le crop_bottom
+ * u32le crop_left
+ * u32le crop_right
+ * @endcode
+ */
+ AV_PKT_DATA_FRAME_CROPPING,
+
/**
* The number of side data types.
* This is not part of the public API/ABI in the sense that it may
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 230d5fa13e..80e2ae630d 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -29,7 +29,7 @@
#include "version_major.h"
-#define LIBAVCODEC_VERSION_MINOR 9
+#define LIBAVCODEC_VERSION_MINOR 10
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
More information about the ffmpeg-cvslog
mailing list