Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
ebb7dffa
Unverified
Commit
ebb7dffa
authored
Feb 14, 2024
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/tests/swscale: Add help text
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
6ebe4ebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
swscale.c
libswscale/tests/swscale.c
+20
-1
No files found.
libswscale/tests/swscale.c
View file @
ebb7dffa
...
...
@@ -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 <file>
\n
"
" Uses file as reference to compae tests againsts. Tests that have become worse will contain the string worse or WORSE
\n
"
" -p <number between 0.0 and 1.0>
\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 <pixfmt>
\n
"
" Only test the specified destination pixel format
\n
"
" -src <pixfmt>
\n
"
" Only test the specified source pixel format
\n
"
" -cpuflags <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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment