diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-13 21:24:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-13 21:24:56 +0100 |
| commit | 43b4e55710271c797b5d251c891047ed4da20e10 (patch) | |
| tree | cf81a81a300f517326774a5d8f74b9fee2574345 /test | |
| parent | 96721a3afd47e171c4c82120cdb26e9679b0f89a (diff) | |
Add somewhat empirical support for YUVJ42{0,2,4}P pixels.
Diffstat (limited to 'test')
| -rw-r--r-- | test/make_black_test.cc | 6 | ||||
| -rw-r--r-- | test/test.cc | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/make_black_test.cc b/test/make_black_test.cc index 3c0b979ff..714621762 100644 --- a/test/make_black_test.cc +++ b/test/make_black_test.cc @@ -35,6 +35,9 @@ BOOST_AUTO_TEST_CASE (make_black_test) pix_fmts.push_back (AV_PIX_FMT_YUV444P10LE); pix_fmts.push_back (AV_PIX_FMT_YUV444P10BE); pix_fmts.push_back (AV_PIX_FMT_UYVY422); + pix_fmts.push_back (AV_PIX_FMT_YUVJ420P); + pix_fmts.push_back (AV_PIX_FMT_YUVJ422P); + pix_fmts.push_back (AV_PIX_FMT_YUVJ444P); int N = 0; for (list<AVPixelFormat>::const_iterator i = pix_fmts.begin(); i != pix_fmts.end(); ++i) { @@ -46,6 +49,9 @@ BOOST_AUTO_TEST_CASE (make_black_test) for (int y = 0; y < bar->size().height; ++y) { uint8_t* q = p; for (int x = 0; x < bar->line_size()[0]; ++x) { + if (*q != 0) { + std::cerr << "x=" << x << ", (x%3)=" << (x%3) << "\n"; + } BOOST_CHECK_EQUAL (*q++, 0); } p += bar->stride()[0]; diff --git a/test/test.cc b/test/test.cc index 91c876412..65b1f9056 100644 --- a/test/test.cc +++ b/test/test.cc @@ -62,6 +62,8 @@ struct TestConfig Config::instance()->set_servers (vector<ServerDescription*> ()); Config::instance()->set_server_port (61920); Config::instance()->set_default_dci_metadata (DCIMetadata ()); + Config::instance()->set_default_format (static_cast<Format*> (0)); + Config::instance()->set_default_dcp_content_type (static_cast<DCPContentType*> (0)); } }; @@ -101,3 +103,4 @@ new_test_film (string name) #include "job_test.cc" #include "client_server_test.cc" #include "image_test.cc" + |
