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
24321b87
Commit
24321b87
authored
Jun 11, 2019
by
Limin Wang
Committed by
Paul B Mahol
Jun 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavfilter/vf_blend.c: remove duplicate code with same function
Signed-off-by:
Limin Wang
<
lance.lmwang@gmail.com
>
parent
665759c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
vf_blend.c
libavfilter/vf_blend.c
+9
-12
No files found.
libavfilter/vf_blend.c
View file @
24321b87
...
...
@@ -582,9 +582,7 @@ void ff_blend_init(FilterParams *param, int depth)
case
BLEND_MULTIPLY
:
param
->
blend
=
blend_multiply_8bit
;
break
;
case
BLEND_MULTIPLY128
:
param
->
blend
=
blend_multiply128_8bit
;
break
;
case
BLEND_NEGATION
:
param
->
blend
=
blend_negation_8bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
param
->
opacity
==
1
?
blend_copytop_8
:
param
->
opacity
==
0
?
blend_copybottom_8
:
blend_normal_8bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
blend_normal_8bit
;
break
;
case
BLEND_OR
:
param
->
blend
=
blend_or_8bit
;
break
;
case
BLEND_OVERLAY
:
param
->
blend
=
blend_overlay_8bit
;
break
;
case
BLEND_PHOENIX
:
param
->
blend
=
blend_phoenix_8bit
;
break
;
...
...
@@ -621,9 +619,7 @@ void ff_blend_init(FilterParams *param, int depth)
case
BLEND_MULTIPLY
:
param
->
blend
=
blend_multiply_10bit
;
break
;
case
BLEND_MULTIPLY128
:
param
->
blend
=
blend_multiply128_10bit
;
break
;
case
BLEND_NEGATION
:
param
->
blend
=
blend_negation_10bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
param
->
opacity
==
1
?
blend_copytop_16
:
param
->
opacity
==
0
?
blend_copybottom_16
:
blend_normal_16bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
blend_normal_16bit
;
break
;
case
BLEND_OR
:
param
->
blend
=
blend_or_10bit
;
break
;
case
BLEND_OVERLAY
:
param
->
blend
=
blend_overlay_10bit
;
break
;
case
BLEND_PHOENIX
:
param
->
blend
=
blend_phoenix_10bit
;
break
;
...
...
@@ -660,9 +656,7 @@ void ff_blend_init(FilterParams *param, int depth)
case
BLEND_MULTIPLY
:
param
->
blend
=
blend_multiply_12bit
;
break
;
case
BLEND_MULTIPLY128
:
param
->
blend
=
blend_multiply128_12bit
;
break
;
case
BLEND_NEGATION
:
param
->
blend
=
blend_negation_12bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
param
->
opacity
==
1
?
blend_copytop_16
:
param
->
opacity
==
0
?
blend_copybottom_16
:
blend_normal_16bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
blend_normal_16bit
;
break
;
case
BLEND_OR
:
param
->
blend
=
blend_or_12bit
;
break
;
case
BLEND_OVERLAY
:
param
->
blend
=
blend_overlay_12bit
;
break
;
case
BLEND_PHOENIX
:
param
->
blend
=
blend_phoenix_12bit
;
break
;
...
...
@@ -699,9 +693,7 @@ void ff_blend_init(FilterParams *param, int depth)
case
BLEND_MULTIPLY
:
param
->
blend
=
blend_multiply_16bit
;
break
;
case
BLEND_MULTIPLY128
:
param
->
blend
=
blend_multiply128_16bit
;
break
;
case
BLEND_NEGATION
:
param
->
blend
=
blend_negation_16bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
param
->
opacity
==
1
?
blend_copytop_16
:
param
->
opacity
==
0
?
blend_copybottom_16
:
blend_normal_16bit
;
break
;
case
BLEND_NORMAL
:
param
->
blend
=
blend_normal_16bit
;
break
;
case
BLEND_OR
:
param
->
blend
=
blend_or_16bit
;
break
;
case
BLEND_OVERLAY
:
param
->
blend
=
blend_overlay_16bit
;
break
;
case
BLEND_PHOENIX
:
param
->
blend
=
blend_phoenix_16bit
;
break
;
...
...
@@ -718,6 +710,11 @@ void ff_blend_init(FilterParams *param, int depth)
if
(
param
->
opacity
==
0
&&
param
->
mode
!=
BLEND_NORMAL
)
{
param
->
blend
=
depth
>
8
?
blend_copytop_16
:
blend_copytop_8
;
}
else
if
(
param
->
mode
==
BLEND_NORMAL
)
{
if
(
param
->
opacity
==
1
)
param
->
blend
=
depth
>
8
?
blend_copytop_16
:
blend_copytop_8
;
else
if
(
param
->
opacity
==
0
)
param
->
blend
=
depth
>
8
?
blend_copybottom_16
:
blend_copybottom_8
;
}
if
(
ARCH_X86
)
...
...
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