Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
70eb58cd
Commit
70eb58cd
authored
Nov 14, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mandelbrot: avoid INFINITY as openbsd seems not to like it.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b1b0fd27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
vsrc_mandelbrot.c
libavfilter/vsrc_mandelbrot.c
+7
-6
No files found.
libavfilter/vsrc_mandelbrot.c
View file @
70eb58cd
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include "libavutil/imgutils.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/parseutils.h"
#include <float.h>
#define SQR(a) ((a)*(a))
#define SQR(a) ((a)*(a))
...
@@ -78,12 +79,12 @@ static const AVOption mandelbrot_options[] = {
...
@@ -78,12 +79,12 @@ static const AVOption mandelbrot_options[] = {
{
"rate"
,
"set frame rate"
,
OFFSET
(
rate
),
AV_OPT_TYPE_STRING
,
{.
str
=
"25"
},
CHAR_MIN
,
CHAR_MAX
},
{
"rate"
,
"set frame rate"
,
OFFSET
(
rate
),
AV_OPT_TYPE_STRING
,
{.
str
=
"25"
},
CHAR_MIN
,
CHAR_MAX
},
{
"r"
,
"set frame rate"
,
OFFSET
(
rate
),
AV_OPT_TYPE_STRING
,
{.
str
=
"25"
},
CHAR_MIN
,
CHAR_MAX
},
{
"r"
,
"set frame rate"
,
OFFSET
(
rate
),
AV_OPT_TYPE_STRING
,
{.
str
=
"25"
},
CHAR_MIN
,
CHAR_MAX
},
{
"maxiter"
,
"set max iterations number"
,
OFFSET
(
maxiter
),
AV_OPT_TYPE_INT
,
{.
dbl
=
4096
},
1
,
INT_MAX
},
{
"maxiter"
,
"set max iterations number"
,
OFFSET
(
maxiter
),
AV_OPT_TYPE_INT
,
{.
dbl
=
4096
},
1
,
INT_MAX
},
{
"start_x"
,
"set the initial x position"
,
OFFSET
(
start_x
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=-
0
.
743643887037158704752191506114774
},
-
INFINITY
,
INFINITY
},
{
"start_x"
,
"set the initial x position"
,
OFFSET
(
start_x
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=-
0
.
743643887037158704752191506114774
},
-
100
,
100
},
{
"start_y"
,
"set the initial y position"
,
OFFSET
(
start_y
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=-
0
.
131825904205311970493132056385139
},
-
INFINITY
,
INFINITY
},
{
"start_y"
,
"set the initial y position"
,
OFFSET
(
start_y
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=-
0
.
131825904205311970493132056385139
},
-
100
,
100
},
{
"start_scale"
,
"set the initial scale value"
,
OFFSET
(
start_scale
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3
.
0
},
-
INFINITY
,
INFINITY
},
{
"start_scale"
,
"set the initial scale value"
,
OFFSET
(
start_scale
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3
.
0
},
0
,
FLT_MAX
},
{
"end_scale"
,
"set the terminal scale value"
,
OFFSET
(
end_scale
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
3
},
-
INFINITY
,
INFINITY
},
{
"end_scale"
,
"set the terminal scale value"
,
OFFSET
(
end_scale
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
3
},
0
,
FLT_MAX
},
{
"end_pts"
,
"set the terminal pts value"
,
OFFSET
(
end_pts
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
800
},
-
INFINITY
,
INFINITY
},
{
"end_pts"
,
"set the terminal pts value"
,
OFFSET
(
end_pts
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
800
},
0
,
INT64_MAX
},
{
"bailout"
,
"set the bailout value"
,
OFFSET
(
bailout
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
10
},
-
INFINITY
,
INFINITY
},
{
"bailout"
,
"set the bailout value"
,
OFFSET
(
bailout
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
10
},
0
,
FLT_MAX
},
{
"outer"
,
"set outer coloring mode"
,
OFFSET
(
outer
),
AV_OPT_TYPE_INT
,
{.
dbl
=
NORMALIZED_ITERATION_COUNT
},
0
,
INT_MAX
,
0
,
"outer"
},
{
"outer"
,
"set outer coloring mode"
,
OFFSET
(
outer
),
AV_OPT_TYPE_INT
,
{.
dbl
=
NORMALIZED_ITERATION_COUNT
},
0
,
INT_MAX
,
0
,
"outer"
},
{
"iteration_count"
,
"set iteration count mode"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
ITERATION_COUNT
},
INT_MIN
,
INT_MAX
,
0
,
"outer"
},
{
"iteration_count"
,
"set iteration count mode"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
ITERATION_COUNT
},
INT_MIN
,
INT_MAX
,
0
,
"outer"
},
...
...
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