From patchwork Thu Sep 30 13:40:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30723 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp695837iob; Thu, 30 Sep 2021 06:57:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf7Dnc6XSC78cZSMXsj5EbhsFiylITN67LqobG009ysisnF2BbwDaFkisOcJmeDabz9/Mf X-Received: by 2002:a17:906:2b84:: with SMTP id m4mr6950676ejg.179.1633010220695; Thu, 30 Sep 2021 06:57:00 -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 r24si3444163edi.292.2021.09.30.06.57.00; Thu, 30 Sep 2021 06:57:00 -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=mMLvInjE; 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 97F8368AEA3; Thu, 30 Sep 2021 16:47:43 +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-vi1eur05olkn2069.outbound.protection.outlook.com [40.92.90.69]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 51D3368A874 for ; Thu, 30 Sep 2021 16:47:41 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lMdJL/bl54K/aZ1uYCYF7w4g4aGglTWxW5Ws+NXu1sN7Ua1GOt3BOHNT/icSLyttbow0PecgrUlN5PHw5LxSftGfoP47OhUiXVkLd3rN7ylDbyAeGEvCkxfq/zlnNDJ5SvmxlJVoL0KryjYPvc0RXr8Vw0p41pSJPDOLz0SgeyJbuT/QL9qSKVMNZDyLU2zQxbA2c+5uKIqxHUnJJkuURMe2CUQH2Kzr8TKrj6h3U7yK2EKnuux9lO+UV2R6d6Su6VongApwSv2JTL9TO+wOSEnelndYQJciTyR2gbHYvjmMCJCdAtrMw6ENeXoGK6UazWG+lrjHe1pVtLK1PNwmtQ== 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=5CIhQS157pIl9yWYFSibTP+qjCglmZjNqzSHHYRL3jo=; b=Uo9CJFEoSxE8l0JMOTLJBoqiVA9UEP8gghZaK5kkx/ig29/pqZTtU1RQk9givfwRsAa4pkAMhYJVVCgIgUq4XsFkLYiqeT5ew053LT+ECmt+Hkd6WFekzAtl4a8wd4vp5/YLjuzc5jbIkbCYelp6/sLeTaczBAOXWw/d8Uyhf8R7fSi++6vVqpon1YJf63Ohx6BICfuNEYpCEA46/2JlMMyYrl6UZADAaDfoC6fOSX410iHh2qn5wzlxcspseSgwld80W8fOAdGWWZfGPRW2JutH1xd2ocWT7GQWT7tApHQbZFLHUoaw8Qu38o7392Oex/j4EM5zB7Ec1pmJ9ms8Sw== 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=5CIhQS157pIl9yWYFSibTP+qjCglmZjNqzSHHYRL3jo=; b=mMLvInjEi9HzKwdtYgEUrxwgT2U1i6kRJlYDXPFTU3hC87Ajko31sGzXLpIlwtfM8b3hPRmrQTVFaB4GC1mQCBPEDlTE9rn6+2PxZe6/sKygVM1I7u5kM+Oes5IEaN/uUDI+DXff3XPJ7DIHqtioKtQl15+ZIj2LSCsY+71UwRG8Llt12LGuXIr89+CAUUTR2E7ZC7IfNathi5mjqf47U2nGbSil5+v6dQmdDfXrctifobI38Kb8Tkv1UnwxuaeZ9UsIh3rxyj14UFVzHDvQTmapdvGp6ufVc5CN9hySfPjyw7Q/C+YQaigP3IGkqcBSpAV7HnsF2fu7dCpb041L+A== 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:39 +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:39 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 30 Sep 2021 15:40:09 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [+ktA5QYT2GDTBfKzV4T65abeKSrOn5cv] 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-67-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:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 27dfaa36-d35c-4fa4-167c-08d98418de55 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiQEFGYb/YN4yvKEtCzw5Q2lK7Q8FL92qbOb9dbQKGMX4cWJbLJWCQVUuPh6b6cOQUQF3M3rVPR3tgAigQR1oBGSMgz2lSD8w4iGyiTH1C+VffqbjAjjxG7vSzZg6oORUJ76oruUEAfGjugfeaCvKVWSfHq9vK7RiMRiAKKxzKngwnl5ztzvHt9OWUny+8n5ppBctbC4WY9BRYTnnFZ4/cZjC32FoYhiKbyHCwMkWBHYMi5EpJAIiisWjWLKsQvo64Xt0cJde3IjaUvfeTqlG4j9YC9pwLWBkUfBogRoEfobYkVZJi/nyT8h5Xvh1Lovq1wW04RCp/ieTmR0kgdYlj6akKDcRFAggOG8+3GmUB/cxsyuVYVRzqRl6ZbdtGFRRqZBSvWFGOsjDEzYtqwGTVgj/nJEp+/EuOy7n4HG8iOcaeJkoZZ8En2z3gJTGIyNIvoSba/gXU5LEzb7QZv2EWlICc+P6DKec3HSL4aervj9vhQCZ12jCfOfp3WLk7tW95xqEcQFel3v5c/qde4Wm90ZdkuLeB2EH7GYFm4T8ENXoiAP6bq6wjDox5YEnNdRkSlqkiII8K+uRkZePTYkIDqiktEdm1TAtO3OyeR+CztVTVkkQmWp7rviGVKXrSh+yLR4GtIP7ev4cq78ZsA9L2SNDgNhfBbfRrp0zr4vJApLNvn9QNL+TK9OgjlRFo4Hcg1R7skEqC3XDy53GxrpBOYPfuzrRXNOmh0CT1RCKmrivi6xBOfxn3mdw7cfbzgxhao= X-MS-TrafficTypeDiagnostic: PR2PR03MB5161: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YlcsnmskHHfyAyGrbEpFKNasbvnnLnlS3nu477yqoxaKw2HX2fKI2VdgKlilq8Ij7j0myniM6HC/8aXkrBniS7hnSdQxOhnsoGZPX2ust/PZBy0hQHWIEUF7SWmnU81oo/MSmREED3hqtfnFqqkwfpUUrDDiNuhC3MdpYhS8AoN9XK/yqgpauudD/B756HhO3KlzDmWlcbUj+ruMQgg8LqvgcqOZPfZjL+yJqgQjKhjb4o7EEHEqTPvBGZSvpZbv4Cm9iis4zK/MihlJEMfK/a2L0zuL3C1ZTwyTxBFr3k8RCtJoQ5CQ/rJhIsx1gcJzu2u/AOWBlL16n3pB/zRG1+sED8yZZb1SjPOStmOr4S8HSfkOV6j5y3reb1tKTCMcL2g0Q/Z/UbFEmdv+gMLisj1STjyqXQb6KWi8jFm3NLD5AG11hztEVFbZv7xlNwYk X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ylXAe9NJ0qFd4kinovhprWd4vXzKqgJFCGLdoMDMEPa0pm/FQYiX/u+adkMHITwmBPejSe5WWLFRl41ZEx7kJwo+cf9YkPPzT2OG17HBmjaTklIsZBIDIoslRsi5C5QLeNlys6jqyj2ngyMqBDEqyA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27dfaa36-d35c-4fa4-167c-08d98418de55 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:39.7619 (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 068/218] avfilter/vf_exposure: Use formats list instead of 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: sgQJo22vhxU0 Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_exposure.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libavfilter/vf_exposure.c b/libavfilter/vf_exposure.c index 6443eb77f1..108fba7930 100644 --- a/libavfilter/vf_exposure.c +++ b/libavfilter/vf_exposure.c @@ -75,16 +75,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) return ff_filter_frame(ctx->outputs[0], frame); } -static av_cold int query_formats(AVFilterContext *ctx) -{ - static const enum AVPixelFormat pixel_fmts[] = { - AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32, - AV_PIX_FMT_NONE - }; - - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} - static av_cold int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -130,7 +120,7 @@ const AVFilter ff_vf_exposure = { .priv_class = &exposure_class, FILTER_INPUTS(exposure_inputs), FILTER_OUTPUTS(exposure_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS(AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, .process_command = ff_filter_process_command, };