From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTPS id B9E664E145
	for <ffmpegdev@gitmailbox.com>; Sat,  8 Mar 2025 20:17:55 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4C73D68E7AC;
	Sat,  8 Mar 2025 22:17:12 +0200 (EET)
Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com
 [209.85.214.173])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 53C3A68E79A
 for <ffmpeg-devel@ffmpeg.org>; Sat,  8 Mar 2025 22:17:10 +0200 (EET)
Received: by mail-pl1-f173.google.com with SMTP id
 d9443c01a7336-2234e4b079cso52910445ad.1
 for <ffmpeg-devel@ffmpeg.org>; Sat, 08 Mar 2025 12:17:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1741465028; x=1742069828; darn=ffmpeg.org;
 h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date
 :references:in-reply-to:message-id:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=RLDPCbIqj1ywV+JBFmfE+FrrTqVCcD3ubi8HpoFa8z4=;
 b=a+GvoB0FXoU1r8dNBomnItDfD0/MOi5TvZRxAfJBbYfMkPFdsV2zWJ0/UNlHIMHKtW
 12lX1pX01Dn0dpse3zU/LVPBUJ/TdOszHeo8Hltkr5e07Zt4HG7cm1KUZfYUt2Cj/CqU
 JO3QEFNZD90+kJPC3NpWwikfHnYK7Rpy+l/UKusawNYO7aR3FEHdXpLXYqiXoOgHhnMl
 il+8MHsGXchLMqBtvUBoxbU+PNnq/u/yt1Izo2EN+3sbAjqC2udVTLryr+UFPGxz1Fuw
 SIgofkUzwU4NsPQcXV2jQOU+CihYGfc65d354Cdzfb5Vykfy+c5aFCv8AgY5yLUb4Xbz
 OGwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1741465028; x=1742069828;
 h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date
 :references:in-reply-to:message-id:from:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=RLDPCbIqj1ywV+JBFmfE+FrrTqVCcD3ubi8HpoFa8z4=;
 b=V0tWuPqSs6DZSV4dRRdllZuBxbl+W0AZkSgth9Cvbw104h7vioJkWQ0ZIrgtTVdGMn
 uhler4AIlHUAgwDuVn3gh4hJndhLJCgEHVyGRkdH8VGJpYWKyEpyzYLixPbfhIKVEYlv
 VKu2wDTzjv0tlm+2pq0hRZ/76rkvoyizp//jYauYaik8kvSGuUHV/f8Yf3UizNTWbtiM
 y5LSBuP1bJa4uGZDxkPxi8xHvdBGgQ9BYKIhmBsInYCR4/fPe0pg80K1LojRJFPYMCQ9
 MeMg9b3l47KN0AGvY2mROiG4cvTCctQkqYQEOuAQZeGlxohdOwlv1gWQNa5DL2M1BV6w
 hdpg==
X-Gm-Message-State: AOJu0Yx4IHkysUhnYJDa3og9uxw/tSeqO3BupS6hAIli+x5apitFmSmp
 8+EtsgsLxltZXW0S2kNDlwXsKHghDvGMgZdpsYCMnmeFc88RQrVTXmtkI+GA
X-Gm-Gg: ASbGncvaov4Rn3vwR4tZDSx/1njdh9iMJx2b84Ao4ydrPg7yYNPfGwZWHxO0UvpcNRa
 dv62TcY+aS7JtxIvTwDLBLrTPYKNWqNjKvz1DLxT0fmLY48hIyFpYj6cDpcHi4jwB0pbNZ0oZ3F
 Us18npKKTUshTrwg9jPKo7s9m8OeivebF4ObKR62I4xmWkRG11jFeMrJuQB2mcOas0ywZIORxCp
 D11UhHl4KR4eght+TDN9yAsdIZGQpJbgpgdkK+9dRm4l20VA/xgUNF+DsUqZzk9P2lNMWWJoL60
 lj0d090dIT6j6kIsw8Vu6RE8w1Dha7ovyEhdipzNksB2BU41zTm6l3vO1zvzHvPiicpBEk3zqA=
 =
X-Google-Smtp-Source: AGHT+IG+swHURFK9ttqaWHwTVKUxxkOZZk9MH3+b60+EMVRwuMI/lN+kDbeQfqqT7CThaY8D74wUJA==
X-Received: by 2002:a17:902:d2c4:b0:224:abb:92c with SMTP id
 d9443c01a7336-22428c0d384mr129875635ad.50.1741465028474; 
 Sat, 08 Mar 2025 12:17:08 -0800 (PST)
Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-224109e8617sm50450165ad.61.2025.03.08.12.17.08
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 08 Mar 2025 12:17:08 -0800 (PST)
From: softworkz <ffmpegagent@gmail.com>
X-Google-Original-From: softworkz <softworkz@hotmail.com>
Message-Id: <811c5ab35c384894e6504b9a55738c0f9c483048.1741464994.git.ffmpegagent@gmail.com>
In-Reply-To: <pull.52.v6.ffstaging.FFmpeg.1741464994.ffmpegagent@gmail.com>
References: <pull.52.v5.ffstaging.FFmpeg.1741456535.ffmpegagent@gmail.com>
 <pull.52.v6.ffstaging.FFmpeg.1741464994.ffmpegagent@gmail.com>
Date: Sat, 08 Mar 2025 20:16:31 +0000
Fcc: Sent
MIME-Version: 1.0
To: ffmpeg-devel@ffmpeg.org
Subject: [FFmpeg-devel] [PATCH v6 5/8] avfilter/avfilter: Add
 avfilter_link_get_hw_frames_ctx()
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: softworkz <softworkz@hotmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/811c5ab35c384894e6504b9a55738c0f9c483048.1741464994.git.ffmpegagent@gmail.com/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>

From: softworkz <softworkz@hotmail.com>

---
 doc/APIchanges         |  3 +++
 libavfilter/avfilter.c |  9 +++++++++
 libavfilter/avfilter.h | 12 ++++++++++++
 libavfilter/version.h  |  2 +-
 4 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index 5a64836e25..354716399d 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07
 
 API changes, most recent first:
 
+2025-02-xx - xxxxxxxxxx - lavfi 10.10.100 - avfilter.h
+  Add avfilter_link_get_hw_frames_ctx().
+
 2025-03-01 - xxxxxxxxxx - lavu 59.58.100 - pixfmt.h
   Add AV_PIX_FMT_GRAY32BE and AV_PIX_FMT_GRAY32LE.
 
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index e732556ffa..13abd7e8ad 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -1006,6 +1006,15 @@ enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx)
     return pads[pad_idx].type;
 }
 
+AVBufferRef *avfilter_link_get_hw_frames_ctx(AVFilterLink *link)
+{
+    FilterLink* plink = ff_filter_link(link);
+    if (plink->hw_frames_ctx)
+        return av_buffer_ref(plink->hw_frames_ctx);
+
+    return NULL;
+}
+
 static int default_filter_frame(AVFilterLink *link, AVFrame *frame)
 {
     return ff_filter_frame(link->dst->outputs[0], frame);
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 4520d5f978..27c50520b3 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -96,6 +96,18 @@ const char *avfilter_pad_get_name(const AVFilterPad *pads, int pad_idx);
  */
 enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx);
 
+/**
+ * Get the hardware frames context of a filter link.
+ *
+ * @param link an AVFilterLink
+ *
+ * @return a ref-counted copy of the link's hw_frames_ctx if there's a hardware
+ *         frames context associated with the link or NULL otherwise.
+ *         The returned AVBufferRef needs to be released with av_buffer_unref()
+ *         when it's no longer used.
+ */
+AVBufferRef* avfilter_link_get_hw_frames_ctx(AVFilterLink *link);
+
 /**
  * Lists of formats / etc. supported by an end of a link.
  *
diff --git a/libavfilter/version.h b/libavfilter/version.h
index 77f38cb9b4..4a69d6be98 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -31,7 +31,7 @@
 
 #include "version_major.h"
 
-#define LIBAVFILTER_VERSION_MINOR   9
+#define LIBAVFILTER_VERSION_MINOR  10
 #define LIBAVFILTER_VERSION_MICRO 100
 
 
-- 
ffmpeg-codebot

_______________________________________________
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".