*
* Create a test image and then encode it using the standard mechanism
* and also using a EncodeServer object running on localhost. Compare the resulting
*
* Create a test image and then encode it using the standard mechanism
* and also using a EncodeServer object running on localhost. Compare the resulting
#include "lib/j2k_image_proxy.h"
#include "lib/encode_server_description.h"
#include "lib/file_log.h"
#include "lib/j2k_image_proxy.h"
#include "lib/encode_server_description.h"
#include "lib/file_log.h"
-do_remote_encode (shared_ptr<DCPVideo> frame, EncodeServerDescription description, Data locally_encoded)
+do_remote_encode (shared_ptr<DCPVideo> frame, EncodeServerDescription description, ArrayData locally_encoded)
- Data remotely_encoded;
- BOOST_REQUIRE_NO_THROW (remotely_encoded = frame->encode_remotely (description, 60));
+ ArrayData remotely_encoded;
+ BOOST_REQUIRE_NO_THROW (remotely_encoded = frame->encode_remotely (description, 1200));
- BOOST_CHECK_EQUAL (memcmp (locally_encoded.data().get(), remotely_encoded.data().get(), locally_encoded.size()), 0);
+ BOOST_CHECK_EQUAL (memcmp (locally_encoded.data(), remotely_encoded.data(), locally_encoded.size()), 0);
thread* server_thread = new thread (boost::bind (&EncodeServer::run, server));
/* Let the server get itself ready */
thread* server_thread = new thread (boost::bind (&EncodeServer::run, server));
/* Let the server get itself ready */
thread* server_thread = new thread (boost::bind (&EncodeServer::run, server));
/* Let the server get itself ready */
thread* server_thread = new thread (boost::bind (&EncodeServer::run, server));
/* Let the server get itself ready */
thread* server_thread = new thread (boost::bind (&EncodeServer::run, server));
/* Let the server get itself ready */
thread* server_thread = new thread (boost::bind (&EncodeServer::run, server));
/* Let the server get itself ready */