From patchwork Fri Oct 4 08:42:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 52019 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:938f:0:b0:48e:c0f8:d0de with SMTP id z15csp257363vqg; Fri, 4 Oct 2024 01:43:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWSCcCf5vAfQq7vlfAAHhYl/ehWY7NYys8jM8Um3YLHCDKCRGOlJvc0a9Bw9pcdBwRVAxr2A7Xr7LHHijtYuywU@gmail.com X-Google-Smtp-Source: AGHT+IGoJ0BbSferpWRS9WaNmAK83MRqvdos+nCxvCV+0DansgRE5lp7j4n+gz9CAuQ0oV9dMEpU X-Received: by 2002:a05:6512:3088:b0:52f:368:5018 with SMTP id 2adb3069b0e04-539ab8adce3mr1089856e87.43.1728031392476; Fri, 04 Oct 2024 01:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728031392; cv=none; d=google.com; s=arc-20240605; b=ClTLlQt9aOvX+FoMQsu3WZUlKVMnXqBZPp38b/6/herblTxVULuKoV+HT2XZEX8DVl z4J+SoAj/Ey1p9sHmAAX2Pd+upYkW0Y6we7MsWgZUmV4wiZPJZlptHP80jZ5r3wI0wYW 4FlhzmWzYy9BxTE4MI4V0C3l2yGmMS+VHSjVaf+gjUEWWM7cdR4HPFxK47okAFxE9c+O 7UUoFNAw9ZKHzGEmrSX7TJk4P6Lg8o9ndHsf58Gkxu3xMDwpBMNd//lNVzR2PMdVK6a9 6xmWEHx69o42geF5G0T4oXjXlb5q36Ahcm0NEeB6NWgWJhW3eWrCFz/M+rw2+18gn8ld jpsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=pdvteRV3CdAPoCuAFCGUPAEBKl+fUuGp0jusAGqUS5I=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=GXtguxUyUXRA9WBxUeel0+2nOA6k9iFnXZpeuCN1PPXACz62Jc8Zm7h+IfCMeiU9T8 i+BU4rDHD0UE3DIDFBRoq5Z+Ccgh/T8RrRDcU5a+CVt6f3D+CSG77V69WPoBwo5NUqX2 y5K7IV3FjsArVtNPJI942969FZJ9H+Lw6wYKhOo6Fof/Or3cmzg0jD6azxdXtaSKLIaF k3szkmjySLW6oMLEMucSzWl2yB1smgm+pAAj3CI0Z2EwIVqchwvPbhWs3eOvXLT5iUSN sO2HWAYtLV3IQ57JYnkwFUz4vfFwDYNa/jjOidY9BoPk8f7FKKBrlUsomzg8eq4hMt65 HLiw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=E7HJKl2Z; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5c8ca3e2a85si1962388a12.144.2024.10.04.01.43.11; Fri, 04 Oct 2024 01:43:12 -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=@khirnov.net header.s=mail header.b=E7HJKl2Z; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E718D68DADA; Fri, 4 Oct 2024 11:42:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2D61368CFEA for ; Fri, 4 Oct 2024 11:42:51 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=E7HJKl2Z; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id C3C8D4E27 for ; Fri, 4 Oct 2024 10:42:50 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id LEmh75OTYuKC for ; Fri, 4 Oct 2024 10:42:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1728031369; bh=jhd49JTcyNuW/eBd5lx8HEbBNFtF9/bbjjoDYZqkmtk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=E7HJKl2ZWbJqbOAElNTsMSEJQzmLjCo/qc7rVMrDjbap0XV1IlJUFvNc65JeA4f9+ Gut3QDPyUDwIR3GwiZdazrTEVVf0W3+BMUOCzrzYzU0StbU8Jjf7/+GXuNO7pyJgN/ 2iVi/S/l1SUsYo8q56cA7h5Qh9Mft6WkDx6DpMsCF6OuCzx1YnkdrpmyRDBPdh9Cqt OFn+HxUAvw35eb5kyA7MAUmMT3YWOmT3QIPP1ZSyVnQN+eQt++l3ItHg6Lvm4e11cF hiSb70eiw3/EUza0pNcUEBQcfSnKpxD279gON8SkURitgg1yr0pzW2ym3AkTwulnBS TeXVI3sLEmDIw== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id AC540EFF for ; Fri, 4 Oct 2024 10:42:49 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 8C1E43A0F02 for ; Fri, 04 Oct 2024 10:42:49 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 4 Oct 2024 10:42:12 +0200 Message-ID: <20241004084230.27419-2-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241004084230.27419-1-anton@khirnov.net> References: <20241004084230.27419-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 02/20] lavfi/vf_boxblur: switch to query_func2() 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: l6O0t8KDqdWg --- libavfilter/vf_boxblur.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c index 27cf57a7c1..d684dee99d 100644 --- a/libavfilter/vf_boxblur.c +++ b/libavfilter/vf_boxblur.c @@ -55,7 +55,9 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&s->temp[1]); } -static int query_formats(AVFilterContext *ctx) +static int query_formats(const AVFilterContext *ctx, + AVFilterFormatsConfig **cfg_in, + AVFilterFormatsConfig **cfg_out) { AVFilterFormats *formats = NULL; int fmt, ret; @@ -69,7 +71,7 @@ static int query_formats(AVFilterContext *ctx) return ret; } - return ff_set_common_formats(ctx, formats); + return ff_set_common_formats2(ctx, cfg_in, cfg_out, formats); } static int config_input(AVFilterLink *inlink) @@ -303,6 +305,6 @@ const AVFilter ff_vf_boxblur = { .uninit = uninit, FILTER_INPUTS(avfilter_vf_boxblur_inputs), FILTER_OUTPUTS(ff_video_default_filterpad), - FILTER_QUERY_FUNC(query_formats), + FILTER_QUERY_FUNC2(query_formats), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, };