History

avcodec/packet: add a decoded frame cropping side data type

James Almer committed 2 years ago

Commit 1b58f3a1 parent 06191384 files · +18 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavcodec/packet.c +1 −0
  3. libavcodec/packet.h +13 −0
  4. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2024-07-08 - xxxxxxxxxx - lavc 61.10.100 - packet.h
6+ Add AV_PKT_DATA_FRAME_CROPPING.
7+
58 2024-07-07 - xxxxxxxxxx - lavf 61.5.100 - avformat.h
69 Add AV_DISPOSITION_MULTILAYER
710
libavcodec/packet.c+1−0
@@ -305,6 +305,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type) · 304 unmodified lines
305305 case AV_PKT_DATA_IAMF_MIX_GAIN_PARAM: return "IAMF Mix Gain Parameter Data";
306306 case AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM: return "IAMF Demixing Info Parameter Data";
307307 case AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM: return "IAMF Recon Gain Info Parameter Data";
308+ case AV_PKT_DATA_FRAME_CROPPING: return "Frame Cropping";
308309 }
309310 return NULL;
310311 }
libavcodec/packet.h+13−0
@@ -326,6 +326,19 @@ enum AVPacketSideDataType { · 325 unmodified lines
326326 */
327327 AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,
328328
329+ /**
330+ * The number of pixels to discard from the top/bottom/left/right border of the
331+ * decoded frame to obtain the sub-rectangle intended for presentation.
332+ *
333+ * @code
334+ * u32le crop_top
335+ * u32le crop_bottom
336+ * u32le crop_left
337+ * u32le crop_right
338+ * @endcode
339+ */
340+ AV_PKT_DATA_FRAME_CROPPING,
341+
329342 /**
330343 * The number of side data types.
331344 * This is not part of the public API/ABI in the sense that it may
libavcodec/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929
3030 #include "version_major.h"
3131
32−#define LIBAVCODEC_VERSION_MINOR 9
32+#define LIBAVCODEC_VERSION_MINOR 10
3333 #define LIBAVCODEC_VERSION_MICRO 100
3434
3535 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t