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
6797d194
Commit
6797d194
authored
May 10, 2012
by
Michael Kostylev
Committed by
Diego Biurrun
May 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: rv40: Mark rv40_weight functions as MMX2; they use MMX2 instructions.
parent
95a98ab3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
rv40dsp.asm
libavcodec/x86/rv40dsp.asm
+1
-1
rv40dsp_init.c
libavcodec/x86/rv40dsp_init.c
+5
-5
No files found.
libavcodec/x86/rv40dsp.asm
View file @
6797d194
...
@@ -487,7 +487,7 @@ cglobal rv40_weight_func_%1_%2, 6, 7, 8
...
@@ -487,7 +487,7 @@ cglobal rv40_weight_func_%1_%2, 6, 7, 8
REP_RET
REP_RET
%endmacro
%endmacro
INIT_MMX
mmx
INIT_MMX
mmx
2
RV40_WEIGHT
rnd
,
8
,
3
RV40_WEIGHT
rnd
,
8
,
3
RV40_WEIGHT
rnd
,
16
,
4
RV40_WEIGHT
rnd
,
16
,
4
RV40_WEIGHT
nornd
,
8
,
3
RV40_WEIGHT
nornd
,
8
,
3
...
...
libavcodec/x86/rv40dsp_init.c
View file @
6797d194
...
@@ -52,7 +52,7 @@ void ff_rv40_weight_func_nornd_16_##opt(uint8_t *dst, uint8_t *src1, uint8_t *sr
...
@@ -52,7 +52,7 @@ void ff_rv40_weight_func_nornd_16_##opt(uint8_t *dst, uint8_t *src1, uint8_t *sr
int w1, int w2, ptrdiff_t stride); \
int w1, int w2, ptrdiff_t stride); \
void ff_rv40_weight_func_nornd_8_##opt (uint8_t *dst, uint8_t *src1, uint8_t *src2, \
void ff_rv40_weight_func_nornd_8_##opt (uint8_t *dst, uint8_t *src1, uint8_t *src2, \
int w1, int w2, ptrdiff_t stride);
int w1, int w2, ptrdiff_t stride);
DECLARE_WEIGHT
(
mmx
)
DECLARE_WEIGHT
(
mmx
2
)
DECLARE_WEIGHT
(
sse2
)
DECLARE_WEIGHT
(
sse2
)
DECLARE_WEIGHT
(
ssse3
)
DECLARE_WEIGHT
(
ssse3
)
...
@@ -190,10 +190,6 @@ void ff_rv40dsp_init_x86(RV34DSPContext *c, DSPContext *dsp)
...
@@ -190,10 +190,6 @@ void ff_rv40dsp_init_x86(RV34DSPContext *c, DSPContext *dsp)
if
(
mm_flags
&
AV_CPU_FLAG_MMX
)
{
if
(
mm_flags
&
AV_CPU_FLAG_MMX
)
{
c
->
put_chroma_pixels_tab
[
0
]
=
ff_put_rv40_chroma_mc8_mmx
;
c
->
put_chroma_pixels_tab
[
0
]
=
ff_put_rv40_chroma_mc8_mmx
;
c
->
put_chroma_pixels_tab
[
1
]
=
ff_put_rv40_chroma_mc4_mmx
;
c
->
put_chroma_pixels_tab
[
1
]
=
ff_put_rv40_chroma_mc4_mmx
;
c
->
rv40_weight_pixels_tab
[
0
][
0
]
=
ff_rv40_weight_func_rnd_16_mmx
;
c
->
rv40_weight_pixels_tab
[
0
][
1
]
=
ff_rv40_weight_func_rnd_8_mmx
;
c
->
rv40_weight_pixels_tab
[
1
][
0
]
=
ff_rv40_weight_func_nornd_16_mmx
;
c
->
rv40_weight_pixels_tab
[
1
][
1
]
=
ff_rv40_weight_func_nornd_8_mmx
;
c
->
put_pixels_tab
[
0
][
15
]
=
ff_put_rv40_qpel16_mc33_mmx
;
c
->
put_pixels_tab
[
0
][
15
]
=
ff_put_rv40_qpel16_mc33_mmx
;
c
->
put_pixels_tab
[
1
][
15
]
=
ff_put_rv40_qpel8_mc33_mmx
;
c
->
put_pixels_tab
[
1
][
15
]
=
ff_put_rv40_qpel8_mc33_mmx
;
c
->
avg_pixels_tab
[
0
][
15
]
=
ff_avg_rv40_qpel16_mc33_mmx
;
c
->
avg_pixels_tab
[
0
][
15
]
=
ff_avg_rv40_qpel16_mc33_mmx
;
...
@@ -205,6 +201,10 @@ void ff_rv40dsp_init_x86(RV34DSPContext *c, DSPContext *dsp)
...
@@ -205,6 +201,10 @@ void ff_rv40dsp_init_x86(RV34DSPContext *c, DSPContext *dsp)
if
(
mm_flags
&
AV_CPU_FLAG_MMX2
)
{
if
(
mm_flags
&
AV_CPU_FLAG_MMX2
)
{
c
->
avg_chroma_pixels_tab
[
0
]
=
ff_avg_rv40_chroma_mc8_mmx2
;
c
->
avg_chroma_pixels_tab
[
0
]
=
ff_avg_rv40_chroma_mc8_mmx2
;
c
->
avg_chroma_pixels_tab
[
1
]
=
ff_avg_rv40_chroma_mc4_mmx2
;
c
->
avg_chroma_pixels_tab
[
1
]
=
ff_avg_rv40_chroma_mc4_mmx2
;
c
->
rv40_weight_pixels_tab
[
0
][
0
]
=
ff_rv40_weight_func_rnd_16_mmx2
;
c
->
rv40_weight_pixels_tab
[
0
][
1
]
=
ff_rv40_weight_func_rnd_8_mmx2
;
c
->
rv40_weight_pixels_tab
[
1
][
0
]
=
ff_rv40_weight_func_nornd_16_mmx2
;
c
->
rv40_weight_pixels_tab
[
1
][
1
]
=
ff_rv40_weight_func_nornd_8_mmx2
;
#if ARCH_X86_32
#if ARCH_X86_32
QPEL_MC_SET
(
avg_
,
_mmx2
)
QPEL_MC_SET
(
avg_
,
_mmx2
)
#endif
#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