From patchwork Sat Aug 31 16:31:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 51259 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:4027:b0:48e:c0f8:d0de with SMTP id ky39csp1023866vqb; Sat, 31 Aug 2024 09:50:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXuIXNRHm/F97yf3gd39e4FUiIQglewkByDtMmNIKbyCkmRvkINYGmr/XHdM6adwCqeM6h9qJalEGKfch9/1d72@gmail.com X-Google-Smtp-Source: AGHT+IGE204wFbZb7+659YQEDjcjNESXb0jBlnOj6TQ/qUovQnC9NrKC5pMdWLCMenNtZRQ+i+6j X-Received: by 2002:a2e:be03:0:b0:2f4:f253:ec7 with SMTP id 38308e7fff4ca-2f6104270b5mr88517181fa.0.1725123012031; Sat, 31 Aug 2024 09:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725123012; cv=none; d=google.com; s=arc-20240605; b=QFbv8PlnBPJcnn1cY0cW0fffnYPFspiMHGBSXvNGPMgVSZ9F9emh/mwlcThhYRzsZv 8XTSfzcktXo3ud++Tkm/obOrvFGxIyye4PUMfbYZj5t1UKcDpEJHgh66jzRLUN3FJ+hC 6v4HSObYQvUtBtML0a9dpKm4Jvm0t/seAwDPxYDnjPlSbcYwUXTN1aEs+J688BFPtVHj H/XH0SRDdKQK5qLhKHLvZFhhPSEHpk+IpO3o0L/7gZIRRkYHDd+czJKPaV49sPpi8pQN 0k/Ucy68BoQ/6lSQ2cWlwNxb/qn1VTYI0PqXvmkc2ipJ4yuACF1p0tgf6JI+pdASqAFJ vPWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=F+GCeic/gH0xe3f7k3QT/ipiIyno5LbQ2QiBNhaaoa8=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=WxbSthWAhdt3xsTKjD3MRM9DOTokaqvxu58k11/vRRyokI4vk3truO0PcfO/L+3PB3 d/4hLKt4aYZLK4kf8PR64KblVUhBfHHwr2ENwqJX5Rlc69G/td4kPxpbxKd7mtt1TTtB gj1nsyS1Uqf2Ha3ftTuNwC1xMi3r5GWEd8UNEXjvj2iroITB4Lr+2FjmjyomMZgj9LPV v86BTi6fJfm8paXg9ji8DfwIJ9gxpxzyTe1SF0/5EmhvwIi/jk2snN1VjzXDrPp/thfE s9juhtXa+6vE6xG+ZS6/VxJeko1U+cA53RNiJEKGmktwUw4ui6ohF7urKhx2zW9p/2Vm Tcug==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=cJJ1ieRB; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=fail header.i=@gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5c24c55b9aasi755959a12.307.2024.08.31.09.50.11; Sat, 31 Aug 2024 09:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=cJJ1ieRB; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2B60468DE53; Sat, 31 Aug 2024 19:31:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 742E868DE17 for ; Sat, 31 Aug 2024 19:31:05 +0300 (EEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-71456acebe8so2277214b3a.3 for ; Sat, 31 Aug 2024 09:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725121863; x=1725726663; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Jl38kWUkhUfCSKMPdHpb5PYGCpv8S6uV0HOktyI9OOE=; b=cJJ1ieRBwrXkrCTRVX1NXei9IsX8o2NDr4V/UfLIjbrDME9HC82cCaKbN9PIucl5HE lzJYuHNZGoizAj1TDVrWAeQoiPICJjuBK8cZDeYQ2K8fS1zbx7MfJexdS4es7fNyyZ7/ TXS7awZFpVIr2fqNnaM57FKJzShbcTr4tUzgzOmfC56ObemUJibqaZhrFhqR+BbJJfdY fraFom7cZDhXpQP94k3J5G+EzKngY3NKleFAA0OezoRrhLLxlve342UbQb63SwJER1cL 89redNhOSn7CxReKxr2VgLCgaE4rmsIkDGrdLORsgrtCbE0Izdt1+OauR8zEuh/TIqG6 8WkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725121863; x=1725726663; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jl38kWUkhUfCSKMPdHpb5PYGCpv8S6uV0HOktyI9OOE=; b=XS9LlmNilNsYgeck2F96xq8OHzLknozSw7xWLntRytswIkwHFm+gEIhsEI3j6NeQAq ABaCaP6xEYR4X1OxAOTCrOiXtz73bRopTnScyzxw8f13OTCLYVyWodMvWwAcAm3spMZv tImfxKk56FIJ6USSnJxQekqfFmLBjMwitHaT7nbejAhjjVXw5WZfVWXm12itGjNGnwRf d0moDLNGg1M231BKbCuwsOR46NTvNx05uIEXvf7WlxV6OG//p9OEy5Zbhdn7Pbn4f4NC E5BCMBqaRX1GEZrAQ9koCxg6+yq2lZIi7eoJRIOt+RnY3G1vWBcW8W2dgJ3cdK6oEXvy 43/Q== X-Gm-Message-State: AOJu0Yx8kJNY5VmUcpZsCwwBl5BcKbNITw7axRj9W/dWpiRMs5eaHAXu 5fPWg4BZwR78ttm1H4e3TrOrH6HdTru0Xn7bYVIbLWa5avSSiZnCDsTGVw== X-Received: by 2002:a05:6a20:4386:b0:1c4:214c:cc0d with SMTP id adf61e73a8af0-1cce10ab1ccmr8755378637.36.1725121862612; Sat, 31 Aug 2024 09:31:02 -0700 (PDT) Received: from localhost.localdomain ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d85b3b9522sm5935328a91.50.2024.08.31.09.31.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Aug 2024 09:31:02 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 31 Aug 2024 13:31:12 -0300 Message-ID: <20240831163114.4197-11-jamrial@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240831163114.4197-1-jamrial@gmail.com> References: <20240831163114.4197-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 11/13] avcodec/packet: add a LCEVC packet side data type X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: pMhjLf3l8nw8 Signed-off-by: James Almer --- 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