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
8def0299
Commit
8def0299
authored
Aug 07, 2001
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added mmx idct
Originally committed as revision 53 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3c054a1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
26 deletions
+9
-26
dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+9
-26
No files found.
libavcodec/i386/dsputil_mmx.c
View file @
8def0299
...
...
@@ -29,15 +29,9 @@ int pix_abs16x16_x2_mmx(UINT8 *blk1, UINT8 *blk2, int lx, int h);
int
pix_abs16x16_y2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_xy2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
#ifdef USE_MMX_IDCT
/* external functions, defined in libmpeg2 */
void
mmx_idct
(
DCTELEM
*
block
);
void
mmxext_idct
(
DCTELEM
*
block
);
/* this should be in dsputil.h? -- A'rpi */
extern
UINT8
ff_alternate_horizontal_scan
[
64
];
extern
UINT8
ff_alternate_vertical_scan
[
64
];
extern
UINT8
zigzag_direct
[
64
];
#endif
/* external functions, from idct_mmx.c */
void
ff_mmx_idct
(
DCTELEM
*
block
);
void
ff_mmxext_idct
(
DCTELEM
*
block
);
/* pixel operations */
static
const
unsigned
long
long
int
mm_wone
__attribute__
((
aligned
(
8
)))
=
0x0001000100010001
;
...
...
@@ -1050,22 +1044,11 @@ void dsputil_init_mmx(void)
sub_pixels_tab
[
2
]
=
sub_pixels_y2_3dnow
;
}
#ifdef USE_MMX_IDCT
/* use MMX / MMXEXT iDCT code from libmpeg2 */
//printf("LIBAVCODEC: Using MMX%s iDCT code\n",(mm_flags & MM_MMXEXT)?"EXT":"");
ff_idct
=
(
mm_flags
&
MM_MMXEXT
)
?
mmxext_idct
:
mmx_idct
;
/* the mmx/mmxext idct uses a reordered input, so we patch scan tables */
{
int
i
,
j
;
for
(
i
=
0
;
i
<
64
;
i
++
)
{
j
=
zigzag_direct
[
i
];
zigzag_direct
[
i
]
=
(
j
&
0x38
)
|
((
j
&
6
)
>>
1
)
|
((
j
&
1
)
<<
2
);
j
=
ff_alternate_horizontal_scan
[
i
];
ff_alternate_horizontal_scan
[
i
]
=
(
j
&
0x38
)
|
((
j
&
6
)
>>
1
)
|
((
j
&
1
)
<<
2
);
j
=
ff_alternate_vertical_scan
[
i
];
ff_alternate_vertical_scan
[
i
]
=
(
j
&
0x38
)
|
((
j
&
6
)
>>
1
)
|
((
j
&
1
)
<<
2
);
}
}
#endif
/* idct */
if
(
mm_flags
&
MM_MMXEXT
)
{
ff_idct
=
ff_mmxext_idct
;
}
else
{
ff_idct
=
ff_mmx_idct
;
}
}
}
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