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 BAC7848F0F for ; Thu, 29 Feb 2024 16:44:52 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8086D68D217; Thu, 29 Feb 2024 18:43:34 +0200 (EET) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DDD9F68D1D2 for ; Thu, 29 Feb 2024 18:43:22 +0200 (EET) Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-512f3e75391so995326e87.2 for ; Thu, 29 Feb 2024 08:43:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709225002; x=1709829802; 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=UJ60Y6d2s7jR7c2UzI67UdLuOjQtYyrUKS6s5u/HmDk=; b=Ip6YINfhyMPTv2ZoPe53uuWpj6p//q8DRgWWtDi4Id5YtpHpdjXz9gRxWwFqg3auwQ Doi5nKfRL2NM0McySxvp56CdgI1Wry46SFVNz513DTUtaKL2O/4rktftFnOEuW9DVMEX S9mFhKu3hb7mmrKG3ST1GJYuy5e2K0d94lgrXpBi5HSIUUJ235KB2/4J9sC+TFu7v8UW Y3K3GptiuK6pJ6gg6UFxtTJaa3kvz3Lu6C7aL7j6mo3Xmo6EBJpfygt7whbjzRbxVayq hU5IRN0BppYw+i6xiZqj6yWPD4wvgmZYPrTb2/xhZY40ZAI+Ztvy+8Dw2RwZndUunhVm mk9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709225002; x=1709829802; 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=UJ60Y6d2s7jR7c2UzI67UdLuOjQtYyrUKS6s5u/HmDk=; b=meNUuwU2vjxy4qNI5559m3w65Gq3M/AZrA7sRz3BDcmtSB4UMv5DPJjnK4SD1mc29W 59QV202U4jYCxlElNHgeFAMpYIid/oRgO6NtbqTYT298/S5zXfKhX/BUdinf5GG9kwTY CXVlyWDg7CuzZmNmR/khU5/H3KUcmHKWE1PzirS8RLkJUSxRgvpCQcJBwBT74Ssf56NW htu1BV48KhxxgFH3iknAKVeyxAP9R+bAM568H87U8ZyLaRkgRUkdjXchlSmViEiNLDb1 vx4ZZfzgaaA2Aq6iAllE0RZ0JnEziS9esKYMzer6L78AtrLo6L1rskPToD854R3Tf5T+ 83gQ== X-Gm-Message-State: AOJu0YzdMVKsbkTplGH9VcVtKXhBPRNut1fRFS+ZpPl0+zlPVf4Sv2/i CcgzpX37xg2oalzhObZ+mJMzzWxcqBhO/Ywa9KZn3cdCOnvBdHe33cto1Amf X-Google-Smtp-Source: AGHT+IEv6RU1Ut8Izd1wZ6tfnmbhmD+yXfnBWs8gUkCXkGxz2/L5UFthgW2NmvkekrXtdISxTeD3Fg== X-Received: by 2002:ac2:5228:0:b0:513:24f3:7f05 with SMTP id i8-20020ac25228000000b0051324f37f05mr1584925lfl.17.1709225002041; Thu, 29 Feb 2024 08:43:22 -0800 (PST) Received: from localhost.localdomain (91-153-198-187.elisa-laajakaista.fi. [91.153.198.187]) by smtp.gmail.com with ESMTPSA id k6-20020ac24566000000b00513290734cbsm206248lfm.292.2024.02.29.08.43.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 08:43:21 -0800 (PST) From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= To: ffmpeg-devel@ffmpeg.org Date: Thu, 29 Feb 2024 18:42:56 +0200 Message-ID: <20240229164307.3535613-10-jeebjp@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240229164307.3535613-1-jeebjp@gmail.com> References: <20240229164307.3535613-1-jeebjp@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v7 09/14] avcodec: add frame side data array to AVCodecContext 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 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: This allows configuring an encoder by using AVFrameSideData. --- libavcodec/avcodec.h | 8 ++++++++ libavcodec/options.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 43859251cc..411f4caad3 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2120,6 +2120,14 @@ typedef struct AVCodecContext { * an error. */ int64_t frame_num; + + /** + * Set containing static side data, such as HDR10 CLL / MDCV structures. + * - encoding: set by user + * - decoding: unused + */ + AVFrameSideData **frame_side_data; + int nb_frame_side_data; } AVCodecContext; /** diff --git a/libavcodec/options.c b/libavcodec/options.c index 928e430ce9..7e39b49b7e 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -181,6 +181,8 @@ void avcodec_free_context(AVCodecContext **pavctx) av_freep(&avctx->inter_matrix); av_freep(&avctx->rc_override); av_channel_layout_uninit(&avctx->ch_layout); + av_frame_side_data_free( + &avctx->frame_side_data, &avctx->nb_frame_side_data); av_freep(pavctx); } -- 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".