From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 84DCB4A1B5 for ; Sat, 23 Mar 2024 17:38:27 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4405368D469; Sat, 23 Mar 2024 19:37:53 +0200 (EET) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3409968D33F for ; Sat, 23 Mar 2024 19:37:42 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1711215462; bh=QBzakJp46eM72L5l2pDevG8laU7rCQxT75HJiFeudnk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RUYhGc5iIBQCT/++QggxUJe/Tk/4VTBD5PPk+Gh2j27DMhvhnEngYSU7yrwYJAOqL 679zmRLjXsPWfHnW5ov1GpSgT8t4q2kwpBDMx2T2MtPQfP4tcXHhFXFVe0ovO0mGNE 71AHp0vZBsykYv3L21UBpjMWDvZQKsKaGYwZL9OM= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id EBD05429E8; Sat, 23 Mar 2024 18:37:41 +0100 (CET) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Sat, 23 Mar 2024 18:37:34 +0100 Message-ID: <20240323173735.26224-5-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240323173735.26224-1-ffmpeg@haasn.xyz> References: <20240323173735.26224-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 5/6] avcodec/dovi_rpu: add ext_blocks array to DOVIContext 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 Cc: Niklas Haas Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Niklas Haas --- libavcodec/dovi_rpu.c | 1 + libavcodec/dovi_rpu.h | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c index cd54c8716dc..21cb1850e3e 100644 --- a/libavcodec/dovi_rpu.c +++ b/libavcodec/dovi_rpu.c @@ -48,6 +48,7 @@ void ff_dovi_ctx_unref(DOVIContext *s) for (int i = 0; i < FF_ARRAY_ELEMS(s->vdr); i++) ff_refstruct_unref(&s->vdr[i]); av_free(s->rpu_buf); + av_free(s->ext_blocks); *s = (DOVIContext) { .logctx = s->logctx, diff --git a/libavcodec/dovi_rpu.h b/libavcodec/dovi_rpu.h index f88fbf9b558..c632a83f46b 100644 --- a/libavcodec/dovi_rpu.h +++ b/libavcodec/dovi_rpu.h @@ -44,6 +44,12 @@ typedef struct DOVIContext { const AVDOVIDataMapping *mapping; const AVDOVIColorMetadata *color; + /** + * Currently active extension blocks, updates on every ff_dovi_rpu_parse() + */ + AVDOVIDmData *ext_blocks; + int num_ext_blocks; + /** * Private fields internal to dovi_rpu.c */ @@ -51,6 +57,7 @@ typedef struct DOVIContext { uint8_t dv_profile; uint8_t *rpu_buf; ///< temporary buffer unsigned rpu_buf_sz; + unsigned ext_blocks_sz; } DOVIContext; -- 2.44.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".