summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-04 11:01:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-04 11:01:35 +0100
commit36b2009f89fdde05d2c9b8b44aa2bf8fe3b555cb (patch)
treed5a448c369a6477ca186b264d993fa73b8e13581
parent5309c18b764f6f5f4adf8f89b917096d30b42a89 (diff)
More boost::filesystem jibber jabber.
-rw-r--r--src/mono_picture_asset.cc6
-rw-r--r--src/mono_picture_frame.cc4
-rw-r--r--src/mono_picture_frame.h2
-rw-r--r--src/stereo_picture_frame.cc4
-rw-r--r--src/stereo_picture_frame.h2
5 files changed, 9 insertions, 9 deletions
diff --git a/src/mono_picture_asset.cc b/src/mono_picture_asset.cc
index 7830d829..81508065 100644
--- a/src/mono_picture_asset.cc
+++ b/src/mono_picture_asset.cc
@@ -48,7 +48,7 @@ MonoPictureAsset::create (boost::function<boost::filesystem::path (int)> get_pat
{
ASDCP::JP2K::CodestreamParser j2k_parser;
ASDCP::JP2K::FrameBuffer frame_buffer (4 * Kumu::Megabyte);
- if (ASDCP_FAILURE (j2k_parser.OpenReadFrame (get_path(0).c_str(), frame_buffer))) {
+ if (ASDCP_FAILURE (j2k_parser.OpenReadFrame (get_path(0).string().c_str(), frame_buffer))) {
boost::throw_exception (FileError ("could not open JPEG2000 file for reading", get_path (0)));
}
@@ -68,7 +68,7 @@ MonoPictureAsset::create (boost::function<boost::filesystem::path (int)> get_pat
boost::filesystem::path const path = get_path (i);
- if (ASDCP_FAILURE (j2k_parser.OpenReadFrame (path.c_str(), frame_buffer))) {
+ if (ASDCP_FAILURE (j2k_parser.OpenReadFrame (path.string().c_str(), frame_buffer))) {
boost::throw_exception (FileError ("could not open JPEG2000 file for reading", path));
}
@@ -115,7 +115,7 @@ MonoPictureAsset::path_from_list (int f, vector<boost::filesystem::path> const &
shared_ptr<const MonoPictureFrame>
MonoPictureAsset::get_frame (int n) const
{
- return shared_ptr<const MonoPictureFrame> (new MonoPictureFrame (path().string(), n, _decryption_context));
+ return shared_ptr<const MonoPictureFrame> (new MonoPictureFrame (path(), n, _decryption_context));
}
bool
diff --git a/src/mono_picture_frame.cc b/src/mono_picture_frame.cc
index 474b0715..04f2efd7 100644
--- a/src/mono_picture_frame.cc
+++ b/src/mono_picture_frame.cc
@@ -38,10 +38,10 @@ using namespace libdcp;
* @param mxf_path Path to the asset's MXF file.
* @param n Frame within the asset, not taking EntryPoint into account.
*/
-MonoPictureFrame::MonoPictureFrame (string mxf_path, int n, ASDCP::AESDecContext* c)
+MonoPictureFrame::MonoPictureFrame (boost::filesystem::path mxf_path, int n, ASDCP::AESDecContext* c)
{
ASDCP::JP2K::MXFReader reader;
- if (ASDCP_FAILURE (reader.OpenRead (mxf_path.c_str()))) {
+ if (ASDCP_FAILURE (reader.OpenRead (mxf_path.string().c_str()))) {
boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path));
}
diff --git a/src/mono_picture_frame.h b/src/mono_picture_frame.h
index 83b80c5c..0eedfb95 100644
--- a/src/mono_picture_frame.h
+++ b/src/mono_picture_frame.h
@@ -37,7 +37,7 @@ class ARGBFrame;
class MonoPictureFrame
{
public:
- MonoPictureFrame (std::string mxf_path, int n, ASDCP::AESDecContext *);
+ MonoPictureFrame (boost::filesystem::path mxf_path, int n, ASDCP::AESDecContext *);
~MonoPictureFrame ();
boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0, float srgb_gamma = 2.4) const;
diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc
index 279fe7a0..6af79033 100644
--- a/src/stereo_picture_frame.cc
+++ b/src/stereo_picture_frame.cc
@@ -38,10 +38,10 @@ using namespace libdcp;
* @param mxf_path Path to the asset's MXF file.
* @param n Frame within the asset, not taking EntryPoint into account.
*/
-StereoPictureFrame::StereoPictureFrame (string mxf_path, int n)
+StereoPictureFrame::StereoPictureFrame (boost::filesystem::path mxf_path, int n)
{
ASDCP::JP2K::MXFSReader reader;
- if (ASDCP_FAILURE (reader.OpenRead (mxf_path.c_str()))) {
+ if (ASDCP_FAILURE (reader.OpenRead (mxf_path.string().c_str()))) {
boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path));
}
diff --git a/src/stereo_picture_frame.h b/src/stereo_picture_frame.h
index b72eabc9..ab99ceac 100644
--- a/src/stereo_picture_frame.h
+++ b/src/stereo_picture_frame.h
@@ -37,7 +37,7 @@ class ARGBFrame;
class StereoPictureFrame
{
public:
- StereoPictureFrame (std::string mxf_path, int n);
+ StereoPictureFrame (boost::filesystem::path mxf_path, int n);
~StereoPictureFrame ();
boost::shared_ptr<ARGBFrame> argb_frame (Eye eye, int reduce = 0, float srgb_gamma = 2.4) const;