From patchwork Wed Nov 1 08:35:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 44468 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6da5:b0:15d:8365:d4b8 with SMTP id gl37csp288679pzb; Wed, 1 Nov 2023 01:35:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoOIMSrRPabHdjZjHpsHazaj2z9SDuLGCO0sT4gHihPlXCKjVwxPoO7EHfyfKMmLFVvEbk X-Received: by 2002:a05:6512:690:b0:503:2dcd:30ed with SMTP id t16-20020a056512069000b005032dcd30edmr9755123lfe.0.1698827738892; Wed, 01 Nov 2023 01:35:38 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w21-20020a50d795000000b0054360376dbasi523703edi.613.2023.11.01.01.35.16; Wed, 01 Nov 2023 01:35:38 -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=@outlook.com header.s=selector1 header.b=OqNSrxB7; arc=fail (body hash mismatch); 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3A01668CDE1; Wed, 1 Nov 2023 10:34:27 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2078.outbound.protection.outlook.com [40.92.89.78]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A0AA368CD9C for ; Wed, 1 Nov 2023 10:34:23 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DGX/Cdaj+2RAr74TdZkMEtyUWd2G7MTi85sziUeLua9esjglyc4nSgaZYFneZVEE2NVzhV5VMZM44S9ftZX2BTKXZ4L8v6UsAnXnCRTkV9vxcl4OSRFcXFHf8aXPILe4CRxGfCYKg8vAN7iMz8CTJpcgfblzlGhPqrEa+M15+nHyEuIoATY0ODNUJkYsU9XfgimYMbOURgwKYeqvJCHEYmJVOV2fCPWxEA8nCmD3lp+BLobZ0unJqrSfjBZcytyjUB7yodsPtbGsl7E+Nv1Io2Qw1GzwnlAqSw+nFM3Hg1HP77hMtbSQo1Sug3Nfv58fEFRpYhIbQUmNbERl9Q7+JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/LytBWWAemdBzGPqbxG5RvQFeVCwDmnvAdDSpAhjU9c=; b=Ixvo8Z1ejbbKKJtrgdDXvFH5Ys4v4lPHKxDglwW8cVOJ9pOqV3Igpg6Ek/VOIENgEFD8pwo3ezTDo7l+c1CcSUom9lxP7muXGfA9GfcXYnoSO/Xm2xZaS2wETE0627Qt+txM2VhypVn5sESDKPnLrCBKnk/ZjJj/ax/ETSpwwCCbVwg6+PtlVJHl2uBtQNUT4nHhBDuM468wlaUMFM03nHcWUS2NCYdxF+OQsP4t8J41yfOF3ZDCQwWCSQYnXBVDw3xUGjJUi3LXfgTzuNy0PZDJZT5fWP2dl01AVkVQUzqwKwFbktyXgL+XpqRzt7KaRtyB0VpHU1EpXR34KDCQ+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/LytBWWAemdBzGPqbxG5RvQFeVCwDmnvAdDSpAhjU9c=; b=OqNSrxB7ds3V3aKWwNd3jUOvz1ZyR12RR/eS1y8I4h/mV7gK+M1kHYyz9OVjjXMHke0lu+SyKCh5i191kXfsOJW3b6H4fwLjcIfndxz6b+YTTfGP7cljMU71vccQxRYDLn/nmdHu2yenq9cum2RNzMFt7Q6axhumseEZCBMXeaYZfrfaKASIQHnh1pRNPiKrCmDQB0WYkG1saWTIE+LWCm1i4wIe7qqsu4myHwCb2VXtD8xQeZB5EWsHra6XVpmMwWkaptUaYSbBPEQbgHlNHm5ty3g4MKThbMfz9WJoqda3s+RyC7RlHFNZDkPcPaLeD6UCIrRobgNTtRIqIhYvPA== Received: from GV1SPRMB0033.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8b::7) by AM8P250MB0215.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:326::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19; Wed, 1 Nov 2023 08:34:22 +0000 Received: from GV1SPRMB0033.EURP250.PROD.OUTLOOK.COM ([fe80::54a8:bde1:da41:a768]) by GV1SPRMB0033.EURP250.PROD.OUTLOOK.COM ([fe80::54a8:bde1:da41:a768%3]) with mapi id 15.20.6933.029; Wed, 1 Nov 2023 08:34:22 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 1 Nov 2023 09:35:10 +0100 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [wYh7pR4hZVtkTh3V5QM7Hlj24DWG9hC2jc8eCVsOxLE=] X-ClientProxiedBy: ZR0P278CA0193.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::23) To GV1SPRMB0033.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8b::7) X-Microsoft-Original-Message-ID: <20231101083512.3398680-8-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1SPRMB0033:EE_|AM8P250MB0215:EE_ X-MS-Office365-Filtering-Correlation-Id: f9bf237b-bda7-40a8-055c-08dbdab558cf X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZbcnPkvZJr4N5ic1v1zw4lzxetZVE69g3TYU1/Ui6msf/i2vIHO1WQ/AsK1Ey8AITy0P2w8uZoq5DP2EzmmzId0xG7dxS51bVWr6AEhQX/JutiX+mRD1834Gc91YlynUE36tp6bh/EGOhOCscp5qOn5adIrrK8HjYD3HDDCCGNiuQDTfNIH3JZjc4b1sBiIuAX0TfX1L21GJNZW+wqI2YL+Wj7plzDicBguDg2cWh/oRFevQaHvPCKpmsLhabfkNMdMIgsQqL1H4NRBUh2509KaY4OQMD2hohpjcFTunKO1OvkRazv8JTua9slUe+BAdfIYDYYN3LOBLa/sJN9/oZNyhcivrwnFfg7DbJhVIdxpP67KmFkowgeil3URbeF4JVSu99cSagEPl1ctfQBu8E/9nZCckFg+5gLMEXlzf4U2oTyLhFSzWLAT/sYphSahjqF/jAWchGku0z2T6b/G8Vhml1jIh3my3mtqtkYUAgFdPMMYYr6ze3JRu+K6+is5JkbPGiKafmEHLBci0NuKXBpQaTipfArmaeJvcClZw2FNbDy18bRYgx7FHKHdOrG7teiWVQbbF3ujkn3Wp4533PDbNN7y7ssQF/rXzQ8ZxRebsDNd/n+epruKtFt2h21mZ X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jUJUz8rcpHXmz4zJR4+hB+x3eQedKMf8JCAYuB/qXEg00RP+LyePow34RYsLJ7fhuu2xIN3LpHaeHPmOJX8akCg2Yw5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xPQcgrn890f9RI9+zzE6QxarxWX+E6HFMvj3owtLN+Rw2n4x1pvXWaUSjAlviK2OSP1RjDcyn2Gzb5L8Sbg5zI5p3ooY8hW5eYVV6IvzVWUHTlA6WRE154y9LJVwQE/3ZwA2/7 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9bf237b-bda7-40a8-055c-08dbdab558cf X-MS-Exchange-CrossTenant-AuthSource: GV1SPRMB0033.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 08:34:21.9277 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P250MB0215 Subject: [FFmpeg-devel] [PATCH 09/11] avfilter/vf_xmedian: Deduplicate outputs 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: mtJtsfNdP0kY Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_xmedian.c | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/libavfilter/vf_xmedian.c b/libavfilter/vf_xmedian.c index 0a02ca065e..ebcbea97ed 100644 --- a/libavfilter/vf_xmedian.c +++ b/libavfilter/vf_xmedian.c @@ -327,6 +327,14 @@ static int activate(AVFilterContext *ctx) return ff_framesync_activate(&s->fs); } +static const AVFilterPad outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .config_props = config_output, + }, +}; + #if CONFIG_XMEDIAN_FILTER static av_cold int xmedian_init(AVFilterContext *ctx) { @@ -363,14 +371,6 @@ static const AVOption xmedian_options[] = { { NULL }, }; -static const AVFilterPad outputs[] = { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .config_props = config_output, - }, -}; - FRAMESYNC_DEFINE_CLASS(xmedian, XMedianContext, fs); const AVFilter ff_vf_xmedian = { @@ -448,14 +448,6 @@ static const AVFilterPad tmedian_inputs[] = { }, }; -static const AVFilterPad tmedian_outputs[] = { - { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .config_props = config_output, - }, -}; - AVFILTER_DEFINE_CLASS(tmedian); const AVFilter ff_vf_tmedian = { @@ -464,7 +456,7 @@ const AVFilter ff_vf_tmedian = { .priv_size = sizeof(XMedianContext), .priv_class = &tmedian_class, FILTER_INPUTS(tmedian_inputs), - FILTER_OUTPUTS(tmedian_outputs), + FILTER_OUTPUTS(outputs), FILTER_PIXFMTS_ARRAY(pixel_fmts), .init = init, .uninit = uninit,