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
bf7c3c6b
Commit
bf7c3c6b
authored
Apr 27, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: dsputil: Move cavs and vc1-specific functions where they belong
parent
93280623
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
40 deletions
+35
-40
cavsdsp.c
libavcodec/x86/cavsdsp.c
+28
-4
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+0
-28
dsputil_mmx.h
libavcodec/x86/dsputil_mmx.h
+0
-7
vc1dsp_mmx.c
libavcodec/x86/vc1dsp_mmx.c
+7
-1
No files found.
libavcodec/x86/cavsdsp.c
View file @
bf7c3c6b
...
...
@@ -446,13 +446,37 @@ static void OPNAME ## cavs_qpel ## SIZE ## _mc03_ ## MMX(uint8_t *dst, uint8_t *
#endif
/* (HAVE_MMXEXT_INLINE || HAVE_AMD3DNOW_INLINE) */
#if HAVE_MMX_INLINE
static
void
put_cavs_qpel8_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_put_pixels8_mmx
(
dst
,
src
,
stride
,
8
);
}
static
void
avg_cavs_qpel8_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_avg_pixels8_mmx
(
dst
,
src
,
stride
,
8
);
}
static
void
put_cavs_qpel16_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_put_pixels16_mmx
(
dst
,
src
,
stride
,
16
);
}
static
void
avg_cavs_qpel16_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_avg_pixels16_mmx
(
dst
,
src
,
stride
,
16
);
}
static
av_cold
void
cavsdsp_init_mmx
(
CAVSDSPContext
*
c
,
AVCodecContext
*
avctx
)
{
c
->
put_cavs_qpel_pixels_tab
[
0
][
0
]
=
ff_
put_cavs_qpel16_mc00_mmx
;
c
->
put_cavs_qpel_pixels_tab
[
1
][
0
]
=
ff_
put_cavs_qpel8_mc00_mmx
;
c
->
avg_cavs_qpel_pixels_tab
[
0
][
0
]
=
ff_
avg_cavs_qpel16_mc00_mmx
;
c
->
avg_cavs_qpel_pixels_tab
[
1
][
0
]
=
ff_
avg_cavs_qpel8_mc00_mmx
;
c
->
put_cavs_qpel_pixels_tab
[
0
][
0
]
=
put_cavs_qpel16_mc00_mmx
;
c
->
put_cavs_qpel_pixels_tab
[
1
][
0
]
=
put_cavs_qpel8_mc00_mmx
;
c
->
avg_cavs_qpel_pixels_tab
[
0
][
0
]
=
avg_cavs_qpel16_mc00_mmx
;
c
->
avg_cavs_qpel_pixels_tab
[
1
][
0
]
=
avg_cavs_qpel8_mc00_mmx
;
c
->
cavs_idct8_add
=
cavs_idct8_add_mmx
;
c
->
idct_perm
=
FF_TRANSPOSE_IDCT_PERM
;
...
...
libavcodec/x86/dsputil_mmx.c
View file @
bf7c3c6b
...
...
@@ -1010,34 +1010,6 @@ static void gmc_mmx(uint8_t *dst, uint8_t *src,
}
}
/* CAVS-specific */
void
ff_put_cavs_qpel8_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_put_pixels8_mmx
(
dst
,
src
,
stride
,
8
);
}
void
ff_avg_cavs_qpel8_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_avg_pixels8_mmx
(
dst
,
src
,
stride
,
8
);
}
void
ff_put_cavs_qpel16_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_put_pixels16_mmx
(
dst
,
src
,
stride
,
16
);
}
void
ff_avg_cavs_qpel16_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
)
{
ff_avg_pixels16_mmx
(
dst
,
src
,
stride
,
16
);
}
/* VC-1-specific */
void
ff_put_vc1_mspel_mc00_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
ptrdiff_t
stride
,
int
rnd
)
{
ff_put_pixels8_mmx
(
dst
,
src
,
stride
,
8
);
}
static
void
vector_clipf_sse
(
float
*
dst
,
const
float
*
src
,
float
min
,
float
max
,
int
len
)
{
...
...
libavcodec/x86/dsputil_mmx.h
View file @
bf7c3c6b
...
...
@@ -173,13 +173,6 @@ void ff_avg_pixels16_sse2(uint8_t *block, const uint8_t *pixels,
void
ff_put_pixels16_sse2
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
ptrdiff_t
line_size
,
int
h
);
void
ff_put_cavs_qpel8_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
);
void
ff_avg_cavs_qpel8_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
);
void
ff_put_cavs_qpel16_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
);
void
ff_avg_cavs_qpel16_mc00_mmx
(
uint8_t
*
dst
,
uint8_t
*
src
,
ptrdiff_t
stride
);
void
ff_put_vc1_mspel_mc00_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
ptrdiff_t
stride
,
int
rnd
);
void
ff_put_rv40_qpel8_mc33_mmx
(
uint8_t
*
block
,
uint8_t
*
pixels
,
ptrdiff_t
stride
);
void
ff_put_rv40_qpel16_mc33_mmx
(
uint8_t
*
block
,
uint8_t
*
pixels
,
ptrdiff_t
stride
);
void
ff_avg_rv40_qpel8_mc33_mmx
(
uint8_t
*
block
,
uint8_t
*
pixels
,
ptrdiff_t
stride
);
...
...
libavcodec/x86/vc1dsp_mmx.c
View file @
bf7c3c6b
...
...
@@ -699,9 +699,15 @@ static void vc1_inv_trans_8x8_dc_mmxext(uint8_t *dest, int linesize,
);
}
static
void
put_vc1_mspel_mc00_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
src
,
ptrdiff_t
stride
,
int
rnd
)
{
ff_put_pixels8_mmx
(
dst
,
src
,
stride
,
8
);
}
av_cold
void
ff_vc1dsp_init_mmx
(
VC1DSPContext
*
dsp
)
{
dsp
->
put_vc1_mspel_pixels_tab
[
0
]
=
ff_
put_vc1_mspel_mc00_mmx
;
dsp
->
put_vc1_mspel_pixels_tab
[
0
]
=
put_vc1_mspel_mc00_mmx
;
dsp
->
put_vc1_mspel_pixels_tab
[
4
]
=
put_vc1_mspel_mc01_mmx
;
dsp
->
put_vc1_mspel_pixels_tab
[
8
]
=
put_vc1_mspel_mc02_mmx
;
dsp
->
put_vc1_mspel_pixels_tab
[
12
]
=
put_vc1_mspel_mc03_mmx
;
...
...
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