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
1ba5ca2d
Commit
1ba5ca2d
authored
Mar 24, 2018
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/rgb : add X86 SIMD (SSSE3), for shuffle_bytes_1230, shuffle_bytes_3012, shuffle_bytes_3210
parent
d4f66408
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
rgb2rgb.c
libswscale/x86/rgb2rgb.c
+6
-0
rgb_2_rgb.asm
libswscale/x86/rgb_2_rgb.asm
+6
-0
No files found.
libswscale/x86/rgb2rgb.c
View file @
1ba5ca2d
...
...
@@ -146,6 +146,9 @@ DECLARE_ALIGNED(8, extern const uint64_t, ff_bgr2UVOffset);
void
ff_shuffle_bytes_2103_ssse3
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
ff_shuffle_bytes_0321_ssse3
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
ff_shuffle_bytes_1230_ssse3
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
ff_shuffle_bytes_3012_ssse3
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
void
ff_shuffle_bytes_3210_ssse3
(
const
uint8_t
*
src
,
uint8_t
*
dst
,
int
src_size
);
av_cold
void
rgb2rgb_init_x86
(
void
)
{
...
...
@@ -167,5 +170,8 @@ av_cold void rgb2rgb_init_x86(void)
if
(
EXTERNAL_SSSE3
(
cpu_flags
))
{
shuffle_bytes_0321
=
ff_shuffle_bytes_0321_ssse3
;
shuffle_bytes_2103
=
ff_shuffle_bytes_2103_ssse3
;
shuffle_bytes_1230
=
ff_shuffle_bytes_1230_ssse3
;
shuffle_bytes_3012
=
ff_shuffle_bytes_3012_ssse3
;
shuffle_bytes_3210
=
ff_shuffle_bytes_3210_ssse3
;
}
}
libswscale/x86/rgb_2_rgb.asm
View file @
1ba5ca2d
...
...
@@ -26,6 +26,9 @@ SECTION_RODATA
pb_shuffle2103
:
db
2
,
1
,
0
,
3
,
6
,
5
,
4
,
7
,
10
,
9
,
8
,
11
,
14
,
13
,
12
,
15
pb_shuffle0321
:
db
0
,
3
,
2
,
1
,
4
,
7
,
6
,
5
,
8
,
11
,
10
,
9
,
12
,
15
,
14
,
13
pb_shuffle1230
:
db
1
,
2
,
3
,
0
,
5
,
6
,
7
,
4
,
9
,
10
,
11
,
8
,
13
,
14
,
15
,
12
pb_shuffle3012
:
db
3
,
0
,
1
,
2
,
7
,
4
,
5
,
6
,
11
,
8
,
9
,
10
,
15
,
12
,
13
,
14
pb_shuffle3210
:
db
3
,
2
,
1
,
0
,
7
,
6
,
5
,
4
,
11
,
10
,
9
,
8
,
15
,
14
,
13
,
12
SECTION
.
text
...
...
@@ -78,3 +81,6 @@ jge .end
INIT_XMM
ssse3
SHUFFLE_BYTES
2
,
1
,
0
,
3
SHUFFLE_BYTES
0
,
3
,
2
,
1
SHUFFLE_BYTES
1
,
2
,
3
,
0
SHUFFLE_BYTES
3
,
0
,
1
,
2
SHUFFLE_BYTES
3
,
2
,
1
,
0
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