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
4a5d18b6
Commit
4a5d18b6
authored
May 20, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vsrc_mandelbrot: use AV_OPT_TYPE_IMAGE_SIZE.
parent
dc6a02de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
vsrc_mandelbrot.c
libavfilter/vsrc_mandelbrot.c
+3
-8
No files found.
libavfilter/vsrc_mandelbrot.c
View file @
4a5d18b6
...
...
@@ -57,7 +57,7 @@ typedef struct {
int
w
,
h
;
AVRational
time_base
;
uint64_t
pts
;
char
*
size
,
*
rate
;
char
*
rate
;
int
maxiter
;
double
start_x
;
double
start_y
;
...
...
@@ -78,8 +78,8 @@ typedef struct {
#define OFFSET(x) offsetof(MBContext, x)
static
const
AVOption
mandelbrot_options
[]
=
{
{
"size"
,
"set frame size"
,
OFFSET
(
size
),
AV_OPT_TYPE_STRING
,
{.
str
=
"640x480"
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set frame size"
,
OFFSET
(
size
),
AV_OPT_TYPE_STRING
,
{.
str
=
"640x480"
},
CHAR_MIN
,
CHAR_MAX
},
{
"size"
,
"set frame size"
,
OFFSET
(
w
),
AV_OPT_TYPE_IMAGE_SIZE
,
{.
str
=
"640x480"
},
CHAR_MIN
,
CHAR_MAX
},
{
"s"
,
"set frame size"
,
OFFSET
(
w
),
AV_OPT_TYPE_IMAGE_SIZE
,
{.
str
=
"640x480"
},
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
},
{
"maxiter"
,
"set max iterations number"
,
OFFSET
(
maxiter
),
AV_OPT_TYPE_INT
,
{.
dbl
=
7189
},
1
,
INT_MAX
},
...
...
@@ -129,10 +129,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
}
mb
->
bailout
*=
mb
->
bailout
;
if
(
av_parse_video_size
(
&
mb
->
w
,
&
mb
->
h
,
mb
->
size
)
<
0
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid frame size: %s
\n
"
,
mb
->
size
);
return
AVERROR
(
EINVAL
);
}
mb
->
start_scale
/=
mb
->
h
;
mb
->
end_scale
/=
mb
->
h
;
...
...
@@ -157,7 +153,6 @@ static av_cold void uninit(AVFilterContext *ctx)
{
MBContext
*
mb
=
ctx
->
priv
;
av_freep
(
&
mb
->
size
);
av_freep
(
&
mb
->
rate
);
av_freep
(
&
mb
->
point_cache
);
av_freep
(
&
mb
->
next_cache
);
...
...
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