History

avcodec: add ambient viewing environment packet side data.

Damiano Galassi committed 2 years ago

Commit 45697e61 parent d525dbb6 files · +16 −1Browse files

Unified · Split

6 files
  1. doc/APIchanges +3 −0
  2. fftools/ffprobe.c +3 −0
  3. libavcodec/avpacket.c +1 −0
  4. libavcodec/decode.c +1 −0
  5. libavcodec/packet.h +7 −0
  6. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2024-02-04 - xxxxxxxxxx - lavc 60.39.100 - packet.h
6+ Add AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT.
7+
58 2023-11-xx - xxxxxxxxxx - lavfi 9.16.100 - buffersink.h buffersrc.h
69 Add av_buffersink_get_colorspace and av_buffersink_get_color_range.
710 Add AVBufferSrcParameters.color_space and AVBufferSrcParameters.color_range.
fftools/ffprobe.c+3−0
@@ -2392,6 +2392,9 @@ static void print_pkt_side_data(WriterContext *w, · 2391 unmodified lines
23922392 AVContentLightMetadata *metadata = (AVContentLightMetadata *)sd->data;
23932393 print_int("max_content", metadata->MaxCLL);
23942394 print_int("max_average", metadata->MaxFALL);
2395+ } else if (sd->type == AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT) {
2396+ print_ambient_viewing_environment(
2397+ w, (const AVAmbientViewingEnvironment *)sd->data);
23952398 } else if (sd->type == AV_PKT_DATA_DYNAMIC_HDR10_PLUS) {
23962399 AVDynamicHDRPlus *metadata = (AVDynamicHDRPlus *)sd->data;
23972400 print_dynamic_hdr10_plus(w, metadata);
libavcodec/avpacket.c+1−0
@@ -301,6 +301,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type) · 300 unmodified lines
301301 case AV_PKT_DATA_DOVI_CONF: return "DOVI configuration record";
302302 case AV_PKT_DATA_S12M_TIMECODE: return "SMPTE ST 12-1:2014 timecode";
303303 case AV_PKT_DATA_DYNAMIC_HDR10_PLUS: return "HDR10+ Dynamic Metadata (SMPTE 2094-40)";
304+ case AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT:return "Ambient viewing environment";
304305 case AV_PKT_DATA_IAMF_MIX_GAIN_PARAM: return "IAMF Mix Gain Parameter Data";
305306 case AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM: return "IAMF Demixing Info Parameter Data";
306307 case AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM: return "IAMF Recon Gain Info Parameter Data";
libavcodec/decode.c+1−0
@@ -1434,6 +1434,7 @@ static const struct { · 1433 unmodified lines
14341434 { AV_PKT_DATA_CONTENT_LIGHT_LEVEL, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL },
14351435 { AV_PKT_DATA_ICC_PROFILE, AV_FRAME_DATA_ICC_PROFILE },
14361436 { AV_PKT_DATA_DYNAMIC_HDR10_PLUS, AV_FRAME_DATA_DYNAMIC_HDR_PLUS },
1437+ { AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT },
14371438 };
14381439
14391440 int ff_decode_frame_props_from_pkt(const AVCodecContext *avctx,
libavcodec/packet.h+7−0
@@ -323,6 +323,13 @@ enum AVPacketSideDataType { · 322 unmodified lines
323323 */
324324 AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM,
325325
326+ /**
327+ * Ambient viewing environment metadata, as defined by H.274. This metadata
328+ * should be associated with a video stream and contains data in the form
329+ * of the AVAmbientViewingEnvironment struct.
330+ */
331+ AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,
332+
326333 /**
327334 * The number of side data types.
328335 * 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 38
32+#define LIBAVCODEC_VERSION_MINOR 39
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