From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id E5EE049642 for ; Wed, 14 Feb 2024 22:07:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0571D68D238; Thu, 15 Feb 2024 00:06:47 +0200 (EET) 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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; } } -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".