diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-06 11:51:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-18 12:11:43 +0200 |
| commit | 6801a43a489b3e55ab062b0db46e0e03d20e9bcb (patch) | |
| tree | f46d8a54dc00852d015d59c7b7a37e1654381dae /test/test.cc | |
| parent | c7de16512dad5f4a1e9c1acdaddfc300e428ed3e (diff) | |
Move Behaviour enum out of J2KPictureAsset.
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index 56ea32cd..51a631d2 100644 --- a/test/test.cc +++ b/test/test.cc @@ -284,7 +284,7 @@ simple_picture (boost::filesystem::path path, string suffix, int frames, optiona if (key) { mp->set_key (*key); } - auto picture_writer = mp->start_write(path / dcp::String::compose("video%1.mxf", suffix), dcp::J2KPictureAsset::Behaviour::MAKE_NEW); + auto picture_writer = mp->start_write(path / dcp::String::compose("video%1.mxf", suffix), dcp::Behaviour::MAKE_NEW); dcp::Size const size (1998, 1080); auto image = make_shared<dcp::OpenJPEGImage>(size); @@ -533,7 +533,7 @@ black_picture_asset (boost::filesystem::path dir, int frames) auto asset = make_shared<dcp::MonoJ2KPictureAsset>(dcp::Fraction(24, 1), dcp::Standard::SMPTE); asset->set_metadata (dcp::MXFMetadata("libdcp", "libdcp", "1.6.4devel")); boost::filesystem::create_directories (dir); - auto writer = asset->start_write(dir / "pic.mxf", dcp::J2KPictureAsset::Behaviour::MAKE_NEW); + auto writer = asset->start_write(dir / "pic.mxf", dcp::Behaviour::MAKE_NEW); for (int i = 0; i < frames; ++i) { writer->write (frame.data(), frame.size()); } |
