summaryrefslogtreecommitdiff
path: root/src/lib/frame_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/frame_info.h')
-rw-r--r--src/lib/frame_info.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/frame_info.h b/src/lib/frame_info.h
index a5a22bd9e..da9503248 100644
--- a/src/lib/frame_info.h
+++ b/src/lib/frame_info.h
@@ -29,9 +29,15 @@ class J2KFrameInfo : public dcp::J2KFrameInfo
public:
J2KFrameInfo(dcp::J2KFrameInfo const& info);
J2KFrameInfo(uint64_t offset_, uint64_t size_, std::string hash_);
- J2KFrameInfo(std::shared_ptr<InfoFileHandle> info_file, Frame frame, Eyes eyes);
-
- void write(std::shared_ptr<InfoFileHandle> info_file, Frame frame, Eyes eyes) const;
+ /** Seek to the required position in info_file and read the info for
+ * the given frame and eyes.
+ */
+ J2KFrameInfo(dcp::File& info_file, Frame frame, Eyes eyes);
+
+ /** Seek to the required position in info_file and write the info for
+ * the given frame and eyes.
+ */
+ void write(dcp::File& info_file, Frame frame, Eyes eyes) const;
static int size_on_disk() {
return _size_on_disk;