diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-22 19:42:39 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-22 19:42:39 +0000 |
| commit | 1c724e363a644abaee7efb39d6091e7b30de0fb6 (patch) | |
| tree | 413e28533849835f8496c8c972bd26e1d27aefbe /test/round_trip_test.cc | |
| parent | 1e9f115b7cda68ccba99f58d194a2c0eb83e7e23 (diff) | |
Various work.
Diffstat (limited to 'test/round_trip_test.cc')
| -rw-r--r-- | test/round_trip_test.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/round_trip_test.cc b/test/round_trip_test.cc index 0e6fe5f5..69bf63f9 100644 --- a/test/round_trip_test.cc +++ b/test/round_trip_test.cc @@ -58,9 +58,14 @@ BOOST_AUTO_TEST_CASE (round_trip_test) shared_ptr<dcp::MonoPictureMXF> asset_A (new dcp::MonoPictureMXF (work_dir, "video.mxf")); asset_A->set_edit_rate (24); - asset_A->set_intrinsic_duration (24); - asset_A->set_size (dcp::Size (32, 32)); - asset_A->create (j2c); + shared_ptr<PictureMXFWriter> writer; + boost::filesystem::path mxf = work_dir + "video.mxf"; + writer->start_write (mxf, false); + TestFile j2c ("test/data/32x32_red_square.j2c"); + for (int i = 0; i < 24; ++i) { + writer->write (j2c.data (), j2c.size ()); + } + writer->finalize (); dcp::Key key; |
