From patchwork Sun Jul 21 22:53:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 50670 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp1711693vqm; Sun, 21 Jul 2024 15:53:59 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUKdaHgb+x7+1WcH6SQUyvOdYzMqwqchDNz9H1Ygn3jOkJyRnN+B2hYT1jn/xDUib2a7VF6oGcpkS/FDyW1aY9MBY8RRpLCx/53dA== X-Google-Smtp-Source: AGHT+IFKyJtIMIfSuPD8ECZrlHm3H0RVAUmx8iUnDCL4uvtErhKknb+5v+WgAA6UTObUG1S4ZXDG X-Received: by 2002:a2e:9e01:0:b0:2ef:2cbc:9072 with SMTP id 38308e7fff4ca-2ef2cbc911emr14557721fa.49.1721602438863; Sun, 21 Jul 2024 15:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721602438; cv=none; d=google.com; s=arc-20160816; b=iUmRcsApNgA8yxera9i9QuWjbdbvfCUM6YmkzlW4yPurWQlso97LbpeVIssCE6y7TA 0BgDl0j+HOo6xZ2tMOL+E6tHoPXMtwcjTsvDEBfmBHUqKgm1DjziK/iZnA3ZXyVcIqVb wBitPB76AvDoOUZFzAqDh7ISeUXh1qsG/qDxArUWf70+xWqmK+QABqj7svxN0tbOL9xB 76xv+kvQ05oOKSwZoY977e9ENjQ2NsJejMDCUBXW3PbrIcFxAsBMRxVl/THbVQVrwU4v 7h4MhIpoJO0hUtRWBA6dnEnvwVCTWOpXO28qIGWY+MHyvFJvMAzMgmfJf0+UxAoeTNsq LK6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=9pGUr8bQMitae/x7wU9HYCGY+rsH6lMGlaNsAusoUPY=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=uJBtylniG0eJ2GRL9tzKy0bPnO8SLoZsXlhOISe9e0D38AkVvYN85/vW/e0XXI1q9M 3lrBWi0kILMZ9OXEvoZfGEs4D/KgITBgEvwCD0VIJT95hdzNFe8agRug9nJQThN1J9JO A+JWJC/g1z7DImcdcKT1jd4kLDY8XeLslAybe4z4+Nq9APx7V5/hRBkvNmlvgIzHuidU rHGtDNxTFhMhgaACmJtqHQNvgqHUon+tB++Zbj69HPgRXhhZsbPOavl3kjWNBYfPdp3p x1Bx2JqjJAA/yii45fS9zqo1g5Xv/VrIcfflcrbnr8AYjpoAzgVYvouIuzOUJsI9cDfC YeqQ==; 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=Foa2iTgo; 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 38308e7fff4ca-2ef1d8acf9bsi9817301fa.50.2024.07.21.15.53.58; Sun, 21 Jul 2024 15:53:58 -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=Foa2iTgo; 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 56A4D68D6F4; Mon, 22 Jul 2024 01:53:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 841BF68D49F for ; Mon, 22 Jul 2024 01:53:48 +0300 (EEST) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-70d18112b60so520436b3a.1 for ; Sun, 21 Jul 2024 15:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721602426; x=1722207226; 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=OWkoOooC2Vp8K0bnjG2uyRK2Hx+L8xHPHTiiysP3VNg=; b=Foa2iTgo/EOXB2j6Bm4L1Sv0/L1Ea4q0sq/HYiBriFCeAiGgm/QzwnbdWk4wr06c9s Y3RomOL/DqMKqQ9mf0wenexH+7ltCmtMeUt6BLY/F2c7YLAsYZL5qMUYhwk3/b9PJQJ6 5Qy64PzG2Rj94ZpNm4jEbP4T0ECu7ONjCa7OgtqlIRMYdhPBMv/PVlqLN3ZOBNmzy6o/ TVK8dvJI97TCLqsYF8nG4bWeUvYRhiEsESV6uI2FP83lzGZ/Mrd6aOAVKNNiWM/VsDeB Q45OKhgL5FFPjdTyk8o2R/NX4MIy/dM6HE3TNV6lmOsWpSmehkE5zLsjqBvmehecpqsH H2fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721602426; x=1722207226; 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=OWkoOooC2Vp8K0bnjG2uyRK2Hx+L8xHPHTiiysP3VNg=; b=IB+1IEVKeOGdRyqwWDq+kEwVxR1sgs8Vd5W4X0oNGgSjP7IvEz8KBpI8bqXgkujAEz LJoFmkCo0chP5DOcd1rnWfyuW0kSkoV8/b3rY/muAHiTzGiOPLDVkhav+v57fkFaApXN Mps6fej0UMCV6fb4YFO1RNoLyLHQT2/B86fRd4AKR8z23OTZphIHDEz+XT12wCzLyvUu cuM/RlY6ye9A2L3WnI1oYLJiq0RtdHGwATCD83vbtKNe+xOV+mD2embael5DE81xJc8f ja43d5ymR3QzVSFDmZcg7viowb5KHtT7E7yGJWitOuStipCkTsPg3PwIFSs/+NwZyZDk Qv7g== X-Gm-Message-State: AOJu0Yz4q0eKihouWP72vWVpmqCvl6FhiVPdXY6aJkQADNEMnlGEwYPk jflDUyp+mOjSvDdjMS+O32H4YIxXhB348Wv+6OCgP3AD87+GZKr9UfXe2Q== X-Received: by 2002:a05:6a20:7f97:b0:1be:f834:4509 with SMTP id adf61e73a8af0-1c407852fd4mr18316852637.14.1721602425970; Sun, 21 Jul 2024 15:53:45 -0700 (PDT) Received: from localhost.localdomain ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70cff5538f6sm4223710b3a.100.2024.07.21.15.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jul 2024 15:53:45 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 21 Jul 2024 19:53:47 -0300 Message-ID: <20240721225350.298-1-jamrial@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/4 v2] 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: xyeUnGIjkzKW 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 673a9afb3b..8da5eb28c8 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] = { "Raw LCEVC metadata" }, [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 {