Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
434df899
Commit
434df899
authored
19 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
add xvid idcts to dct-test
Originally committed as revision 4576 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cd7af76d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/Makefile
+1
-1
1 addition, 1 deletion
libavcodec/Makefile
libavcodec/dct-test.c
+8
-0
8 additions, 0 deletions
libavcodec/dct-test.c
with
9 additions
and
1 deletion
libavcodec/Makefile
+
1
−
1
View file @
434df899
...
@@ -465,7 +465,7 @@ imgresample-test: imgresample.c
...
@@ -465,7 +465,7 @@ imgresample-test: imgresample.c
$(
CC
)
$(
CFLAGS
)
-DTEST
-o
$@
$^
-lm
$(
CC
)
$(
CFLAGS
)
-DTEST
-o
$@
$^
-lm
dct-test
:
dct-test.o fdctref.o $(LIB)
dct-test
:
dct-test.o fdctref.o $(LIB)
$(
CC
)
-o
$@
$^
-lm
$(
CC
)
-o
$@
$^
-lm
$(
LIBAVUTIL
)
motion-test
:
motion_test.o $(LIB)
motion-test
:
motion_test.o $(LIB)
$(
CC
)
-o
$@
$^
-lm
$(
CC
)
-o
$@
$^
-lm
...
...
This diff is collapsed.
Click to expand it.
libavcodec/dct-test.c
+
8
−
0
View file @
434df899
...
@@ -20,9 +20,15 @@
...
@@ -20,9 +20,15 @@
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
#endif
#undef printf
void
*
fast_memcpy
(
void
*
a
,
const
void
*
b
,
size_t
c
){
return
memcpy
(
a
,
b
,
c
);};
/* reference fdct/idct */
/* reference fdct/idct */
extern
void
fdct
(
DCTELEM
*
block
);
extern
void
fdct
(
DCTELEM
*
block
);
extern
void
idct
(
DCTELEM
*
block
);
extern
void
idct
(
DCTELEM
*
block
);
extern
void
ff_idct_xvid_mmx
(
DCTELEM
*
block
);
extern
void
ff_idct_xvid_mmx2
(
DCTELEM
*
block
);
extern
void
init_fdct
();
extern
void
init_fdct
();
extern
void
j_rev_dct
(
DCTELEM
*
data
);
extern
void
j_rev_dct
(
DCTELEM
*
data
);
...
@@ -493,6 +499,8 @@ int main(int argc, char **argv)
...
@@ -493,6 +499,8 @@ int main(int argc, char **argv)
dct_error
(
"LIBMPEG2-MMXEXT"
,
1
,
ff_mmxext_idct
,
idct
,
test
);
dct_error
(
"LIBMPEG2-MMXEXT"
,
1
,
ff_mmxext_idct
,
idct
,
test
);
dct_error
(
"SIMPLE-C"
,
1
,
simple_idct
,
idct
,
test
);
dct_error
(
"SIMPLE-C"
,
1
,
simple_idct
,
idct
,
test
);
dct_error
(
"SIMPLE-MMX"
,
1
,
ff_simple_idct_mmx
,
idct
,
test
);
dct_error
(
"SIMPLE-MMX"
,
1
,
ff_simple_idct_mmx
,
idct
,
test
);
dct_error
(
"XVID-MMX"
,
1
,
ff_idct_xvid_mmx
,
idct
,
test
);
dct_error
(
"XVID-MMX2"
,
1
,
ff_idct_xvid_mmx2
,
idct
,
test
);
// dct_error("ODIVX-C", 1, odivx_idct_c, idct);
// dct_error("ODIVX-C", 1, odivx_idct_c, idct);
//printf(" test against odivx idct\n");
//printf(" test against odivx idct\n");
// dct_error("REF", 1, idct, odivx_idct_c);
// dct_error("REF", 1, idct, odivx_idct_c);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment