X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdcp_video.cc;h=b3461e56908fa015ab38255d41f209647e508c21;hp=36928b3fcfb8ac4f22c1cf674fa612d2a755a6a3;hb=6fa9748f382302fa88292b4219598bb81edc7bd0;hpb=b639b7b20f1ab341194bcd5c76700ca419254d11 diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 36928b3fc..b3461e569 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -60,7 +60,7 @@ using std::string; using std::cout; using boost::shared_ptr; using dcp::Size; -using dcp::Data; +using dcp::ArrayData; using dcp::raw_convert; #if BOOST_VERSION >= 106100 using namespace boost::placeholders; @@ -118,12 +118,12 @@ DCPVideo::convert_to_xyz (shared_ptr frame, dcp::NoteHandler /** J2K-encode this frame on the local host. * @return Encoded data. */ -Data +ArrayData DCPVideo::encode_locally () { string const comment = Config::instance()->dcp_j2k_comment(); - Data enc = dcp::compress_j2k ( + ArrayData enc = dcp::compress_j2k ( convert_to_xyz (_frame, boost::bind(&Log::dcp_log, dcpomatic_log.get(), _1, _2)), _j2k_bandwidth, _frames_per_second, @@ -154,7 +154,7 @@ DCPVideo::encode_locally () * @param timeout timeout in seconds. * @return Encoded data. */ -Data +ArrayData DCPVideo::encode_remotely (EncodeServerDescription serv, int timeout) { boost::asio::io_service io_service; @@ -192,9 +192,9 @@ DCPVideo::encode_remotely (EncodeServerDescription serv, int timeout) */ Socket::ReadDigestScope ds (socket); LOG_TIMING("start-remote-encode thread=%1", thread_id ()); - Data e (socket->read_uint32 ()); + ArrayData e (socket->read_uint32 ()); LOG_TIMING("start-remote-receive thread=%1", thread_id ()); - socket->read (e.data().get(), e.size()); + socket->read (e.data(), e.size()); LOG_TIMING("finish-remote-receive thread=%1", thread_id ()); if (!ds.check()) { throw NetworkError ("Checksums do not match");