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
25a6c594
Commit
25a6c594
authored
Jul 05, 2009
by
David Conrad
Committed by
Michael Niedermayer
Oct 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MMX put_no_rnd_pixels_l2
parent
e834f7d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+41
-0
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
25a6c594
...
...
@@ -1864,6 +1864,44 @@ void ff_avg_vc1_mspel_mc00_mmx2(uint8_t *dst, const uint8_t *src, int stride, in
avg_pixels8_mmx2
(
dst
,
src
,
stride
,
8
);
}
/* only used in VP3/5/6 */
static
void
put_vp_no_rnd_pixels8_l2_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
a
,
const
uint8_t
*
b
,
int
stride
,
int
h
)
{
// START_TIMER
MOVQ_BFE
(
mm6
);
__asm__
volatile
(
"1:
\n\t
"
"movq (%1), %%mm0
\n\t
"
"movq (%2), %%mm1
\n\t
"
"movq (%1,%4), %%mm2
\n\t
"
"movq (%2,%4), %%mm3
\n\t
"
PAVGBP_MMX_NO_RND
(
%%
mm0
,
%%
mm1
,
%%
mm4
,
%%
mm2
,
%%
mm3
,
%%
mm5
)
"movq %%mm4, (%3)
\n\t
"
"movq %%mm5, (%3,%4)
\n\t
"
"movq (%1,%4,2), %%mm0
\n\t
"
"movq (%2,%4,2), %%mm1
\n\t
"
"movq (%1,%5), %%mm2
\n\t
"
"movq (%2,%5), %%mm3
\n\t
"
"lea (%1,%4,4), %1
\n\t
"
"lea (%2,%4,4), %2
\n\t
"
PAVGBP_MMX_NO_RND
(
%%
mm0
,
%%
mm1
,
%%
mm4
,
%%
mm2
,
%%
mm3
,
%%
mm5
)
"movq %%mm4, (%3,%4,2)
\n\t
"
"movq %%mm5, (%3,%5)
\n\t
"
"lea (%3,%4,4), %3
\n\t
"
"subl $4, %0
\n\t
"
"jnz 1b
\n\t
"
:
"+r"
(
h
),
"+r"
(
a
),
"+r"
(
b
),
"+r"
(
dst
)
:
"r"
((
x86_reg
)
stride
),
"r"
((
x86_reg
)
3L
*
stride
)
:
"memory"
);
// STOP_TIMER("put_vp_no_rnd_pixels8_l2_mmx")
}
static
void
put_vp_no_rnd_pixels16_l2_mmx
(
uint8_t
*
dst
,
const
uint8_t
*
a
,
const
uint8_t
*
b
,
int
stride
,
int
h
)
{
put_vp_no_rnd_pixels8_l2_mmx
(
dst
,
a
,
b
,
stride
,
h
);
put_vp_no_rnd_pixels8_l2_mmx
(
dst
+
8
,
a
+
8
,
b
+
8
,
stride
,
h
);
}
/* XXX: those functions should be suppressed ASAP when all IDCTs are
converted */
#if CONFIG_GPL
...
...
@@ -2455,6 +2493,9 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
if
(
!
high_bit_depth
)
c
->
draw_edges
=
draw_edges_mmx
;
c
->
put_no_rnd_pixels_l2
[
0
]
=
put_vp_no_rnd_pixels16_l2_mmx
;
c
->
put_no_rnd_pixels_l2
[
1
]
=
put_vp_no_rnd_pixels8_l2_mmx
;
if
(
CONFIG_H263_DECODER
||
CONFIG_H263_ENCODER
)
{
c
->
h263_v_loop_filter
=
h263_v_loop_filter_mmx
;
c
->
h263_h_loop_filter
=
h263_h_loop_filter_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