projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Supporters update.
[dcpomatic.git]
/
test
/
required_disk_space_test.cc
diff --git
a/test/required_disk_space_test.cc
b/test/required_disk_space_test.cc
index db659c2c9ff0d411697bbff5511250bdd741d323..b704ccef2d13557fa923bbadbb288a0853d3c626 100644
(file)
--- a/
test/required_disk_space_test.cc
+++ b/
test/required_disk_space_test.cc
@@
-46,7
+46,7
@@
BOOST_AUTO_TEST_CASE (required_disk_space_test)
{
auto film = new_test_film ("required_disk_space_test");
film->set_j2k_bandwidth (100000000);
{
auto film = new_test_film ("required_disk_space_test");
film->set_j2k_bandwidth (100000000);
- film->set_audio_channels
(6
);
+ film->set_audio_channels
(8
);
film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
auto content_a = content_factory("test/data/flat_blue.png")[0];
BOOST_REQUIRE (content_a);
film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
auto content_a = content_factory("test/data/flat_blue.png")[0];
BOOST_REQUIRE (content_a);
@@
-58,8
+58,8
@@
BOOST_AUTO_TEST_CASE (required_disk_space_test)
check_within_n (
film->required_disk_space(),
check_within_n (
film->required_disk_space(),
- 28
9
LL * (100000000 / 8) / 24 + // video
- 28
9LL * 48000 * 6
* 3 / 24 + // audio
+ 28
8
LL * (100000000 / 8) / 24 + // video
+ 28
8LL * 48000 * 8
* 3 / 24 + // audio
65536, // extra
16
);
65536, // extra
16
);
@@
-69,17
+69,19
@@
BOOST_AUTO_TEST_CASE (required_disk_space_test)
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
- 28
9LL * 48000 * 6
* 3 / 24 + // audio
+ 28
8LL * 48000 * 8
* 3 / 24 + // audio
65536, // extra
16
);
65536, // extra
16
);
+ std::string why_not;
+ BOOST_CHECK(content_b->can_reference_audio(film, why_not));
content_b->set_reference_audio (true);
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
content_b->set_reference_audio (true);
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
- 240LL * 48000 *
6
* 3 / 24 + // audio
+ 240LL * 48000 *
8
* 3 / 24 + // audio
65536, // extra
16
);
65536, // extra
16
);