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
3033cd75
Commit
3033cd75
authored
Nov 19, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/x86/rgb2rgb_template: add mmx/sse2/avx optimized deinterleaveBytes
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1de064e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
rgb2rgb_template.c
libswscale/x86/rgb2rgb_template.c
+29
-0
No files found.
libswscale/x86/rgb2rgb_template.c
View file @
3033cd75
...
@@ -1924,6 +1924,32 @@ static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, ui
...
@@ -1924,6 +1924,32 @@ static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, ui
:::
"memory"
:::
"memory"
);
);
}
}
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX*/
#if !COMPILE_TEMPLATE_AMD3DNOW && (ARCH_X86_32 || COMPILE_TEMPLATE_SSE2) && COMPILE_TEMPLATE_MMXEXT == COMPILE_TEMPLATE_SSE2
void
RENAME
(
ff_nv12ToUV
)(
uint8_t
*
dstU
,
uint8_t
*
dstV
,
const
uint8_t
*
unused0
,
const
uint8_t
*
src1
,
const
uint8_t
*
src2
,
int
w
,
uint32_t
*
unused
);
static
void
RENAME
(
deinterleaveBytes
)(
const
uint8_t
*
src
,
uint8_t
*
dst1
,
uint8_t
*
dst2
,
int
width
,
int
height
,
int
srcStride
,
int
dst1Stride
,
int
dst2Stride
)
{
int
h
;
for
(
h
=
0
;
h
<
height
;
h
++
)
{
RENAME
(
ff_nv12ToUV
)(
dst1
,
dst2
,
NULL
,
src
,
NULL
,
width
,
NULL
);
src
+=
srcStride
;
dst1
+=
dst1Stride
;
dst2
+=
dst2Stride
;
}
__asm__
(
EMMS
"
\n\t
"
SFENCE
"
\n\t
"
:::
"memory"
);
}
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW */
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW */
#if !COMPILE_TEMPLATE_SSE2
#if !COMPILE_TEMPLATE_SSE2
...
@@ -2497,4 +2523,7 @@ static av_cold void RENAME(rgb2rgb_init)(void)
...
@@ -2497,4 +2523,7 @@ static av_cold void RENAME(rgb2rgb_init)(void)
#if !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX
#if !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX
interleaveBytes
=
RENAME
(
interleaveBytes
);
interleaveBytes
=
RENAME
(
interleaveBytes
);
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX*/
#endif
/* !COMPILE_TEMPLATE_AMD3DNOW && !COMPILE_TEMPLATE_AVX*/
#if !COMPILE_TEMPLATE_AMD3DNOW && (ARCH_X86_32 || COMPILE_TEMPLATE_SSE2) && COMPILE_TEMPLATE_MMXEXT == COMPILE_TEMPLATE_SSE2
deinterleaveBytes
=
RENAME
(
deinterleaveBytes
);
#endif
}
}
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