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
26876fdb
Commit
26876fdb
authored
Oct 19, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_fftdnoiz: round toward nearest integer
Instead of rounding toward zero and thus producing darker output.
parent
a60232ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_fftdnoiz.c
libavfilter/vf_fftdnoiz.c
+2
-2
No files found.
libavfilter/vf_fftdnoiz.c
View file @
26876fdb
...
@@ -156,7 +156,7 @@ static void export_row8(FFTComplex *src, uint8_t *dst, int rw, float scale, int
...
@@ -156,7 +156,7 @@ static void export_row8(FFTComplex *src, uint8_t *dst, int rw, float scale, int
int
j
;
int
j
;
for
(
j
=
0
;
j
<
rw
;
j
++
)
for
(
j
=
0
;
j
<
rw
;
j
++
)
dst
[
j
]
=
av_clip_uint8
(
src
[
j
].
re
*
scale
);
dst
[
j
]
=
av_clip_uint8
(
src
[
j
].
re
*
scale
+
0
.
5
f
);
}
}
static
void
import_row16
(
FFTComplex
*
dst
,
uint8_t
*
srcp
,
int
rw
)
static
void
import_row16
(
FFTComplex
*
dst
,
uint8_t
*
srcp
,
int
rw
)
...
@@ -176,7 +176,7 @@ static void export_row16(FFTComplex *src, uint8_t *dstp, int rw, float scale, in
...
@@ -176,7 +176,7 @@ static void export_row16(FFTComplex *src, uint8_t *dstp, int rw, float scale, in
int
j
;
int
j
;
for
(
j
=
0
;
j
<
rw
;
j
++
)
for
(
j
=
0
;
j
<
rw
;
j
++
)
dst
[
j
]
=
av_clip_uintp2_c
(
src
[
j
].
re
*
scale
,
depth
);
dst
[
j
]
=
av_clip_uintp2_c
(
src
[
j
].
re
*
scale
+
0
.
5
f
,
depth
);
}
}
static
int
config_input
(
AVFilterLink
*
inlink
)
static
int
config_input
(
AVFilterLink
*
inlink
)
...
...
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