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
ba98f846
Commit
ba98f846
authored
Nov 21, 2017
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/huffyuvdspenc : add diff_int16 AVX2 func
parent
d189a426
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
huffyuvencdsp.asm
libavcodec/x86/huffyuvencdsp.asm
+4
-0
huffyuvencdsp_init.c
libavcodec/x86/huffyuvencdsp_init.c
+6
-0
No files found.
libavcodec/x86/huffyuvencdsp.asm
View file @
ba98f846
...
...
@@ -59,6 +59,10 @@ DIFF_INT16
INIT_XMM
sse2
DIFF_INT16
%if
HAVE_AVX2_EXTERNAL
INIT_YMM
avx2
DIFF_INT16
%endif
INIT_MMX
mmxext
cglobal
sub_hfyu_median_pred_int16
,
7
,
7
,
0
,
dst
,
src1
,
src2
,
mask
,
w
,
left
,
left_top
...
...
libavcodec/x86/huffyuvencdsp_init.c
View file @
ba98f846
...
...
@@ -32,6 +32,8 @@ void ff_diff_int16_mmx (uint16_t *dst, const uint16_t *src1, const uint16_t *src
unsigned
mask
,
int
w
);
void
ff_diff_int16_sse2
(
uint16_t
*
dst
,
const
uint16_t
*
src1
,
const
uint16_t
*
src2
,
unsigned
mask
,
int
w
);
void
ff_diff_int16_avx2
(
uint16_t
*
dst
,
const
uint16_t
*
src1
,
const
uint16_t
*
src2
,
unsigned
mask
,
int
w
);
void
ff_sub_hfyu_median_pred_int16_mmxext
(
uint16_t
*
dst
,
const
uint16_t
*
src1
,
const
uint16_t
*
src2
,
unsigned
mask
,
int
w
,
int
*
left
,
int
*
left_top
);
...
...
@@ -51,4 +53,8 @@ av_cold void ff_huffyuvencdsp_init_x86(HuffYUVEncDSPContext *c, AVCodecContext *
if
(
EXTERNAL_SSE2
(
cpu_flags
))
{
c
->
diff_int16
=
ff_diff_int16_sse2
;
}
if
(
EXTERNAL_AVX2_FAST
(
cpu_flags
))
{
c
->
diff_int16
=
ff_diff_int16_avx2
;
}
}
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