From patchwork Sun Mar 31 05:31:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47680 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp94416pzb; Sat, 30 Mar 2024 22:32:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXqf72640Eo9v/4+MD5H5XIfrRIVRaXJZDhcg1cDnP09VD2zHnZ19H/ESnPivbtEqx5RHoe9INoq2+p9XarDXjA/OUNHu3HLSWFrw== X-Google-Smtp-Source: AGHT+IFdRxi0LHcXHewbpA55mIRbiIZ2eAaN1FhLBwJDzpLo+w/nCSq3uwUmgonf9lqjcd+pbcmr X-Received: by 2002:a17:906:6a24:b0:a4e:48d6:ba1f with SMTP id qw36-20020a1709066a2400b00a4e48d6ba1fmr3115244ejc.55.1711863125892; Sat, 30 Mar 2024 22:32:05 -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 hq16-20020a1709073f1000b00a4e30c8c0a1si2468532ejc.219.2024.03.30.22.32.05; Sat, 30 Mar 2024 22:32:05 -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=gvDkfQbn; 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 C3CBF68CD4B; Sun, 31 Mar 2024 08:31:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03olkn2013.outbound.protection.outlook.com [40.92.57.13]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A71AB68CAED for ; Sun, 31 Mar 2024 08:31:47 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BHsmsdNxRwcV+cKs4Lo3iYVT2Wx9E5MAW+6/lUJBOctJWCzRN6oVRiPwD2gzmpE0QsI5v+fl1HazCFHnuzL8E2YlPLGHb16fQwsb1vewj8hgccN7sOScmeiQ809qnm5ruESVeaUTjgTWil41sX3ijWf8lU7ZESBvKvjRsbMWDMRPpr/P72rYM8gE/EdA5ckV8XEaL9dfPM/32O7e/JBOcf6DfJ9JB/BO8x6AvdZmcLhythBbnwuTnc7jz3JtYYehuTHherLaCsUXHwTJI2Gc9/Ruu/zhk6jOchwKSLosTVayFZan+If9H/CzSDaNTqk8ZfqVPwNRx/4jUOTX/aDAKA== 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=+sCFabhRFgymHINIaHFyDDDLjwYcITY3uCN6yjk+Ek4=; b=VFfNWK4fxS6MWLVgN75Z4XEaBxytwmgXyugw5gkIDHdkEPD0+xkcSOMePtTHgf/4Alw8IPhwH5+ywOBOEQa7FpBbC19xOSJFhbo2+mAmOKU4N3DF4gJ/t/WwSVqg67G6QxdVdQuoGRQZm3Z1KAEgV+bCXwbaiF4L0Vvonbwn+19FSN77VGaCPIwN2VKmqJUaM0EILcHQPRoNEuWP/ObrHAsQelYAKKpuFGC6rTjzsIanWR7rAbuN8fflC5K+Vy7QuSsgtXn3YDoVxs1bxtM+FqOjCMszFBt+rEL4mijzw9LeV5TyzFKgByLCLQEJGmyZ3m7GwgzZIPqcowRall6B6w== 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=+sCFabhRFgymHINIaHFyDDDLjwYcITY3uCN6yjk+Ek4=; b=gvDkfQbndUWDJ/OxtrGOwaT6OKYxJ0U+yg2/UStDQURQpX/Wzbyx9r+rGsk/ogLqLQajHnu5VgNieAucRGjzl+5anY+cB1YplVaWeskQ31wlfV0P7xhHxTbPPkLn/778BnIH0g578b9h6ZxlH/DSb8MkCdwpzvkN+ckF08v26F90k2L3FevD97U238Nz6iJ1vkikCM3n9+dIGzmoi1X2UmW3TfKwqQFFq8beounVtNCM2nyuuFc3bhCxeVyDr/On9DmosZWRDrSTI/vWFO4w0nkhAtg2MPe8S+qgOzZ9ySCDCqHDCC/E8Z68HN3PYQPsYv/H2o27vCu+T3yBOV1cgg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS4P250MB0416.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:4c3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.43; Sun, 31 Mar 2024 05:31:37 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d%4]) with mapi id 15.20.7409.042; Sun, 31 Mar 2024 05:31:37 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 31 Mar 2024 07:31:19 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [fNeXRDLEeuMiHImKfH+Pf+awX+YFNjRawPJfSNECgXg=] X-ClientProxiedBy: ZR2P278CA0020.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:46::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240331053123.293740-5-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|AS4P250MB0416:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b9f14ea-1083-46cf-dd1b-08dc5143d603 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8ONm6TSF5v2DD/8bcyUmwttWLSjWFiUzRH3KrjiVxlzppRZ1uaf3va5cUWSzP/dr9FysStjfZs2WwE04RKDnvAFHBc0fkFeGl9jYYbQ5cxnAq+sYb/bqcY+c8pbfQKhR2VCf5E2qz1qhcNoCSSQvHRaT27EqtpHwOCujAIxVSVtmzdHTptj+QToFWvemYAa4bNOe6de/LLxVROa82isEtHtqEu5aTvkmium80DYjTbCRXbYYL6DGl+QPDRmRMAMr7/yM9m8kSBWDkx7XhUqPLoMbUrNa9vBqn+Me+b3cczNogjpIsdaQ7ucN+FxZ5k5bLSxKyvAPTZibJNj2MZhJFfforrFJJRY+BYX8ZoTubLrAOErTaxi3uNmWA/9uf1R2UvrXlofhgxwMTZIV6BR96OwDLZeyWmN57967TQX0RSkKJsMy07swAw5mXMIPBrQOZEWKNj9pdVlTcCq17WGnviwZjoh8hSBWeNYP7ih+Zn6GClSvduNBCFFEsFCwiioWt+a1Y2wJHK9RaQ8pNM1mSvG18i0KpI3gXelbyC7XMVNzAw2X44Bdv4cwuGj3BfrZQljK59ZqEJpT3b1qIkviS3mhJpFQYTrHmcc9nNLpdEg/6NgHIAz0ajuH6knZszK5 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5C+GsAKIzQ03ygAxeV6+Ojs1SHGyX4gpu/1LrSQ1t/T6tOhOX9OpynQTmGXbCX+woS6/OkNcA+BFv+IzEiE1lZiHIwLXFTn/JZTmKo/OKyBNH8tE6J5O2XOSi+TaaYBEr8bZhf3n0BVzMXV4AVDlwMGq7IurKwEwzVStEPL24feSi2ScIh7jHGl/IGDpOfKUDHV2LUPB8mNrsogZ7Nv/KH66vk2lS1/masO5gU2pi41rXUNWqP4e3iwnLTt1i0B22kM0lTMOM1IuKkRFSpgy+o6yZ5/SIUjYP8X4IA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b9f14ea-1083-46cf-dd1b-08dc5143d603 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2024 05:31:37.6839 (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: AS4P250MB0416 Subject: [FFmpeg-devel] [PATCH 06/10] avfilter/vf_vflip: Remove empty options and AVClass 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: H4F6NC99HPhU This filter only had an AVClass and empty options because up until recently, avfilter_init_str() errored out when options were provided for a filter without an AVClass. But setting (generic) options is necessary to take advantage of timeline support. So with avfilter_init_str() fixed, the AVClass and the options can be removed. Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_vflip.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c index 8d6724ed37..d72605bef0 100644 --- a/libavfilter/vf_vflip.c +++ b/libavfilter/vf_vflip.c @@ -24,24 +24,16 @@ */ #include "libavutil/internal.h" -#include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "avfilter.h" #include "internal.h" #include "video.h" typedef struct FlipContext { - const AVClass *class; int vsub; ///< vertical chroma subsampling int bayer; } FlipContext; -static const AVOption vflip_options[] = { - { NULL } -}; - -AVFILTER_DEFINE_CLASS(vflip); - static int config_input(AVFilterLink *link) { FlipContext *flip = link->dst->priv; @@ -139,7 +131,6 @@ const AVFilter ff_vf_vflip = { .name = "vflip", .description = NULL_IF_CONFIG_SMALL("Flip the input video vertically."), .priv_size = sizeof(FlipContext), - .priv_class = &vflip_class, FILTER_INPUTS(avfilter_vf_vflip_inputs), FILTER_OUTPUTS(ff_video_default_filterpad), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,