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 18E60478F7 for ; Sun, 26 Nov 2023 20:00:18 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BCE0668CF9D; Sun, 26 Nov 2023 21:59:03 +0200 (EET) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8E37568CF6B for ; Sun, 26 Nov 2023 21:58:51 +0200 (EET) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5079f3f3d7aso5133475e87.1 for ; Sun, 26 Nov 2023 11:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701028731; x=1701633531; 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=mOAdXU6pUlQr4xlr7mRlEdjaMVaghWl1VjLO20IsxD8=; b=Fj8qpTzP+qOsY0LB3ygKM6EY5ofOmN6E34dgzaxYeZomta6+j6odWsqciQJj7lqzXR aXB3hgnZUeJbOSbGxhEfHdHmgjoWMu07KTNSiF07dzplx0xCrtO21S6lowG8U1rQK/UU LB9873EcN3G43CQEtXIZ2rXHGp19e1X5dZTJdZb+CXzQSJtc5dUPlIb5OPXjRgahBQhv wf+k2kYuJRAu/EW4nrJxj4jDIXBb7ZJ3w0t4qMdyi42z+j+i9BB2UlbxpoxyIIibIkZS YXpj2B9+c8g/RLu+ptzuBWK/qryhd0ZuwVF4JTH5Oj8y8J2GJPT3EDzSwg4rvSz9+kWE iVuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701028731; x=1701633531; 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=mOAdXU6pUlQr4xlr7mRlEdjaMVaghWl1VjLO20IsxD8=; b=mSiZEkUowi+HDa5f0nN/R8g8NG6Tz96YiRDEwKapl3YfjoUd3FIVMLxbTJ8wPshYIO VJUozOfMRlOTNO88JZdBtwTyBZQ9fD9RUilp94w7HUT4VJBzHuOVZETNRdyBOrVAMPs+ kuZJaP5H152+YU+g8GfApAUox6ifdIlpUN+76DqmqvOaMyxXEtx4U6cjvDrtXWvPV/qY cOAE+0bv5OJguXZQKj6Nl3+Lx+jGOiQtQT6YS9+wMSNMnGo5Ug2CiAsY/jTOCcBbFE6M 81sc/pML9ywH/5G3m+HSaPveuHA9tXc6xyTY8MpqJSoY9y3JPVeNxLrS2uGGFSrZeg0i g+hw== X-Gm-Message-State: AOJu0YzgbXMPBnNBA5w2BwEwl/V1zOGlCOF3P6dBox8zMcffPysKNLfx H/2VtHm8ygW3oXd0L/SGQiIVjHWJNcM= X-Google-Smtp-Source: AGHT+IGu2WsujX5SYTbYrqQ4UIAkBkJJnet3AX5c1OISwwk2p6yHIdfCVd4k8hDna7721QgITNXo/w== X-Received: by 2002:a05:6512:3d91:b0:50a:a6e2:ae73 with SMTP id k17-20020a0565123d9100b0050aa6e2ae73mr3678576lfv.44.1701028730707; Sun, 26 Nov 2023 11:58:50 -0800 (PST) Received: from localhost.localdomain (91-153-198-187.elisa-laajakaista.fi. [91.153.198.187]) by smtp.gmail.com with ESMTPSA id k16-20020ac24f10000000b00500d1a72734sm1281833lfr.130.2023.11.26.11.58.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 11:58:50 -0800 (PST) From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= To: ffmpeg-devel@ffmpeg.org Date: Sun, 26 Nov 2023 21:58:28 +0200 Message-ID: <20231126195838.392467-10-jeebjp@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231126195838.392467-1-jeebjp@gmail.com> References: <20231126195838.392467-1-jeebjp@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v5 09/14] avcodec: add side data set 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 | 7 +++++++ libavcodec/options.c | 1 + 2 files changed, 8 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7fb44e28f4..0c1a8ade49 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2116,6 +2116,13 @@ 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 + */ + AVFrameSideDataSet frame_sd_set; } AVCodecContext; /** diff --git a/libavcodec/options.c b/libavcodec/options.c index a9b35ee1c3..e42a29e834 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -180,6 +180,7 @@ 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_set_uninit(&avctx->frame_sd_set); av_freep(pavctx); } -- 2.43.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".