Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
c98a32e4
Commit
c98a32e4
authored
Nov 15, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_blend: add 10bit support
parent
02809e7b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
221 additions
and
89 deletions
+221
-89
blend.h
libavfilter/blend.h
+2
-2
vf_blend.c
libavfilter/vf_blend.c
+216
-84
vf_blend_init.c
libavfilter/x86/vf_blend_init.c
+3
-3
No files found.
libavfilter/blend.h
View file @
c98a32e4
...
...
@@ -74,7 +74,7 @@ typedef struct FilterParams {
struct
FilterParams
*
param
,
double
*
values
,
int
starty
);
}
FilterParams
;
void
ff_blend_init
(
FilterParams
*
param
,
int
is_16bit
);
void
ff_blend_init_x86
(
FilterParams
*
param
,
int
is_16bit
);
void
ff_blend_init
(
FilterParams
*
param
,
int
depth
);
void
ff_blend_init_x86
(
FilterParams
*
param
,
int
depth
);
#endif
/* AVFILTER_BLEND_H */
libavfilter/vf_blend.c
View file @
c98a32e4
This diff is collapsed.
Click to expand it.
libavfilter/x86/vf_blend_init.c
View file @
c98a32e4
...
...
@@ -100,11 +100,11 @@ BLEND_FUNC(xor_16, sse2)
BLEND_FUNC
(
xor_16
,
avx2
)
#endif
/* ARCH_X86_64 */
av_cold
void
ff_blend_init_x86
(
FilterParams
*
param
,
int
is_16bit
)
av_cold
void
ff_blend_init_x86
(
FilterParams
*
param
,
int
depth
)
{
int
cpu_flags
=
av_get_cpu_flags
();
if
(
!
is_16bit
)
{
if
(
depth
==
8
)
{
if
(
EXTERNAL_SSE2
(
cpu_flags
)
&&
param
->
opacity
==
1
)
{
switch
(
param
->
mode
)
{
case
BLEND_ADDITION
:
param
->
blend
=
ff_blend_addition_sse2
;
break
;
...
...
@@ -156,7 +156,7 @@ av_cold void ff_blend_init_x86(FilterParams *param, int is_16bit)
case
BLEND_NEGATION
:
param
->
blend
=
ff_blend_negation_avx2
;
break
;
}
}
}
else
{
/* is_16_bit */
}
else
if
(
depth
==
16
)
{
#if ARCH_X86_64
if
(
EXTERNAL_SSE2
(
cpu_flags
)
&&
param
->
opacity
==
1
)
{
switch
(
param
->
mode
)
{
...
...
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