* @param file_name Name of MXF file.
* @param progress Signal to inform of progress.
* @param fps Frames per second.
+ * @param entry_point The entry point of this MXF; ie the first frame that should be used.
* @param length Length in frames.
*/
MXFAsset (std::string directory, std::string file_name, sigc::signal1<void, float>* progress, int fps, int entry_point, int length);
int _height;
};
+/** A 2D (monoscopic) picture asset */
class MonoPictureAsset : public PictureAsset
{
public:
void construct (sigc::slot<std::string, int>);
};
+/** A 3D (stereoscopic) picture asset */
class StereoPictureAsset : public PictureAsset
{
public:
using namespace boost;
using namespace libdcp;
+/** Make a picture frame from a 2D (monoscopic) asset.
+ * @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::JP2K::MXFReader reader;
delete _buffer;
}
-#if 0
-uint8_t const *
-MonoPictureFrame::data () const
-{
- return _buffer->RoData();
-}
-
-int
-MonoPictureFrame::size () const
-{
- return _buffer->Size ();
-}
-#endif
-
/** @return An ARGB representation of this frame. This is ARGB in the
* Cairo sense, so that each pixel takes up 4 bytes; the first byte
* is blue, second green, third red and fourth alpha (always 255).
return f;
}
-
+/** Make a picture frame from a 3D (stereoscopic) asset.
+ * @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)
{
ASDCP::JP2K::MXFSReader reader;
delete _buffer;
}
+/** @return An ARGB representation of one of the eyes (left or right)
+ * of this frame. This is ARGB in the Cairo sense, so that each
+ * pixel takes up 4 bytes; the first byte is blue, second green,
+ * third red and fourth alpha (always 255).
+ *
+ * @param eye Eye to return (EYE_LEFT or EYE_RIGHT).
+ */
shared_ptr<ARGBFrame>
StereoPictureFrame::argb_frame (Eye eye) const
{