Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
51e71d6e
Commit
51e71d6e
authored
Apr 12, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/ocv: fix build after
fd6228e6
.
parent
4a889892
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vf_libopencv.c
libavfilter/vf_libopencv.c
+5
-5
No files found.
libavfilter/vf_libopencv.c
View file @
51e71d6e
...
@@ -74,7 +74,7 @@ typedef struct {
...
@@ -74,7 +74,7 @@ typedef struct {
const
AVClass
*
class
;
const
AVClass
*
class
;
char
*
name
;
char
*
name
;
char
*
params
;
char
*
params
;
int
(
*
init
)(
AVFilterContext
*
ctx
);
int
(
*
init
)(
AVFilterContext
*
ctx
,
const
char
*
args
);
void
(
*
uninit
)(
AVFilterContext
*
ctx
);
void
(
*
uninit
)(
AVFilterContext
*
ctx
);
void
(
*
end_frame_filter
)(
AVFilterContext
*
ctx
,
IplImage
*
inimg
,
IplImage
*
outimg
);
void
(
*
end_frame_filter
)(
AVFilterContext
*
ctx
,
IplImage
*
inimg
,
IplImage
*
outimg
);
void
*
priv
;
void
*
priv
;
...
@@ -86,7 +86,7 @@ typedef struct {
...
@@ -86,7 +86,7 @@ typedef struct {
double
param3
,
param4
;
double
param3
,
param4
;
}
SmoothContext
;
}
SmoothContext
;
static
av_cold
int
smooth_init
(
AVFilterContext
*
ctx
)
static
av_cold
int
smooth_init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
{
OCVContext
*
ocv
=
ctx
->
priv
;
OCVContext
*
ocv
=
ctx
->
priv
;
SmoothContext
*
smooth
=
ocv
->
priv
;
SmoothContext
*
smooth
=
ocv
->
priv
;
...
@@ -252,7 +252,7 @@ typedef struct {
...
@@ -252,7 +252,7 @@ typedef struct {
IplConvKernel
*
kernel
;
IplConvKernel
*
kernel
;
}
DilateContext
;
}
DilateContext
;
static
av_cold
int
dilate_init
(
AVFilterContext
*
ctx
)
static
av_cold
int
dilate_init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
{
OCVContext
*
ocv
=
ctx
->
priv
;
OCVContext
*
ocv
=
ctx
->
priv
;
DilateContext
*
dilate
=
ocv
->
priv
;
DilateContext
*
dilate
=
ocv
->
priv
;
...
@@ -306,7 +306,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma
...
@@ -306,7 +306,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma
typedef
struct
{
typedef
struct
{
const
char
*
name
;
const
char
*
name
;
size_t
priv_size
;
size_t
priv_size
;
int
(
*
init
)(
AVFilterContext
*
ctx
);
int
(
*
init
)(
AVFilterContext
*
ctx
,
const
char
*
args
);
void
(
*
uninit
)(
AVFilterContext
*
ctx
);
void
(
*
uninit
)(
AVFilterContext
*
ctx
);
void
(
*
end_frame_filter
)(
AVFilterContext
*
ctx
,
IplImage
*
inimg
,
IplImage
*
outimg
);
void
(
*
end_frame_filter
)(
AVFilterContext
*
ctx
,
IplImage
*
inimg
,
IplImage
*
outimg
);
}
OCVFilterEntry
;
}
OCVFilterEntry
;
...
@@ -331,7 +331,7 @@ static av_cold int init(AVFilterContext *ctx)
...
@@ -331,7 +331,7 @@ static av_cold int init(AVFilterContext *ctx)
if
(
!
(
ocv
->
priv
=
av_mallocz
(
entry
->
priv_size
)))
if
(
!
(
ocv
->
priv
=
av_mallocz
(
entry
->
priv_size
)))
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
return
ocv
->
init
(
ctx
);
return
ocv
->
init
(
ctx
,
ocv
->
params
);
}
}
}
}
...
...
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