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
58139e14
Commit
58139e14
authored
Sep 13, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: dsputil: Move Xvid IDCT put/add functions to a more suitable place
parent
18d88255
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
27 deletions
+33
-27
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+0
-27
idct_mmx_xvid.c
libavcodec/x86/idct_mmx_xvid.c
+25
-0
idct_xvid.h
libavcodec/x86/idct_xvid.h
+8
-0
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
58139e14
...
@@ -2161,33 +2161,6 @@ void ff_avg_vc1_mspel_mc00_mmx2(uint8_t *dst, const uint8_t *src,
...
@@ -2161,33 +2161,6 @@ void ff_avg_vc1_mspel_mc00_mmx2(uint8_t *dst, const uint8_t *src,
avg_pixels8_mmx2
(
dst
,
src
,
stride
,
8
);
avg_pixels8_mmx2
(
dst
,
src
,
stride
,
8
);
}
}
/* XXX: Those functions should be suppressed ASAP when all IDCTs are
* converted. */
static
void
ff_idct_xvid_mmx_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx
(
block
);
ff_put_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
static
void
ff_idct_xvid_mmx_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx
(
block
);
ff_add_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
static
void
ff_idct_xvid_mmx2_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx2
(
block
);
ff_put_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
static
void
ff_idct_xvid_mmx2_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx2
(
block
);
ff_add_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
static
void
vorbis_inverse_coupling_3dnow
(
float
*
mag
,
float
*
ang
,
int
blocksize
)
static
void
vorbis_inverse_coupling_3dnow
(
float
*
mag
,
float
*
ang
,
int
blocksize
)
{
{
int
i
;
int
i
;
...
...
libavcodec/x86/idct_mmx_xvid.c
View file @
58139e14
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
#include "config.h"
#include "config.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/avcodec.h"
#include "libavutil/mem.h"
#include "libavutil/mem.h"
#include "dsputil_mmx.h"
#include "idct_xvid.h"
#include "idct_xvid.h"
#if HAVE_INLINE_ASM
#if HAVE_INLINE_ASM
...
@@ -529,4 +530,28 @@ __asm__ volatile(
...
@@ -529,4 +530,28 @@ __asm__ volatile(
::
"r"
(
block
),
"r"
(
rounder_0
),
"r"
(
tab_i_04_xmm
),
"r"
(
tg_1_16
));
::
"r"
(
block
),
"r"
(
rounder_0
),
"r"
(
tab_i_04_xmm
),
"r"
(
tg_1_16
));
}
}
void
ff_idct_xvid_mmx_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx
(
block
);
ff_put_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
void
ff_idct_xvid_mmx_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx
(
block
);
ff_add_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
void
ff_idct_xvid_mmx2_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx2
(
block
);
ff_put_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
void
ff_idct_xvid_mmx2_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
ff_idct_xvid_mmx2
(
block
);
ff_add_pixels_clamped_mmx
(
block
,
dest
,
line_size
);
}
#endif
/* HAVE_INLINE_ASM */
#endif
/* HAVE_INLINE_ASM */
libavcodec/x86/idct_xvid.h
View file @
58139e14
...
@@ -28,8 +28,16 @@
...
@@ -28,8 +28,16 @@
#include <stdint.h>
#include <stdint.h>
#include "libavcodec/dsputil.h"
void
ff_idct_xvid_mmx
(
short
*
block
);
void
ff_idct_xvid_mmx
(
short
*
block
);
void
ff_idct_xvid_mmx_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
);
void
ff_idct_xvid_mmx_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
);
void
ff_idct_xvid_mmx2
(
short
*
block
);
void
ff_idct_xvid_mmx2
(
short
*
block
);
void
ff_idct_xvid_mmx2_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
);
void
ff_idct_xvid_mmx2_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
);
void
ff_idct_xvid_sse2
(
short
*
block
);
void
ff_idct_xvid_sse2
(
short
*
block
);
void
ff_idct_xvid_sse2_put
(
uint8_t
*
dest
,
int
line_size
,
short
*
block
);
void
ff_idct_xvid_sse2_put
(
uint8_t
*
dest
,
int
line_size
,
short
*
block
);
void
ff_idct_xvid_sse2_add
(
uint8_t
*
dest
,
int
line_size
,
short
*
block
);
void
ff_idct_xvid_sse2_add
(
uint8_t
*
dest
,
int
line_size
,
short
*
block
);
...
...
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