A->set_container (Ratio::from_id ("185"));
A->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR"));
A->set_name ("frobozz");
A->set_interop (true);
A->set_container (Ratio::from_id ("185"));
A->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR"));
A->set_name ("frobozz");
A->set_interop (true);
- dcp::EncryptedKDM A_kdm = A->make_kdm (
- Config::instance()->decryption_chain()->leaf (),
+ auto A_kdm = A->make_kdm (
+ Config::instance()->decryption_chain()->leaf(),
- dcp::LocalTime ("2030-07-21T00:00:00+00:00"),
- dcp::LocalTime ("2031-07-21T00:00:00+00:00"),
- dcp::MODIFIED_TRANSITIONAL_1,
+ dcp::LocalTime("2030-07-21T00:00:00+00:00"),
+ dcp::LocalTime("2031-07-21T00:00:00+00:00"),
+ dcp::Formulation::MODIFIED_TRANSITIONAL_1,
- shared_ptr<Film> B = new_test_film ("vf_kdm_test_vf");
- B->set_container (Ratio::from_id ("185"));
- B->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR"));
+ auto B = new_test_film ("vf_kdm_test_vf");
+ B->set_container (Ratio::from_id("185"));
+ B->set_dcp_content_type (DCPContentType::from_isdcf_name("TLR"));
d->add_kdm (A_kdm);
d->set_reference_video (true);
B->examine_and_add_content (d);
B->set_encrypted (true);
BOOST_REQUIRE (!wait_for_jobs());
d->add_kdm (A_kdm);
d->set_reference_video (true);
B->examine_and_add_content (d);
B->set_encrypted (true);
BOOST_REQUIRE (!wait_for_jobs());
Config::instance()->decryption_chain()->leaf (),
vector<string>(),
B_dcp.cpls().front()->file().get(),
dcp::LocalTime ("2030-07-21T00:00:00+00:00"),
dcp::LocalTime ("2031-07-21T00:00:00+00:00"),
Config::instance()->decryption_chain()->leaf (),
vector<string>(),
B_dcp.cpls().front()->file().get(),
dcp::LocalTime ("2030-07-21T00:00:00+00:00"),
dcp::LocalTime ("2031-07-21T00:00:00+00:00"),
C->set_container (Ratio::from_id ("185"));
C->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR"));
C->set_name ("frobozz");
C->set_interop (true);
C->set_container (Ratio::from_id ("185"));
C->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR"));
C->set_name ("frobozz");
C->set_interop (true);
e->add_kdm (B_kdm);
e->add_ov ("build/test/vf_kdm_test_ov/" + A->dcp_name());
C->examine_and_add_content (e);
BOOST_REQUIRE (!wait_for_jobs());
e->add_kdm (B_kdm);
e->add_ov ("build/test/vf_kdm_test_ov/" + A->dcp_name());
C->examine_and_add_content (e);
BOOST_REQUIRE (!wait_for_jobs());
/* Should be 1s red, 1s green, 1s blue */
check_dcp ("test/data/vf_kdm_test_check", "build/test/vf_kdm_test_check/" + C->dcp_name());
/* Should be 1s red, 1s green, 1s blue */
check_dcp ("test/data/vf_kdm_test_check", "build/test/vf_kdm_test_check/" + C->dcp_name());