Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
97cff84f
Commit
97cff84f
authored
Oct 23, 2021
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_dblur: add clipping
parent
2148934c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_dblur.c
libavfilter/vf_dblur.c
+2
-2
No files found.
libavfilter/vf_dblur.c
View file @
97cff84f
...
@@ -241,7 +241,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -241,7 +241,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if
(
s
->
depth
==
8
)
{
if
(
s
->
depth
==
8
)
{
for
(
y
=
0
;
y
<
height
;
y
++
)
{
for
(
y
=
0
;
y
<
height
;
y
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
dst
[
x
]
=
lrintf
(
bptr
[
x
]
);
dst
[
x
]
=
av_clip_uint8
(
lrintf
(
bptr
[
x
])
);
}
}
bptr
+=
width
;
bptr
+=
width
;
dst
+=
out
->
linesize
[
plane
];
dst
+=
out
->
linesize
[
plane
];
...
@@ -249,7 +249,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -249,7 +249,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
else
{
}
else
{
for
(
y
=
0
;
y
<
height
;
y
++
)
{
for
(
y
=
0
;
y
<
height
;
y
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
dst16
[
x
]
=
lrintf
(
bptr
[
x
]
);
dst16
[
x
]
=
av_clip_uintp2_c
(
lrintf
(
bptr
[
x
]),
s
->
depth
);
}
}
bptr
+=
width
;
bptr
+=
width
;
dst16
+=
out
->
linesize
[
plane
]
/
2
;
dst16
+=
out
->
linesize
[
plane
]
/
2
;
...
...
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