From patchwork Thu Sep 30 13:40:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30752 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp696142iob; Thu, 30 Sep 2021 06:57:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydMgit5VqeT9UKXFRGb0GiyZTG/q4SPbWJ8LM0varLYgdAFXHDGwipC0To5mrOvC4dRxl2 X-Received: by 2002:a05:6402:1c0e:: with SMTP id ck14mr7484882edb.377.1633010244100; Thu, 30 Sep 2021 06:57:24 -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 q15si2808512edc.177.2021.09.30.06.57.23; Thu, 30 Sep 2021 06:57:24 -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="WgsWf/Y1"; 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 67F9368AEC4; Thu, 30 Sep 2021 16:47:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2049.outbound.protection.outlook.com [40.92.90.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6BBF768A9FC for ; Thu, 30 Sep 2021 16:47:48 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hFKojPW3Oomqf/iJfQmFBvk5WdIws572ryLiZJgQ6gQCRrZRutZVs+NYVdnygcgZQCPRmRSeYHuQZQ6JLz8sPTbKcDeTBdcPAyXYSI5aS6PPZ6xM0Ex8G8GcppvUCJf4KxN0oLY3m7IiW8XS/IkXpk3woWUlEklLpz1G1a38p+W36ng7+XTj/WRAbUvMjCUz2mytuoiOhmUy6DFjYNFbguJ74zHXDejMtmjHCPW4TJKVJDW7Ti3uE92ZzaFXZlvJdJI5B9ENPeUiZ7k85XQUKDUI3zjs2mytn8QfwbBSmIWWNOfC6HQkUkXQbQbMFcN3Z/vX4L3JPQAMhBdxMutYyg== 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; bh=JFl2JwaPD9NzofFHdDBfXlRPjQC8fPYaFIFDHn+++RU=; b=R8MJISs//GhT+6td8Yt1hp6mb6IGRiZ4Ff+ODuWcPza0y4kj+s3iOwgQ+XEk2Ml62ICaLZ7Ad/HLBBLA6adjPEsdeeAgIslZd5vWjyc0rwi96ehxxIEtcBQjjzHb9SxhFW2tEhZr9MKipKmxZWf5Tx0SvlBBuoYPjgxrMx29Qs2kV07v33lq8vlcuEUzZS7wArc9lO6RKjWwzBvX456JKVu3w4GlP2fBrqQ1jNj4Enhb4aayIjlWVJCD8SdXEmzzTTxzrIxnTrycOddjKq3I/iPgqnvBln7/xYvk/wUo0KW+gtTzZd3dVobIiznT3ZrEoPQWe5++SPXhFEEuF4z89A== 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=JFl2JwaPD9NzofFHdDBfXlRPjQC8fPYaFIFDHn+++RU=; b=WgsWf/Y1c2fl9MdqsPq9KCVYiqwQRsvqbAdy7N5Bgx58exeIbFQ+LFYerbPc632CWPGOC3q2Eu0uhF29Zg1ODyWeYAOR9czGfm57fRC9uWnuzFYb7dNjTkUGMa0SrB6XCRKw9lklGogWJyon+UeMoFccZswLc4jjXXox+Wa7/RudUuBQB6heseriFnjurdNbTAagBl0xHm+gG4vgI0hgpiL9k/4RRCaSkNYKvdX+/KEZQIuEGaH6JuWm/w4GtWIx6jJyfnSQ+oLNyn4u0HIKy51cc5kMDB5JwyvIm2ISVBlQprRaQoaW1ByiJ6B2pzaJAGDAgtYkPVf3ztmGG745HA== Received: from PR3PR03MB6665.eurprd03.prod.outlook.com (2603:10a6:102:7d::6) by PR2PR03MB5161.eurprd03.prod.outlook.com (2603:10a6:101:1b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.13; Thu, 30 Sep 2021 13:47:43 +0000 Received: from PR3PR03MB6665.eurprd03.prod.outlook.com ([fe80::15d4:ff2d:e607:cf68]) by PR3PR03MB6665.eurprd03.prod.outlook.com ([fe80::15d4:ff2d:e607:cf68%3]) with mapi id 15.20.4566.015; Thu, 30 Sep 2021 13:47:43 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 30 Sep 2021 15:40:11 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [EIsDN8pHWALDeOcqmmCW1NQ41miPIWxn] X-ClientProxiedBy: AS9PR06CA0306.eurprd06.prod.outlook.com (2603:10a6:20b:45b::15) To PR3PR03MB6665.eurprd03.prod.outlook.com (2603:10a6:102:7d::6) X-Microsoft-Original-Message-ID: <20210930134239.2672698-69-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AS9PR06CA0306.eurprd06.prod.outlook.com (2603:10a6:20b:45b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15 via Frontend Transport; Thu, 30 Sep 2021 13:47:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 307f5f22-538c-4624-71c6-08d98418e0e6 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiQEFGYb/YN4yvKEtCzw5Q2l2+3H3DBlVYxbmAXhegqXhzc2m1wDklZUFF9U8+Q6CFtkNWsGNpjjcQ0NuVFZJvsk0CX1+S5aNrOEx6zifhXg+PejO6sdqvK1zge9MU8Xs2ZD80tFo55pZ++GS3R1U+Xy9hbTah4TCE/xBdiSvqaJZ8oUJtMcKfu0yQJV/AjurK+6dzpKEsAqcVNGKtdC06mNxLMhdB0av3jc4aCo+SPIz8CQhj/r/TpKJ/0tT+XFaWehE/iMq5/bSGnTtVBCjCrCRXwngYNpiVhutn0/9FruXUF1PyA8DY/XyTrVFF3cl9l8PQrQKNRJewn5iSZ+eEnLzmit/XIb2hgBsJpm0Nd360cOFveggn93aVYu7/zMaA5KvcmfGRqUXZhDz0+Y9p6R0370NBBoiTtUx34mDLmdgowmbE6jfZBve2H8wVfntJYsL5UXoHV6Y28dD8Vj7jK36GdesocqzmVek7BcKxoEF6Npir6G+3FofcJ9biCp8Fp6i7kE4FCoqnMhaYD9OU9bDQ6WyNJzMyKpulnTUOd3ankS5Qucz1mjpSD2jUTVYJnQpC0hA12xtngwDWed5MED46G5fcdf4lo+q0hthCHzC8fyy+SiV7sxqmw/FqPXMbfGJ+2MRr9LuDwvzAy+6E7yd9RmGbnwoDxxn6p8IE3mribtzQuDeK1eaRFlmGmBol/77Zlw6VuhBqDljbTuvNaRCmQI6EJGdqOIcEuSMREsbxndDBWUmTspEXLYPukBRDg= X-MS-TrafficTypeDiagnostic: PR2PR03MB5161: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j4iJqTk35y+gmqBafjcN/dom2Hqhzc4SPtBitnSqn8pPv3xQLQlTgGclu/bKF5UgWbh08bSZA7HUy1JMiR9kL/WOb6LA0y3SgtxjOpfEPN9Bg8sHA5cmGaaOtpUxelTLP3CakILp0ucvXIGqGpL4bMnEWPQbjoHXYh2zpQEoLijCHYzL6PVQGsByy5xlcGmWITgukX4qiLTfcslJ/3VUmkYR8sfo3NXRpdKvz5bgkEBwsP6E0IYK9nTPZYXqhOsGR4ZIAqTfdkmqtzDk5/tOsMFiHt3e/if6ndGtefKi/1En7Rz0dphHY/A8pMNZdwd/7FimT3fWs/O6fLBx2IgP5CTRUj/wAKMFFnV3e8wGoKmnGDzf4051hFwRRx2t9yDuU38DW5h1pC5OC+n52SmWj9dVf/WpyGNWHdUkfvk364X5PoYotN9U0EMHHAZYJ57R X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YQsA9fnXPQOnfXik/BKTgvWn+yphJEnjzPFEJVHYKWUMCFnSEk6Dkv4pxB06TUJBVDr/CIHFnQCAyyRYFHZT1GeALbHO67P8So/tqWeoEmF3vg6CctttNzINGQ1x+fLCGNOHVNmHxl6hVLmw568VHg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 307f5f22-538c-4624-71c6-08d98418e0e6 X-MS-Exchange-CrossTenant-AuthSource: PR3PR03MB6665.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2021 13:47:43.9156 (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: PR2PR03MB5161 Subject: [FFmpeg-devel] [PATCH 070/218] avfilter/vf_hqx: Store format in filter, remove query function 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: A93vJByWoeZd Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_hqx.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavfilter/vf_hqx.c b/libavfilter/vf_hqx.c index 7f4dc7af37..bc70d984e9 100644 --- a/libavfilter/vf_hqx.c +++ b/libavfilter/vf_hqx.c @@ -461,12 +461,6 @@ HQX_FUNC(2) HQX_FUNC(3) HQX_FUNC(4) -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVPixelFormat pix_fmts[] = {AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE}; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_output(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; @@ -556,7 +550,7 @@ const AVFilter ff_vf_hqx = { .init = init, FILTER_INPUTS(hqx_inputs), FILTER_OUTPUTS(hqx_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB32), .priv_class = &hqx_class, .flags = AVFILTER_FLAG_SLICE_THREADS, };