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
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-07-08 - xxxxxxxxxx - lavc 61.10.100 - packet.h
6 Add AV_PKT_DATA_FRAME_CROPPING.
7
52024-07-07 - xxxxxxxxxx - lavf 61.5.100 - avformat.h82024-07-07 - xxxxxxxxxx - lavf 61.5.100 - avformat.h
6 Add AV_DISPOSITION_MULTILAYER9 Add AV_DISPOSITION_MULTILAYER
7 10
libavcodec/packet.c+1−0
@@ -305,6 +305,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type) · 304 unmodified lines
305 case AV_PKT_DATA_IAMF_MIX_GAIN_PARAM: return "IAMF Mix Gain Parameter Data";305 case AV_PKT_DATA_IAMF_MIX_GAIN_PARAM: return "IAMF Mix Gain Parameter Data";
306 case AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM: return "IAMF Demixing Info Parameter Data";306 case AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM: return "IAMF Demixing Info Parameter Data";
307 case AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM: return "IAMF Recon Gain Info Parameter Data";307 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";
308 }309 }
309 return NULL;310 return NULL;
310}311}
libavcodec/packet.h+13−0
@@ -326,6 +326,19 @@ enum AVPacketSideDataType { · 325 unmodified lines
326 */326 */
327 AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,327 AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,
328 328
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
329 /**342 /**
330 * The number of side data types.343 * The number of side data types.
331 * This is not part of the public API/ABI in the sense that it may344 * 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
29 29
30#include "version_major.h"30#include "version_major.h"
31 31
32#define LIBAVCODEC_VERSION_MINOR 932#define LIBAVCODEC_VERSION_MINOR 10
33#define LIBAVCODEC_VERSION_MICRO 10033#define LIBAVCODEC_VERSION_MICRO 100
34 34
35#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \35#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