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
daa1ea04
Commit
daa1ea04
authored
Oct 19, 2008
by
David Conrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VP3 loop filter is mmx2 not mmx
Originally committed as revision 15642 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9806f846
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+6
-5
vp3dsp_mmx.c
libavcodec/i386/vp3dsp_mmx.c
+2
-2
vp3dsp_mmx.h
libavcodec/i386/vp3dsp_mmx.h
+2
-2
No files found.
libavcodec/i386/dsputil_mmx.c
View file @
daa1ea04
...
...
@@ -2593,11 +2593,6 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c
->
h263_v_loop_filter
=
h263_v_loop_filter_mmx
;
c
->
h263_h_loop_filter
=
h263_h_loop_filter_mmx
;
}
if
((
ENABLE_VP3_DECODER
||
ENABLE_THEORA_DECODER
)
&&
!
(
avctx
->
flags
&
CODEC_FLAG_BITEXACT
))
{
c
->
vp3_v_loop_filter
=
ff_vp3_v_loop_filter_mmx
;
c
->
vp3_h_loop_filter
=
ff_vp3_h_loop_filter_mmx
;
}
c
->
put_h264_chroma_pixels_tab
[
0
]
=
put_h264_chroma_mc8_mmx_rnd
;
c
->
put_h264_chroma_pixels_tab
[
1
]
=
put_h264_chroma_mc4_mmx
;
c
->
put_no_rnd_h264_chroma_pixels_tab
[
0
]
=
put_h264_chroma_mc8_mmx_nornd
;
...
...
@@ -2638,6 +2633,12 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c
->
avg_pixels_tab
[
1
][
3
]
=
avg_pixels8_xy2_mmx2
;
}
if
((
ENABLE_VP3_DECODER
||
ENABLE_THEORA_DECODER
)
&&
!
(
avctx
->
flags
&
CODEC_FLAG_BITEXACT
))
{
c
->
vp3_v_loop_filter
=
ff_vp3_v_loop_filter_mmx2
;
c
->
vp3_h_loop_filter
=
ff_vp3_h_loop_filter_mmx2
;
}
#define SET_QPEL_FUNCS(PFX, IDX, SIZE, CPU) \
c->PFX ## _pixels_tab[IDX][ 0] = PFX ## SIZE ## _mc00_ ## CPU; \
c->PFX ## _pixels_tab[IDX][ 1] = PFX ## SIZE ## _mc10_ ## CPU; \
...
...
libavcodec/i386/vp3dsp_mmx.c
View file @
daa1ea04
...
...
@@ -84,7 +84,7 @@ extern const uint16_t ff_vp3_idct_data[];
"shr $16, %0 \n\t" \
"movw %w0, -1"#dst3" \n\t"
void
ff_vp3_v_loop_filter_mmx
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
)
void
ff_vp3_v_loop_filter_mmx
2
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
)
{
__asm__
volatile
(
"movq %0, %%mm6
\n\t
"
...
...
@@ -105,7 +105,7 @@ void ff_vp3_v_loop_filter_mmx(uint8_t *src, int stride, int *bounding_values)
);
}
void
ff_vp3_h_loop_filter_mmx
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
)
void
ff_vp3_h_loop_filter_mmx
2
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
)
{
x86_reg
tmp
;
...
...
libavcodec/i386/vp3dsp_mmx.h
View file @
daa1ea04
...
...
@@ -29,7 +29,7 @@ void ff_vp3_idct_mmx(int16_t *data);
void
ff_vp3_idct_put_mmx
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
);
void
ff_vp3_idct_add_mmx
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
);
void
ff_vp3_v_loop_filter_mmx
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
);
void
ff_vp3_h_loop_filter_mmx
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
);
void
ff_vp3_v_loop_filter_mmx
2
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
);
void
ff_vp3_h_loop_filter_mmx
2
(
uint8_t
*
src
,
int
stride
,
int
*
bounding_values
);
#endif
/* AVCODEC_I386_VP3DSP_MMX_H */
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