-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AVC separate fields regression test
- Loading branch information
1 parent
75a3a9d
commit 3ce05f2
Showing
6 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include("${CMAKE_CURRENT_SOURCE_DIR}/../testing.cmake") | ||
|
||
setup_test_dir("avc_separate_fields") | ||
|
||
set(args | ||
"${common_args}" | ||
-P "${CMAKE_CURRENT_SOURCE_DIR}/test_avc_separate_fields.cmake" | ||
) | ||
setup_test("avc_separate_fields" "bmx_avc_separate_fields" "${args}") |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Test creating and transwrapping separate field encoded AVC | ||
|
||
include("${TEST_SOURCE_DIR}/../testing.cmake") | ||
|
||
|
||
if(TEST_MODE STREQUAL "check") | ||
set(output_file_1 test_1.mxf) | ||
elseif(TEST_MODE STREQUAL "samples") | ||
file(MAKE_DIRECTORY ${BMX_TEST_SAMPLES_DIR}) | ||
|
||
set(output_file_1 ${BMX_TEST_SAMPLES_DIR}/test_avc_separate_fields_1.mxf) | ||
else() | ||
set(output_file_1 test_1.mxf) | ||
endif() | ||
|
||
set(create_command ${RAW2BMX} | ||
--regtest-real | ||
-t op1a | ||
-o ${output_file_1} | ||
--clip test | ||
--avc "${TEST_SOURCE_DIR}/separate_fields_gop.h264" | ||
) | ||
|
||
run_test_a( | ||
"${TEST_MODE}" | ||
"${BMX_TEST_WITH_VALGRIND}" | ||
"" | ||
"" | ||
"" | ||
"${create_command}" | ||
"" | ||
"" | ||
"" | ||
"${output_file_1}" | ||
"test_avc_separate_fields_1.md5" | ||
"" | ||
"" | ||
) | ||
|
||
|
||
if(TEST_MODE STREQUAL "check") | ||
set(output_file_2 test.mxf) | ||
elseif(TEST_MODE STREQUAL "samples") | ||
set(output_file_2 ${BMX_TEST_SAMPLES_DIR}/test_avc_separate_fields_2.mxf) | ||
else() | ||
set(output_file_2 test.mxf) | ||
endif() | ||
|
||
set(create_command ${BMXTRANSWRAP} | ||
--regtest | ||
-t op1a | ||
-o ${output_file_2} | ||
--clip test | ||
${output_file_1} | ||
) | ||
|
||
run_test_a( | ||
"${TEST_MODE}" | ||
"${BMX_TEST_WITH_VALGRIND}" | ||
"" | ||
"" | ||
"" | ||
"${create_command}" | ||
"" | ||
"" | ||
"" | ||
"${output_file_2}" | ||
"test_avc_separate_fields_2.md5" | ||
"" | ||
"" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7b429699a7423ea3c4e41c0b92a85c07 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2062122891d2ff6c33956fbe98b85942 |