Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
a2511498
Commit
a2511498
authored
8 years ago
by
Paul B Mahol
Browse files
Options
Downloads
Patches
Plain Diff
avfilter/vf_deband: fix silly mistakes
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
1296f844
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavfilter/vf_deband.c
+4
-4
4 additions, 4 deletions
libavfilter/vf_deband.c
with
4 additions
and
4 deletions
libavfilter/vf_deband.c
+
4
−
4
View file @
a2511498
...
...
@@ -129,7 +129,7 @@ static int deband_8_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
const
int
h
=
s
->
planeheight
[
p
]
-
1
;
for
(
y
=
start
;
y
<
end
;
y
++
)
{
const
int
pos
=
y
*
s
->
plane
height
[
0
];
const
int
pos
=
y
*
s
->
plane
width
[
0
];
for
(
x
=
0
;
x
<
s
->
planewidth
[
p
];
x
++
)
{
const
int
x_pos
=
s
->
x_pos
[
pos
+
x
];
...
...
@@ -178,7 +178,7 @@ static int deband_16_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
const
int
h
=
s
->
planeheight
[
p
]
-
1
;
for
(
y
=
start
;
y
<
end
;
y
++
)
{
const
int
pos
=
y
*
s
->
plane
height
[
0
];
const
int
pos
=
y
*
s
->
plane
width
[
0
];
for
(
x
=
0
;
x
<
s
->
planewidth
[
p
];
x
++
)
{
const
int
x_pos
=
s
->
x_pos
[
pos
+
x
];
...
...
@@ -241,8 +241,8 @@ static int config_input(AVFilterLink *inlink)
const
float
dir
=
direction
<
0
?
-
direction
:
r
*
direction
;
const
int
dist
=
range
<
0
?
-
range
:
r
*
range
;
s
->
x_pos
[
y
*
s
->
plane
height
[
0
]
+
x
]
=
cosf
(
dir
)
*
dist
;
s
->
y_pos
[
y
*
s
->
plane
height
[
0
]
+
x
]
=
sinf
(
dir
)
*
dist
;
s
->
x_pos
[
y
*
s
->
plane
width
[
0
]
+
x
]
=
cosf
(
dir
)
*
dist
;
s
->
y_pos
[
y
*
s
->
plane
width
[
0
]
+
x
]
=
sinf
(
dir
)
*
dist
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment