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
16b73280
Commit
16b73280
authored
Jul 21, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Conditionally build and run DCT test program
parent
bd499d9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
Makefile
libavcodec/Makefile
+2
-2
dct-test.c
libavcodec/dct-test.c
+4
-1
libavcodec.mak
tests/fate/libavcodec.mak
+1
-1
No files found.
libavcodec/Makefile
View file @
16b73280
...
...
@@ -711,12 +711,12 @@ SKIPHEADERS-$(CONFIG_VAAPI) += vaapi_internal.h
SKIPHEADERS-$(CONFIG_VDA)
+=
vda.h
vda_internal.h
SKIPHEADERS-$(CONFIG_VDPAU)
+=
vdpau.h
vdpau_internal.h
TESTPROGS
=
dct
\
fft
\
TESTPROGS
=
fft
\
fft-fixed
\
golomb
\
rangecoder
\
TESTPROGS-$(CONFIG_IDCTDSP)
+=
dct
TESTPROGS-$(CONFIG_IIRFILTER)
+=
iirfilter
TESTOBJS
=
dctref.o
...
...
libavcodec/dct-test.c
View file @
16b73280
...
...
@@ -443,7 +443,9 @@ int main(int argc, char **argv)
for
(
i
=
0
;
idct_tab_arch
[
i
].
name
;
i
++
)
if
(
!
(
~
cpu_flags
&
idct_tab_arch
[
i
].
cpu_flag
))
err
|=
dct_error
(
&
idct_tab_arch
[
i
],
test
,
test_idct
,
speed
);
}
else
{
}
#if CONFIG_FDCTDSP
else
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
fdct_tab
);
i
++
)
err
|=
dct_error
(
&
fdct_tab
[
i
],
test
,
test_idct
,
speed
);
...
...
@@ -451,6 +453,7 @@ int main(int argc, char **argv)
if
(
!
(
~
cpu_flags
&
fdct_tab_arch
[
i
].
cpu_flag
))
err
|=
dct_error
(
&
fdct_tab_arch
[
i
],
test
,
test_idct
,
speed
);
}
#endif
/* CONFIG_FDCTDSP */
}
if
(
err
)
...
...
tests/fate/libavcodec.mak
View file @
16b73280
...
...
@@ -3,7 +3,7 @@ fate-golomb: libavcodec/golomb-test$(EXESUF)
fate-golomb: CMD = run libavcodec/golomb-test
fate-golomb: REF = /dev/null
FATE_LIBAVCODEC-
yes
+= fate-idct8x8
FATE_LIBAVCODEC-
$(CONFIG_IDCTDSP)
+= fate-idct8x8
fate-idct8x8: libavcodec/dct-test$(EXESUF)
fate-idct8x8: CMD = run libavcodec/dct-test -i
fate-idct8x8: CMP = null
...
...
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