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
6da971f1
Commit
6da971f1
authored
Mar 07, 2006
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_idct_add only needs mmx1
Originally committed as revision 5122 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6e269594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+3
-1
h264dsp_mmx.c
libavcodec/i386/h264dsp_mmx.c
+3
-3
No files found.
libavcodec/i386/dsputil_mmx.c
View file @
6da971f1
...
...
@@ -2732,6 +2732,9 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c
->
put_h264_chroma_pixels_tab
[
0
]
=
put_h264_chroma_mc8_mmx
;
c
->
put_h264_chroma_pixels_tab
[
1
]
=
put_h264_chroma_mc4_mmx
;
c
->
h264_idct_dc_add
=
c
->
h264_idct_add
=
ff_h264_idct_add_mmx
;
if
(
mm_flags
&
MM_MMXEXT
)
{
c
->
put_pixels_tab
[
0
][
1
]
=
put_pixels16_x2_mmx2
;
c
->
put_pixels_tab
[
0
][
2
]
=
put_pixels16_y2_mmx2
;
...
...
@@ -2753,7 +2756,6 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
c
->
vsad
[
4
]
=
vsad_intra16_mmx2
;
#endif //CONFIG_ENCODERS
c
->
h264_idct_add
=
ff_h264_idct_add_mmx2
;
c
->
h264_idct_dc_add
=
ff_h264_idct_dc_add_mmx2
;
c
->
h264_idct8_dc_add
=
ff_h264_idct8_dc_add_mmx2
;
...
...
libavcodec/i386/h264dsp_mmx.c
View file @
6da971f1
...
...
@@ -65,7 +65,7 @@
"packuswb "#z", "#p" \n\t"\
"movd "#p", (%0) \n\t"
void
ff_h264_idct_add_mmx2
(
uint8_t
*
dst
,
int16_t
*
block
,
int
stride
)
static
void
ff_h264_idct_add_mmx
(
uint8_t
*
dst
,
int16_t
*
block
,
int
stride
)
{
/* Load dct coeffs */
asm
volatile
(
...
...
@@ -104,7 +104,7 @@ void ff_h264_idct_add_mmx2(uint8_t *dst, int16_t *block, int stride)
);
}
void
ff_h264_idct_dc_add_mmx2
(
uint8_t
*
dst
,
int16_t
*
block
,
int
stride
)
static
void
ff_h264_idct_dc_add_mmx2
(
uint8_t
*
dst
,
int16_t
*
block
,
int
stride
)
{
int
dc
=
(
block
[
0
]
+
32
)
>>
6
;
asm
volatile
(
...
...
@@ -140,7 +140,7 @@ void ff_h264_idct_dc_add_mmx2(uint8_t *dst, int16_t *block, int stride)
);
}
void
ff_h264_idct8_dc_add_mmx2
(
uint8_t
*
dst
,
int16_t
*
block
,
int
stride
)
static
void
ff_h264_idct8_dc_add_mmx2
(
uint8_t
*
dst
,
int16_t
*
block
,
int
stride
)
{
int
dc
=
(
block
[
0
]
+
32
)
>>
6
;
int
y
;
...
...
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