Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0f403e75
Commit
0f403e75
authored
Sep 04, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hopefully fix the build for windows.
parent
a3f716c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/video_filter/seamcarving.c
modules/video_filter/seamcarving.c
+7
-7
No files found.
modules/video_filter/seamcarving.c
View file @
0f403e75
...
...
@@ -140,8 +140,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
return
p_outpic
;
}
static
inline
int
min3
(
int
a
,
int
b
,
int
c
);
static
inline
int
min
(
int
a
,
int
b
);
static
inline
int
m
y_m
in3
(
int
a
,
int
b
,
int
c
);
static
inline
int
m
y_m
in
(
int
a
,
int
b
);
static
int
RemoveVerticalSeam
(
filter_t
*
p_filter
,
picture_t
*
p_inpic
,
picture_t
*
p_outpic
,
int
i_src_visible
);
//#define DRAW_GRADIENT
...
...
@@ -264,15 +264,15 @@ static int RemoveVerticalSeam( filter_t *p_filter, picture_t *p_inpic, picture_t
/* Compute line y's minimum energy value for paths ending on
* each x */
x
=
1
;
p_energy
[
x
]
=
min
(
p_energy_prev
[
x
]
+
p_grad
[
x
],
p_energy
[
x
]
=
m
y_m
in
(
p_energy_prev
[
x
]
+
p_grad
[
x
],
p_energy_prev
[
x
+
1
]
+
p_grad
[
x
+
1
]
);
for
(
x
=
2
;
x
<
i_src_visible
-
2
;
x
++
)
{
p_energy
[
x
]
=
min3
(
p_energy_prev
[
x
-
1
]
+
p_grad
[
x
-
1
],
p_energy
[
x
]
=
m
y_m
in3
(
p_energy_prev
[
x
-
1
]
+
p_grad
[
x
-
1
],
p_energy_prev
[
x
]
+
p_grad
[
x
],
p_energy_prev
[
x
+
1
]
+
p_grad
[
x
+
1
]
);
}
p_energy
[
x
]
=
min
(
p_energy_prev
[
x
-
1
]
+
p_grad
[
x
-
1
],
p_energy
[
x
]
=
m
y_m
in
(
p_energy_prev
[
x
-
1
]
+
p_grad
[
x
-
1
],
p_energy_prev
[
x
]
+
p_grad
[
x
]
);
#ifdef DRAW_ENERGY
...
...
@@ -353,7 +353,7 @@ static int RemoveVerticalSeam( filter_t *p_filter, picture_t *p_inpic, picture_t
#endif
}
static
inline
int
min3
(
int
a
,
int
b
,
int
c
)
static
inline
int
m
y_m
in3
(
int
a
,
int
b
,
int
c
)
{
if
(
a
<
b
)
{
...
...
@@ -363,7 +363,7 @@ static inline int min3( int a, int b, int c )
if
(
b
<
c
)
return
b
;
return
c
;
}
static
inline
int
min
(
int
a
,
int
b
)
static
inline
int
m
y_m
in
(
int
a
,
int
b
)
{
return
a
<
b
?
a
:
b
;
}
...
...
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