Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
b924922f
Commit
b924922f
authored
Jul 31, 2014
by
Tom Finegan
Committed by
Gerrit Code Review
Jul 31, 2014
Browse files
Merge "tools_common.sh: Move vpxdec() test support to vpxdec.sh"
parents
a6a348b8
6e0748e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/tools_common.sh
View file @
b924922f
...
...
@@ -182,38 +182,6 @@ webm_io_available() {
[
"
$(
vpx_config_option_enabled CONFIG_WEBM_IO
)
"
=
"yes"
]
&&
echo yes
}
# Echoes yes to stdout when vpxdec exists according to vpx_tool_available().
vpxdec_available
()
{
[
-n
$(
vpx_tool_available vpxdec
)
]
&&
echo yes
}
# Wrapper function for running vpxdec in noblit mode. Requires that
# LIBVPX_BIN_PATH points to the directory containing vpxdec. Positional
# parameter one is used as the input file path. Positional parameter two, when
# present, is interpreted as a boolean flag that means the input should be sent
# to vpxdec via pipe from cat instead of directly.
vpxdec
()
{
local
input
=
"
${
1
}
"
local
pipe_input
=
${
2
}
if
[
$#
-gt
2
]
;
then
# shift away $1 and $2 so the remaining arguments can be passed to vpxdec
# via $@.
shift
2
fi
local
decoder
=
"
${
LIBVPX_BIN_PATH
}
/vpxdec
${
VPX_TEST_EXE_SUFFIX
}
"
if
[
-z
"
${
pipe_input
}
"
]
;
then
eval
"
${
VPX_TEST_PREFIX
}
"
"
${
decoder
}
"
"
$input
"
--summary
--noblit
"
$@
"
\
${
devnull
}
else
cat
"
${
input
}
"
\
|
eval
"
${
VPX_TEST_PREFIX
}
"
"
${
decoder
}
"
-
--summary
--noblit
"
$@
"
\
${
devnull
}
fi
}
# Echoes yes to stdout when vpxenc exists according to vpx_tool_available().
vpxenc_available
()
{
[
-n
$(
vpx_tool_available vpxenc
)
]
&&
echo yes
...
...
test/vpxdec.sh
View file @
b924922f
...
...
@@ -22,6 +22,38 @@ vpxdec_verify_environment() {
fi
}
# Echoes yes to stdout when vpxdec exists according to vpx_tool_available().
vpxdec_available
()
{
[
-n
"
$(
vpx_tool_available vpxdec
)
"
]
&&
echo yes
}
# Wrapper function for running vpxdec in noblit mode. Requires that
# LIBVPX_BIN_PATH points to the directory containing vpxdec. Positional
# parameter one is used as the input file path. Positional parameter two, when
# present, is interpreted as a boolean flag that means the input should be sent
# to vpxdec via pipe from cat instead of directly.
vpxdec
()
{
local
input
=
"
${
1
}
"
local
pipe_input
=
${
2
}
if
[
$#
-gt
2
]
;
then
# shift away $1 and $2 so the remaining arguments can be passed to vpxdec
# via $@.
shift
2
fi
local
decoder
=
"
${
LIBVPX_BIN_PATH
}
/vpxdec
${
VPX_TEST_EXE_SUFFIX
}
"
if
[
-z
"
${
pipe_input
}
"
]
;
then
eval
"
${
VPX_TEST_PREFIX
}
"
"
${
decoder
}
"
"
$input
"
--summary
--noblit
"
$@
"
\
${
devnull
}
else
cat
"
${
input
}
"
\
|
eval
"
${
VPX_TEST_PREFIX
}
"
"
${
decoder
}
"
-
--summary
--noblit
"
$@
"
\
${
devnull
}
fi
}
vpxdec_can_decode_vp8
()
{
if
[
"
$(
vpxdec_available
)
"
=
"yes"
]
&&
\
[
"
$(
vp8_decode_available
)
"
=
"yes"
]
;
then
...
...
Write
Preview
Supports
Markdown
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