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
1e6cef68
Commit
1e6cef68
authored
Feb 09, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_fade: fix color fading for planar rgb
parent
06db1bef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_fade.c
libavfilter/vf_fade.c
+2
-2
No files found.
libavfilter/vf_fade.c
View file @
1e6cef68
...
...
@@ -221,8 +221,8 @@ static av_always_inline void filter_rgb_planar(FadeContext *s, const AVFrame *fr
uint8_t
*
pa
=
frame
->
data
[
3
]
+
i
*
frame
->
linesize
[
3
];
for
(
j
=
0
;
j
<
frame
->
width
;
j
++
)
{
#define INTERPP(c_name, c_idx) av_clip_uint8(((c[c_idx]<<16) + ((int)c_name - (int)c[c_idx]) * s->factor + (1<<15)) >> 16)
pr
[
j
]
=
INTERPP
(
pr
[
j
],
1
);
pg
[
j
]
=
INTERPP
(
pg
[
j
],
0
);
pr
[
j
]
=
INTERPP
(
pr
[
j
],
0
);
pg
[
j
]
=
INTERPP
(
pg
[
j
],
1
);
pb
[
j
]
=
INTERPP
(
pb
[
j
],
2
);
if
(
do_alpha
)
pa
[
j
]
=
INTERPP
(
pa
[
j
],
3
);
...
...
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