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
9b33cdca
Commit
9b33cdca
authored
Jun 22, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_blend: fix macro ()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
31f77b46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vf_blend.c
libavfilter/vf_blend.c
+4
-4
No files found.
libavfilter/vf_blend.c
View file @
9b33cdca
...
...
@@ -179,10 +179,10 @@ static void blend_## name(const uint8_t *top, int top_linesize, \
#define A top[j]
#define B bottom[j]
#define MULTIPLY(x, a, b) (
x * ((a * b
) / 255))
#define SCREEN(x, a, b) (255 -
x * ((255 - a) * (255 - b
) / 255))
#define BURN(a, b) ((
a == 0) ? a : FFMAX(0, 255 - ((255 - b) << 8) / a
))
#define DODGE(a, b) ((
a == 255) ? a : FFMIN(255, ((b << 8) / (255 - a
))))
#define MULTIPLY(x, a, b) (
(x) * (((a) * (b)
) / 255))
#define SCREEN(x, a, b) (255 -
(x) * ((255 - (a)) * (255 - (b)
) / 255))
#define BURN(a, b) ((
(a) == 0) ? (a) : FFMAX(0, 255 - ((255 - (b)) << 8) / (a)
))
#define DODGE(a, b) ((
(a) == 255) ? (a) : FFMIN(255, (((b) << 8) / (255 - (a)
))))
DEFINE_BLEND
(
addition
,
FFMIN
(
255
,
A
+
B
))
DEFINE_BLEND
(
average
,
(
A
+
B
)
/
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