From patchwork Wed Feb 14 22:06:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 46292 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:b819:b0:19e:cdac:8cce with SMTP id fi25csp224382pzb; Wed, 14 Feb 2024 14:07:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX3nbnfaiEy4HuxVvi86GWhJvI1dvQUnoT8SVPma9A7B6Yfr727OgKw08OlB3du8XAJZmFFZQtwJUqyO0m6e+uOUg3YSSUnECMykw== X-Google-Smtp-Source: AGHT+IF8GT7nWRZXw7M+bm1GxUZhoSafgFluSbCILp2R63dri5qQjmzh8yZS7xZQwZc3pGhm7oqi X-Received: by 2002:a17:906:6946:b0:a36:f811:1050 with SMTP id c6-20020a170906694600b00a36f8111050mr2707451ejs.45.1707948461825; Wed, 14 Feb 2024 14:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707948461; cv=none; d=google.com; s=arc-20160816; b=hJgPUHZcAZFFw+90wD4x12f83tjoOqrgpuCpnLefsEnbLekekyCfrxVjf3DLbCi2sI U2bY6Xj8Q1xCW8gA//pJ+cbqtx24I/5kEuXiSKUPHSU/6IedhzuJ3Xzapf3orjmekV0U cR+Hju7Gt4HtWrfgmKUNJS0q13tqFXLSBol5w9asg/MGFfeCWsodqsRrHMEoEUgMROqB PxMhgTEabyRKd+C3eQYIumc5y9XMfbyK3k3IXV5j1LwwaLxGJfhe4jmkRrvr3h6yNjbA g+W6prvcUfrQif0nrqWAPvl865ggjVmlwP3QAPnd4ClL9YKSavobveZQrCJV0VOP8m6k LK2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=22WpPXfD1JqL6ntzuOSg0n9C59Rro+wyHpN1/wq5DCs=; fh=vxY9ej4EGKYFM/xFbygMN+4o1+lhk/hEI98oRlpaAq0=; b=PptzfWwnvZSwKg8dJRTz90Rw4lilIPbyG2nLiUf5OeBORwTCTZmIQ9/Qd2I8bHphEw kYsNQu0oj1cKh9+3tIFXoZkDjMn94fVmmT13ZbwVOpBzGYnNUlKnmlGsMRhLgFQsSdMH /QBoH/C/AjldnFTE+dgN3Owo2d0NG55W34A1nTqqBgsJdXAJu9R2QvYOuqenO0QXK+iM A1pL8ttMlIM5moeEvyPPdrrDGr90w9j8oM9USm786TxIVX995T5NRJTnq+/KQAfkMfJ2 r172YKzSeF2BwIi6F8TTc6zvx7kaV37TiI0Xwi2AR9QybLgI4nK3vIcGSyeHvKLPRLOg WNjw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=R85j5FSc; 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 X-Forwarded-Encrypted: i=1; AJvYcCUq1V/5zm5wJZwTN39kLyhA6KVrQe65CT2r1mPh7H+EDfJhIvmkdyQaMvoYNhkWAggHNeDfRJh4AnYG1Ta4p/bG0UChBby0X8MygAU+kYWS1CiTDABEFTdrOikUj0/4fvENf1UzdecTU4aGDZ+PRHdXaS71d5FVM2pWmsM7glEnwy89NKGcU0wJD0uGVNShbONB3uYpYq032zIsrmsR272za8xr2dfrTYtMEMET0gYIVmCSe0jn8cV+HnebAMVodUKLGyUkmFsXdiiEhyau+OpG9qopZR4sWuWrsYuCg84UURoZovI67NqaBdWYThrodF23n/Uhon5GueNOU7swdL+gep8zvtoVwzS/vbo/skoSRpEJAhT+rFhZDYvidx7Hcmr+a+3oIRpr4JQrxj6zjQ5MLYYfA3dR+F9UD3UxDdPaY9HdaJI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h1Sv11OMAY+w+KH4yurggljQC5dlvvptl4t4901EbR0VBsj1C2IseaXmSHUdSo Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id yr5-20020a170907334500b00a3d6b7eaa8bsi490194ejb.926.2024.02.14.14.07.41; Wed, 14 Feb 2024 14:07:41 -0800 (PST) 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=@niedermayer.cc header.s=gm1 header.b=R85j5FSc; 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 4311C68D239; Thu, 15 Feb 2024 00:06:47 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 178E368D223 for ; Thu, 15 Feb 2024 00:06:38 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 452691BF207 for ; Wed, 14 Feb 2024 22:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1707948397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:in-reply-to:in-reply-to:references:references; bh=u5d8qGJxFBJFG2iqAHBDqsowhwCcjUB38svK8tNB0p8=; b=R85j5FSc2uU5j+Y4ANE3N+CID0pJnX2fdEywVwGO8FW3+TbdLVbzuYdzLKOzbr8vJlRisA iBDLKTKIR/ddtKCj4yVSYtXfVy9rmL5JgJ9OnrJQN5mnZMhdiiGcQstnXI4ZmfkxT4LjOl sRoXAIdn9aeD02lZgb9PQqR56LVsqIPMd8J6m5g+G/mRZcCAzlDQLZitAdYTvPP0aU7CGA FyEbtFgMExWDaC6kAnzLNjUeaw2ogVMzKbPsgI3VxfJDapV0keqYQ1NLgLwPqBxpi/tZoC F3yUzxsylZdPCsNliqG6R9xojybPpDjbZehRGtM9ndQ7qGaXsPwNLjv89rybBQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 14 Feb 2024 23:06:31 +0100 Message-Id: <20240214220631.9641-7-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240214220631.9641-1-michael@niedermayer.cc> References: <20240214220631.9641-1-michael@niedermayer.cc> X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 7/7] swscale/tests/swscale: Add help text 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: wnI8qV71ZO6Q Signed-off-by: Michael Niedermayer --- libswscale/tests/swscale.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c index 32e1f96be2b..cf8d04de898 100644 --- a/libswscale/tests/swscale.c +++ b/libswscale/tests/swscale.c @@ -437,6 +437,25 @@ int main(int argc, char **argv) return -1; for (i = 1; i < argc; i += 2) { + if (!strcmp(argv[i], "-help") || !strcmp(argv[i], "--help")) { + fprintf(stderr, + "swscale [options...]\n" + " -help\n" + " This text\n" + " -ref \n" + " Uses file as reference to compae tests againsts. Tests that have become worse will contain the string worse or WORSE\n" + " -p \n" + " The percentage of tests or comparissions to perform. Doing all tests will take long and generate over a hundread MB text output\n" + " It is often convenient to perform a random subset\n" + " -dst \n" + " Only test the specified destination pixel format\n" + " -src \n" + " Only test the specified source pixel format\n" + " -cpuflags \n" + " Uses the specified cpuflags in teh tests\n" + ); + goto error; + } if (argv[i][0] != '-' || i + 1 == argc) goto bad_option; if (!strcmp(argv[i], "-ref")) { @@ -469,7 +488,7 @@ int main(int argc, char **argv) prob = atof(argv[i + 1]); } else { bad_option: - fprintf(stderr, "bad option or argument missing (%s)\n", argv[i]); + fprintf(stderr, "bad option or argument missing (%s) see -help\n", argv[i]); goto error; } }