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
b6851d34
Commit
b6851d34
authored
Jul 02, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/gradfun: fix compilation failure on open solaris
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b2527d5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gradfun.c
libavfilter/x86/gradfun.c
+6
-6
No files found.
libavfilter/x86/gradfun.c
View file @
b6851d34
...
...
@@ -26,9 +26,9 @@
DECLARE_ALIGNED
(
16
,
static
const
uint16_t
,
pw_7f
)[
8
]
=
{
0x7F
,
0x7F
,
0x7F
,
0x7F
,
0x7F
,
0x7F
,
0x7F
,
0x7F
};
DECLARE_ALIGNED
(
16
,
static
const
uint16_t
,
pw_ff
)[
8
]
=
{
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
};
#if HAVE_MMX2
static
void
gradfun_filter_line_mmx2
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
const
uint16_t
*
dc
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
)
{
#if HAVE_MMX2
intptr_t
x
;
if
(
width
&
3
)
{
x
=
width
&
~
3
;
...
...
@@ -71,12 +71,12 @@ static void gradfun_filter_line_mmx2(uint8_t *dst, const uint8_t *src, const uin
"rm"
(
thresh
),
"m"
(
*
dithers
),
"m"
(
*
pw_7f
)
:
"memory"
);
}
#endif
}
#if HAVE_SSSE3
static
void
gradfun_filter_line_ssse3
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
const
uint16_t
*
dc
,
int
width
,
int
thresh
,
const
uint16_t
*
dithers
)
{
#if HAVE_SSSE3
intptr_t
x
;
if
(
width
&
7
)
{
// could be 10% faster if I somehow eliminated this
...
...
@@ -118,12 +118,12 @@ static void gradfun_filter_line_ssse3(uint8_t *dst, const uint8_t *src, const ui
"rm"
(
thresh
),
"m"
(
*
dithers
),
"m"
(
*
pw_7f
)
:
"memory"
);
}
#endif // HAVE_SSSE3
}
#if HAVE_SSE
static
void
gradfun_blur_line_sse2
(
uint16_t
*
dc
,
uint16_t
*
buf
,
const
uint16_t
*
buf1
,
const
uint8_t
*
src
,
int
src_linesize
,
int
width
)
{
#if HAVE_SSE
#define BLURV(load)\
intptr_t x = -2*width;\
__asm__ volatile(\
...
...
@@ -161,8 +161,8 @@ static void gradfun_blur_line_sse2(uint16_t *dc, uint16_t *buf, const uint16_t *
}
else
{
BLURV
(
"movdqa"
);
}
}
#endif // HAVE_SSE
}
av_cold
void
ff_gradfun_init_x86
(
GradFunContext
*
gf
)
{
...
...
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