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
dc4a6e4d
Commit
dc4a6e4d
authored
May 02, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_libopencv: Make ocv_filter_entries const
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
536b42e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_libopencv.c
libavfilter/vf_libopencv.c
+2
-2
No files found.
libavfilter/vf_libopencv.c
View file @
dc4a6e4d
...
@@ -322,7 +322,7 @@ typedef struct OCVFilterEntry {
...
@@ -322,7 +322,7 @@ typedef struct OCVFilterEntry {
void
(
*
end_frame_filter
)(
AVFilterContext
*
ctx
,
IplImage
*
inimg
,
IplImage
*
outimg
);
void
(
*
end_frame_filter
)(
AVFilterContext
*
ctx
,
IplImage
*
inimg
,
IplImage
*
outimg
);
}
OCVFilterEntry
;
}
OCVFilterEntry
;
static
OCVFilterEntry
ocv_filter_entries
[]
=
{
static
const
OCVFilterEntry
ocv_filter_entries
[]
=
{
{
"dilate"
,
sizeof
(
DilateContext
),
dilate_init
,
dilate_uninit
,
dilate_end_frame_filter
},
{
"dilate"
,
sizeof
(
DilateContext
),
dilate_init
,
dilate_uninit
,
dilate_end_frame_filter
},
{
"erode"
,
sizeof
(
DilateContext
),
dilate_init
,
dilate_uninit
,
erode_end_frame_filter
},
{
"erode"
,
sizeof
(
DilateContext
),
dilate_init
,
dilate_uninit
,
erode_end_frame_filter
},
{
"smooth"
,
sizeof
(
SmoothContext
),
smooth_init
,
NULL
,
smooth_end_frame_filter
},
{
"smooth"
,
sizeof
(
SmoothContext
),
smooth_init
,
NULL
,
smooth_end_frame_filter
},
...
@@ -338,7 +338,7 @@ static av_cold int init(AVFilterContext *ctx)
...
@@ -338,7 +338,7 @@ static av_cold int init(AVFilterContext *ctx)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
ocv_filter_entries
);
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
ocv_filter_entries
);
i
++
)
{
OCVFilterEntry
*
entry
=
&
ocv_filter_entries
[
i
];
const
OCVFilterEntry
*
entry
=
&
ocv_filter_entries
[
i
];
if
(
!
strcmp
(
s
->
name
,
entry
->
name
))
{
if
(
!
strcmp
(
s
->
name
,
entry
->
name
))
{
s
->
init
=
entry
->
init
;
s
->
init
=
entry
->
init
;
s
->
uninit
=
entry
->
uninit
;
s
->
uninit
=
entry
->
uninit
;
...
...
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