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
6acce86b
Commit
6acce86b
authored
Sep 05, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing tests
Originally committed as revision 905 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
64a7a8af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
Makefile
libavcodec/Makefile
+2
-2
imgresample.c
libavcodec/imgresample.c
+2
-2
motion_test.c
libavcodec/motion_test.c
+16
-16
No files found.
libavcodec/Makefile
View file @
6acce86b
...
...
@@ -139,14 +139,14 @@ cpuid_test: i386/cputest.c
# testing progs
imgresample-test
:
imgresample.c
$(CC)
$(CFLAGS)
-DTEST
-o
$@
$^
$(CC)
$(CFLAGS)
-DTEST
-o
$@
$^
-lm
dct-test
:
dct-test.o jfdctfst.o jfdctint.o i386/fdct_mmx.o
\
fdctref.o jrevdct.o i386/idct_mmx.o simple_idct.o i386/simple_idct_mmx.o
$(CC)
-o
$@
$^
-lm
motion-test
:
motion_test.o $(LIB)
$(CC)
-o
$@
$^
$(CC)
-o
$@
$^
-lm
install
:
all
ifeq
($(BUILD_SHARED),yes)
...
...
libavcodec/imgresample.c
View file @
6acce86b
...
...
@@ -539,7 +539,7 @@ static void dump_filter(INT16 *filter)
}
#ifdef HAVE_MMX
extern
int
mm_flags
;
int
mm_flags
;
#endif
int
main
(
int
argc
,
char
**
argv
)
...
...
@@ -598,7 +598,7 @@ int main(int argc, char **argv)
fact
=
factors
[
i
];
xsize
=
(
int
)(
XSIZE
*
fact
);
ysize
=
(
int
)((
YSIZE
-
100
)
*
fact
);
s
=
img_resample_full_init
(
xsize
,
ysize
,
XSIZE
,
YSIZE
,
50
,
50
);
s
=
img_resample_full_init
(
xsize
,
ysize
,
XSIZE
,
YSIZE
,
50
,
50
,
0
,
0
);
printf
(
"Factor=%0.2f
\n
"
,
fact
);
dump_filter
(
&
s
->
h_filters
[
0
][
0
]);
component_resample
(
s
,
img1
,
xsize
,
xsize
,
ysize
,
...
...
libavcodec/motion_test.c
View file @
6acce86b
...
...
@@ -10,19 +10,19 @@
#include "i386/mmx.h"
int
pix_abs16x16_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_x2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_x2_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_x2_c
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_y2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_y2_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_y2_c
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_xy2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_xy2_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_xy2_c
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
typedef
int
motion_func
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
,
int
h
);
int
pix_abs16x16_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_x2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_x2_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_x2_c
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_y2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_y2_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_y2_c
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_xy2_mmx
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_xy2_mmx1
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
int
pix_abs16x16_xy2_c
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
typedef
int
motion_func
(
UINT8
*
blk1
,
UINT8
*
blk2
,
int
lx
);
#define WIDTH 64
#define HEIGHT 64
...
...
@@ -77,8 +77,8 @@ void test_motion(const char *name,
for
(
y
=
0
;
y
<
HEIGHT
-
17
;
y
++
)
{
for
(
x
=
0
;
x
<
WIDTH
-
17
;
x
++
)
{
ptr
=
img2
+
y
*
WIDTH
+
x
;
d1
=
test_func
(
img1
,
ptr
,
WIDTH
,
16
);
d2
=
ref_func
(
img1
,
ptr
,
WIDTH
,
16
);
d1
=
test_func
(
img1
,
ptr
,
WIDTH
);
d2
=
ref_func
(
img1
,
ptr
,
WIDTH
);
if
(
d1
!=
d2
)
{
printf
(
"error: mmx=%d c=%d
\n
"
,
d1
,
d2
);
}
...
...
@@ -94,7 +94,7 @@ void test_motion(const char *name,
for
(
y
=
0
;
y
<
HEIGHT
-
17
;
y
++
)
{
for
(
x
=
0
;
x
<
WIDTH
-
17
;
x
++
)
{
ptr
=
img2
+
y
*
WIDTH
+
x
;
d1
+=
test_func
(
img1
,
ptr
,
WIDTH
,
16
);
d1
+=
test_func
(
img1
,
ptr
,
WIDTH
);
}
}
}
...
...
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