[FFmpeg-devel] [PATCH 11/13] avcodec/packet: add a LCEVC packet side data type

James Almer jamrial at gmail.com
Sat Aug 31 19:31:12 EEST 2024


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/decode.c | 1 +
 libavcodec/packet.c | 1 +
 libavcodec/packet.h | 5 +++++
 3 files changed, 7 insertions(+)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 033c4913c0..7303a08dc1 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1435,6 +1435,7 @@ int ff_decode_frame_props_from_pkt(const AVCodecContext *avctx,
         { AV_PKT_DATA_DYNAMIC_HDR10_PLUS,         AV_FRAME_DATA_DYNAMIC_HDR_PLUS },
         { AV_PKT_DATA_S12M_TIMECODE,              AV_FRAME_DATA_S12M_TIMECODE },
         { AV_PKT_DATA_SKIP_SAMPLES,               AV_FRAME_DATA_SKIP_SAMPLES },
+        { AV_PKT_DATA_LCEVC,                      AV_FRAME_DATA_LCEVC },
     };
 
     frame->pts          = pkt->pts;
diff --git a/libavcodec/packet.c b/libavcodec/packet.c
index 032f270777..381001fd65 100644
--- a/libavcodec/packet.c
+++ b/libavcodec/packet.c
@@ -306,6 +306,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type)
     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";
+    case AV_PKT_DATA_LCEVC:                      return "LCEVC NAL data";
     }
     return NULL;
 }
diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index 13667ffa36..6e9a301884 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -339,6 +339,11 @@ enum AVPacketSideDataType {
      */
     AV_PKT_DATA_FRAME_CROPPING,
 
+    /**
+     * LCEVC raw NAL data.
+     */
+    AV_PKT_DATA_LCEVC,
+
     /**
      * The number of side data types.
      * This is not part of the public API/ABI in the sense that it may
-- 
2.46.0



More information about the ffmpeg-devel mailing list