projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to fix crash on looking up endpoint of a disconnected socket.
[dcpomatic.git]
/
test
/
image_test.cc
diff --git
a/test/image_test.cc
b/test/image_test.cc
index 750612cf42524d4de8c090641a969b5d45b3e606..82ebe0b1ff5e6825c0db29bbd92f8fc2495092f8 100644
(file)
--- a/
test/image_test.cc
+++ b/
test/image_test.cc
@@
-17,6
+17,12
@@
*/
*/
+#include <boost/test/unit_test.hpp>
+#include "lib/image.h"
+#include "lib/scaler.h"
+
+using boost::shared_ptr;
+
BOOST_AUTO_TEST_CASE (aligned_image_test)
{
Image* s = new Image (PIX_FMT_RGB24, libdcp::Size (50, 50), true);
BOOST_AUTO_TEST_CASE (aligned_image_test)
{
Image* s = new Image (PIX_FMT_RGB24, libdcp::Size (50, 50), true);
@@
-141,7
+147,7
@@
BOOST_AUTO_TEST_CASE (crop_image_test2)
image = image->crop (crop, true);
/* Convert it back to RGB to make comparison to black easier */
image = image->crop (crop, true);
/* Convert it back to RGB to make comparison to black easier */
- image = image->scale
_and_convert_to_rgb (image->size(), Scaler::from_id ("bicubic")
, true);
+ image = image->scale
(image->size(), Scaler::from_id ("bicubic"), PIX_FMT_RGB24
, true);
/* Check that its still black after the crop */
uint8_t* p = image->data()[0];
/* Check that its still black after the crop */
uint8_t* p = image->data()[0];