From patchwork Sat Aug 31 16:31:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 51252 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:4027:b0:48e:c0f8:d0de with SMTP id ky39csp1017487vqb; Sat, 31 Aug 2024 09:31:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXxPc18miKin0NRzLr0JGN50E1Sfs5SgV8VVYF9fGY6vv+VE5bl/LS0z0qdysIkzpwNhnNgnNo31sjcm1dcHs51@gmail.com X-Google-Smtp-Source: AGHT+IFgxfq3YnCy6HcbsUQFSMnnH9JqnscpoPM7hzM9MjOGOnTXQ5U68rYTeTD0htuswiPuxw2z X-Received: by 2002:a05:6512:b0d:b0:530:e0fd:4a85 with SMTP id 2adb3069b0e04-53546b2d158mr1982883e87.4.1725121861451; Sat, 31 Aug 2024 09:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725121861; cv=none; d=google.com; s=arc-20240605; b=bcfdIdyLpM00eFKaosVz0PnJfUbX0jRiUU6G73sDCe8E4TtXwloY18YCv/o3qTcqxX gpZd4qSWlJCMMi4UYU+YZEuBjT1rv8AQdGY8GZcZ6PVBLf2uBMYk5hix+1tAl4/NPZrr zhN46sXbpcQfCvf9tdrejYDch8h01u+pGM2bgv0SPngU7Z0hKTidQOOX/+razesVsgVj O04y9KMpcBp4j/X9HeHD5E+i7iNBC1lDSC4MWLdwYogCkhvw8NqT4bSl5lG287x6yR6S vF13mQ0mptFGcQnLWiTz0dlaNgMeexbPk/NqDyZy22R+fr+3vxwyl6ySGkrjs5XdhzPu rZsw== 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:message-id:date:to:from :dkim-signature:delivered-to; bh=IydnY7OgdECYL45s/Ezcl1qawuTxqZSItsa/bfg/TL0=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=ksMvTbu68RsesUpWZU92RdnP+JTgmJbMy+NwBX8NS1iSk+3oz5M1I9jA2Vensgz/el Iur9CIPSyYN8eTb70hZfs8eH+U/0s8KacYf0q8xEqZ5C78to1OLcdGDs3ZxYGsYXjCK8 Z9aB/LjxOfYE2aVQkToEQO3w3aKEaxhfmkycahYC5ZwmxWpbeISdTwM/dUbGGRtzrU6G WXUk61aW6hdnJOgj4Ur/iY40OGhYqEXQilO9/fNQFoSd/xK18dVCtqC18xw9lj7eTXl6 DH7cjDKYNuXLpYWmkRz4WjoW/G1tJ7nyR4MYKycd8yqGC9pleo1ixm2e2vSQhnZmCx/r MOog==; 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=Nlf12GKg; 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 2adb3069b0e04-535407d90f3si2145039e87.239.2024.08.31.09.31.00; Sat, 31 Aug 2024 09:31:01 -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=Nlf12GKg; 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 D8F6368DD82; Sat, 31 Aug 2024 19:30:54 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 431D168DCA7 for ; Sat, 31 Aug 2024 19:30:48 +0300 (EEST) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2d892997913so454339a91.3 for ; Sat, 31 Aug 2024 09:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725121845; x=1725726645; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=+ctStw3bOWGUJAQ9bc9eSxb9+oJrEDR0Sdk6JhydoWg=; b=Nlf12GKgMSk1HO5UJZ+cak2vF3o45hh+Pp5/LK1miCGB5McWAABVycnDn5y8JBTmxG mu3G3OykZbpKvW91LgaeiARI/LuFlU9tCRjpefxfqj+LFxovVIB+9SDUssO5GG+PoHb7 X4k4WS/lBwQbmx5YcDHyn+y03nP5V1kvVfccqTrKdmhkteI7kw3W/qwLPlRHrLi78Y+g yrrNO6OusMs97VODX3IIMmLFE5BljEi2BHI8n6q/nHzEpLv/L3M6dwBK3eh94wm+z8wt PwnKoEPkJv3ACuxGrc1+/3xKcbgbOakvTONHlu0nS6KLI5MfvDv6flTx5x9kgUUYxXRT fGaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725121845; x=1725726645; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+ctStw3bOWGUJAQ9bc9eSxb9+oJrEDR0Sdk6JhydoWg=; b=DvWy+/gU/RudUeMoEkbifeBh7tmgm0ntniqskyDGOOgccz7lWkLNJ2LPEE3CFsv0Mr 6zw4x/JJDi4SCWUCMPBOMvMLBjTpBzSdT7+EUh/f2MWNfUsNqdAe7Nkt/JAxbCCnq6WU DW8n+WPb/aPJft8TFFYlxEdLGpZGxvoQT/lexAbL/jh/WMhBv7FV9hfXMkAE6O1UbFH3 bvLCka3byBHbH/YD+xuki74u/ZUNbM9h3URswkrLeclIPijLG2Koirui59Y0GbVOn9o2 Fw4O6sA7Oc1Kn6CeygW3JHydy72oGmYhvTkGB6hNSfR8bfWFBZUj4SiSvnf7Wwls3vAz pzcw== X-Gm-Message-State: AOJu0YwyVa1FHDf91HsZiU6JNH0HXEw+ncmJU5CXVuXBIinMyr3mntKn 8PWZ+ED9XsnSkFl6RmdajdSmvBdERXnMDU3J8LNXKEHEL+xueKbQGtP3sw== X-Received: by 2002:a17:90a:600f:b0:2d8:8509:85d1 with SMTP id 98e67ed59e1d1-2d890620499mr2651018a91.38.1725121844868; Sat, 31 Aug 2024 09:30:44 -0700 (PDT) Received: from localhost.localdomain ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d85b3b9522sm5935328a91.50.2024.08.31.09.30.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Aug 2024 09:30:44 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 31 Aug 2024 13:31:02 -0300 Message-ID: <20240831163114.4197-1-jamrial@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 01/13 v3] avutil/frame: add an LCEVC enhancement data payload 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: 80TIjWhlMZGF Signed-off-by: James Almer --- libavutil/frame.c | 1 + libavutil/frame.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/libavutil/frame.c b/libavutil/frame.c index 5cbfc6a48b..2758f90e27 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -46,6 +46,7 @@ static const AVSideDataDescriptor sd_props[] = { [AV_FRAME_DATA_DETECTION_BBOXES] = { "Bounding boxes for object detection and classification" }, [AV_FRAME_DATA_DOVI_RPU_BUFFER] = { "Dolby Vision RPU Data" }, [AV_FRAME_DATA_DOVI_METADATA] = { "Dolby Vision Metadata" }, + [AV_FRAME_DATA_LCEVC] = { "LCEVC NAL data" }, [AV_FRAME_DATA_STEREO3D] = { "Stereo 3D", AV_SIDE_DATA_PROP_GLOBAL }, [AV_FRAME_DATA_REPLAYGAIN] = { "AVReplayGain", AV_SIDE_DATA_PROP_GLOBAL }, [AV_FRAME_DATA_DISPLAYMATRIX] = { "3x3 displaymatrix", AV_SIDE_DATA_PROP_GLOBAL }, diff --git a/libavutil/frame.h b/libavutil/frame.h index 60bb966f8b..973980ad58 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -228,6 +228,11 @@ enum AVFrameSideDataType { * encoding. */ AV_FRAME_DATA_VIDEO_HINT, + + /** + * Raw LCEVC payload data, as a uint8_t array. + */ + AV_FRAME_DATA_LCEVC, }; enum AVActiveFormatDescription {