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
8d4fc2ea
Commit
8d4fc2ea
authored
May 31, 2018
by
John Cox
Committed by
Paul B Mahol
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: use av_clip_uintp2_c where clip is variable
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
1616b1be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
vf_amplify.c
libavfilter/vf_amplify.c
+1
-1
vf_colorbalance.c
libavfilter/vf_colorbalance.c
+9
-9
vf_fftdnoiz.c
libavfilter/vf_fftdnoiz.c
+1
-1
No files found.
libavfilter/vf_amplify.c
View file @
8d4fc2ea
...
...
@@ -186,7 +186,7 @@ static int amplify_frame(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs
}
else
{
amp
=
FFMIN
(
FFABS
(
diff
*
factor
),
hlimit
);
}
dst
[
x
]
=
av_clip_uintp2
(
src
+
amp
,
depth
);
dst
[
x
]
=
av_clip_uintp2
_c
(
src
+
amp
,
depth
);
}
else
{
dst
[
x
]
=
src
;
}
...
...
libavfilter/vf_colorbalance.c
View file @
8d4fc2ea
...
...
@@ -297,17 +297,17 @@ static int config_output(AVFilterLink *outlink)
for
(
i
=
0
;
i
<
max
;
i
++
)
{
r
=
g
=
b
=
i
;
r
=
av_clip_uintp2
(
r
+
s
->
cyan_red
.
shadows
*
shadows
[
r
],
depth
);
r
=
av_clip_uintp2
(
r
+
s
->
cyan_red
.
midtones
*
midtones
[
r
],
depth
);
r
=
av_clip_uintp2
(
r
+
s
->
cyan_red
.
highlights
*
highlights
[
r
],
depth
);
r
=
av_clip_uintp2
_c
(
r
+
s
->
cyan_red
.
shadows
*
shadows
[
r
],
depth
);
r
=
av_clip_uintp2
_c
(
r
+
s
->
cyan_red
.
midtones
*
midtones
[
r
],
depth
);
r
=
av_clip_uintp2
_c
(
r
+
s
->
cyan_red
.
highlights
*
highlights
[
r
],
depth
);
g
=
av_clip_uintp2
(
g
+
s
->
magenta_green
.
shadows
*
shadows
[
g
],
depth
);
g
=
av_clip_uintp2
(
g
+
s
->
magenta_green
.
midtones
*
midtones
[
g
],
depth
);
g
=
av_clip_uintp2
(
g
+
s
->
magenta_green
.
highlights
*
highlights
[
g
],
depth
);
g
=
av_clip_uintp2
_c
(
g
+
s
->
magenta_green
.
shadows
*
shadows
[
g
],
depth
);
g
=
av_clip_uintp2
_c
(
g
+
s
->
magenta_green
.
midtones
*
midtones
[
g
],
depth
);
g
=
av_clip_uintp2
_c
(
g
+
s
->
magenta_green
.
highlights
*
highlights
[
g
],
depth
);
b
=
av_clip_uintp2
(
b
+
s
->
yellow_blue
.
shadows
*
shadows
[
b
],
depth
);
b
=
av_clip_uintp2
(
b
+
s
->
yellow_blue
.
midtones
*
midtones
[
b
],
depth
);
b
=
av_clip_uintp2
(
b
+
s
->
yellow_blue
.
highlights
*
highlights
[
b
],
depth
);
b
=
av_clip_uintp2
_c
(
b
+
s
->
yellow_blue
.
shadows
*
shadows
[
b
],
depth
);
b
=
av_clip_uintp2
_c
(
b
+
s
->
yellow_blue
.
midtones
*
midtones
[
b
],
depth
);
b
=
av_clip_uintp2
_c
(
b
+
s
->
yellow_blue
.
highlights
*
highlights
[
b
],
depth
);
s
->
lut
[
R
][
i
]
=
r
;
s
->
lut
[
G
][
i
]
=
g
;
...
...
libavfilter/vf_fftdnoiz.c
View file @
8d4fc2ea
...
...
@@ -176,7 +176,7 @@ static void export_row16(FFTComplex *src, uint8_t *dstp, int rw, float scale, in
int
j
;
for
(
j
=
0
;
j
<
rw
;
j
++
)
dst
[
j
]
=
av_clip_uintp2
(
src
[
j
].
re
*
scale
,
depth
);
dst
[
j
]
=
av_clip_uintp2
_c
(
src
[
j
].
re
*
scale
,
depth
);
}
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