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
974d25e2
Commit
974d25e2
authored
Nov 16, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mandelbrot: make mincol description and code match.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
16b809ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vsrc_mandelbrot.c
libavfilter/vsrc_mandelbrot.c
+2
-2
No files found.
libavfilter/vsrc_mandelbrot.c
View file @
974d25e2
...
...
@@ -98,7 +98,7 @@ static const AVOption mandelbrot_options[] = {
{
"black"
,
"set black mode"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
BLACK
},
INT_MIN
,
INT_MAX
,
0
,
"inner"
},
{
"period"
,
"set period mode"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
PERIOD
},
INT_MIN
,
INT_MAX
,
0
,
"inner"
},
{
"convergence"
,
"show time until convergence"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
CONVTIME
},
INT_MIN
,
INT_MAX
,
0
,
"inner"
},
{
"mincol"
,
"color based on point closest to the origin of the
cycle
"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
MINCOL
},
INT_MIN
,
INT_MAX
,
0
,
"inner"
},
{
"mincol"
,
"color based on point closest to the origin of the
iterations
"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
MINCOL
},
INT_MIN
,
INT_MAX
,
0
,
"inner"
},
{
NULL
},
};
...
...
@@ -275,7 +275,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
int
j
;
double
closest
=
9999
;
int
closest_index
=
0
;
for
(
j
=
i
-
1
;
j
;
j
--
)
for
(
j
=
i
-
1
;
j
>=
0
;
j
--
)
if
(
SQR
(
mb
->
zyklus
[
j
][
0
])
+
SQR
(
mb
->
zyklus
[
j
][
1
])
<
closest
){
closest
=
SQR
(
mb
->
zyklus
[
j
][
0
])
+
SQR
(
mb
->
zyklus
[
j
][
1
]);
closest_index
=
j
;
...
...
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