fi
eval "${VPX_TEST_PREFIX}" "${decoder}" "${input_file}" "${output_file}" \
- "${drop_mode}" ${devnull}
+ "${drop_mode}" ${devnull} || return 1
[ -e "${output_file}" ] || return 1
}
decode_with_drops_vp8() {
if [ "$(vp8_decode_available)" = "yes" ]; then
# Test sequence mode: Drop frames 2-28.
- decode_with_drops "${VP8_IVF_FILE}" "vp8" "2-28"
+ decode_with_drops "${VP8_IVF_FILE}" "vp8" "2-28" || return 1
# Test pattern mode: Drop 3 of every 4 frames.
- decode_with_drops "${VP8_IVF_FILE}" "vp8" "3/4"
+ decode_with_drops "${VP8_IVF_FILE}" "vp8" "3/4" || return 1
fi
}
decode_with_drops_vp9() {
if [ "$(vp9_decode_available)" = "yes" ]; then
# Test sequence mode: Drop frames 2-28.
- decode_with_drops "${VP9_IVF_FILE}" "vp9" "2-19"
+ decode_with_drops "${VP9_IVF_FILE}" "vp9" "2-19" || return 1
# Test pattern mode: Drop 3 of every 4 frames.
- decode_with_drops "${VP9_IVF_FILE}" "vp9" "3/4"
+ decode_with_drops "${VP9_IVF_FILE}" "vp9" "3/4" || return 1
fi
}
"${output_file}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \
"${YUV_RAW_INPUT_HEIGHT}" "${timebase_num}" "${timebase_den}" \
"${speed}" "${frame_drop_thresh}" "${error_resilient}" "${threads}" \
- "$@" ${devnull}
+ "$@" ${devnull} || return 1
# Test for y4m input.
eval "${VPX_TEST_PREFIX}" "${encoder}" "${Y4M_720P_INPUT}" \
"${output_file}" "${codec}" "${Y4M_720P_INPUT_WIDTH}" \
"${Y4M_720P_INPUT_HEIGHT}" "${timebase_num}" "${timebase_den_y4m}" \
"${speed}" "${frame_drop_thresh}" "${error_resilient}" "${threads}" \
- "$@" ${devnull}
+ "$@" ${devnull} || return 1
else
eval "${VPX_TEST_PREFIX}" "${encoder}" "${YUV_RAW_INPUT}" \
"${output_file}" "${codec}" "${YUV_RAW_INPUT_WIDTH}" \
"${YUV_RAW_INPUT_HEIGHT}" "${timebase_num}" "${timebase_den}" \
"${speed}" "${frame_drop_thresh}" "${error_resilient}" "${threads}" \
- "$@" "8" ${devnull}
+ "$@" "8" ${devnull} || return 1
fi
done
}
--codec=vp8 \
--limit="${TEST_FRAMES}" \
--ivf \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
vpxenc $(yuv_input_hantro_collage) \
--codec=vp8 \
--limit="${TEST_FRAMES}" \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
local output="${VPX_TEST_OUTPUT_DIR}/vp8_rt.webm"
vpxenc $(yuv_input_hantro_collage) \
$(vpxenc_rt_params vp8) \
- --output="${output}"
+ --output="${output}" || return 1
+
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
return 1
--codec=vp8 \
--limit="${TEST_FRAMES}" \
--output="${output}" \
- --passes=2
+ --passes=2 || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--lag-in-frames="${lag_frames}" \
--output="${output}" \
--auto-alt-ref=1 \
- --passes=2
+ --passes=2 || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--codec=vp8 \
--limit="${TEST_FRAMES}" \
--ivf \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--limit="${TEST_FRAMES}" \
"${passes}" \
--ivf \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--codec=vp9 \
--limit="${TEST_FRAMES}" \
"${passes}" \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
local output="${VPX_TEST_OUTPUT_DIR}/vp9_rt.webm"
vpxenc $(yuv_input_hantro_collage) \
$(vpxenc_rt_params vp9) \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
$(vpxenc_rt_params vp9) \
--threads=${threads} \
--tile-columns=${tile_cols} \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--threads=${threads} \
--tile-columns=${tile_cols} \
--frame-parallel=1 \
- --output="${output}"
+ --output="${output}" || return 1
+
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
return 1
--codec=vp9 \
--limit="${TEST_FRAMES}" \
--output="${output}" \
- --passes=2
+ --passes=2 || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--ivf \
--output="${output}" \
"${passes}" \
- --lossless=1
+ --lossless=1 || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--output="${output}" \
"${passes}" \
--min-q=0 \
- --max-q=0
+ --max-q=0 || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--lag-in-frames="${lag_frames}" \
--output="${output}" \
"${passes}" \
- --auto-alt-ref=1
+ --auto-alt-ref=1 || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--codec=vp9 \
--limit="${TEST_FRAMES}" \
"${passes}" \
- --output="${output}"
+ --output="${output}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."
--end-usage=q \
--cq-level=40 \
--output="${output}" \
- "${passes}"
+ "${passes}" || return 1
if [ ! -e "${output}" ]; then
elog "Output file does not exist."