Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
ed1a11ed
Commit
ed1a11ed
authored
Oct 24, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gradfun: x86: Factor out common code for some gradfun_filter_line() variants
parent
ee80cf74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
vf_gradfun_init.c
libavfilter/x86/vf_gradfun_init.c
+13
-16
No files found.
libavfilter/x86/vf_gradfun_init.c
View file @
ed1a11ed
...
...
@@ -42,13 +42,13 @@ void ff_gradfun_blur_line_movdqu_sse2(intptr_t x, uint16_t *buf,
uint8_t
*
src1
,
uint8_t
*
src2
);
#if HAVE_YASM
static
void
gradfun_filter_line
_mmxext
(
uint8_t
*
dst
,
uint8_t
*
src
,
uint16_t
*
dc
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
)
static
void
gradfun_filter_line
(
uint8_t
*
dst
,
uint8_t
*
src
,
uint16_t
*
dc
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
,
int
alignment
)
{
intptr_t
x
;
if
(
width
&
3
)
{
x
=
width
&
~
3
;
if
(
width
&
alignment
)
{
x
=
width
&
~
alignment
;
ff_gradfun_filter_line_c
(
dst
+
x
,
src
+
x
,
dc
+
x
/
2
,
width
-
x
,
thresh
,
dithers
);
width
=
x
;
...
...
@@ -58,21 +58,18 @@ static void gradfun_filter_line_mmxext(uint8_t *dst, uint8_t *src, uint16_t *dc,
thresh
,
dithers
);
}
static
void
gradfun_filter_line_mmxext
(
uint8_t
*
dst
,
uint8_t
*
src
,
uint16_t
*
dc
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
)
{
gradfun_filter_line
(
dst
,
src
,
dc
,
width
,
thresh
,
dithers
,
3
);
}
static
void
gradfun_filter_line_ssse3
(
uint8_t
*
dst
,
uint8_t
*
src
,
uint16_t
*
dc
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
)
{
intptr_t
x
;
if
(
width
&
7
)
{
// could be 10% faster if I somehow eliminated this
x
=
width
&
~
7
;
ff_gradfun_filter_line_c
(
dst
+
x
,
src
+
x
,
dc
+
x
/
2
,
width
-
x
,
thresh
,
dithers
);
width
=
x
;
}
x
=
-
width
;
ff_gradfun_filter_line_ssse3
(
x
,
dst
+
width
,
src
+
width
,
dc
+
width
/
2
,
thresh
,
dithers
);
gradfun_filter_line
(
dst
,
src
,
dc
,
width
,
thresh
,
dithers
,
7
);
}
static
void
gradfun_blur_line_sse2
(
uint16_t
*
dc
,
uint16_t
*
buf
,
uint16_t
*
buf1
,
...
...
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