summaryrefslogtreecommitdiff
path: root/src/mono_picture_frame.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-25 21:31:10 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-25 21:31:10 +0100
commit566608b965e8ec0e08d9de128405d22ec7fedcd6 (patch)
tree2fda53a5d6adb9427d0f1f5c1a5af050eddc44d9 /src/mono_picture_frame.h
parentf76647abae551840a43bb8f07189051ec20bab6d (diff)
Split up some files.
Diffstat (limited to 'src/mono_picture_frame.h')
-rw-r--r--src/mono_picture_frame.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/mono_picture_frame.h b/src/mono_picture_frame.h
new file mode 100644
index 00000000..83b80c5c
--- /dev/null
+++ b/src/mono_picture_frame.h
@@ -0,0 +1,51 @@
+/*
+ Copyright (C) 2012-2013 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include <string>
+#include <stdint.h>
+#include <boost/shared_ptr.hpp>
+#include "types.h"
+
+namespace ASDCP {
+ namespace JP2K {
+ class FrameBuffer;
+ }
+ class AESDecContext;
+}
+
+namespace libdcp {
+
+class ARGBFrame;
+
+/** A single frame of a 2D (monoscopic) picture asset */
+class MonoPictureFrame
+{
+public:
+ MonoPictureFrame (std::string mxf_path, int n, ASDCP::AESDecContext *);
+ ~MonoPictureFrame ();
+
+ boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0, float srgb_gamma = 2.4) const;
+ uint8_t const * j2k_data () const;
+ int j2k_size () const;
+
+private:
+ ASDCP::JP2K::FrameBuffer* _buffer;
+};
+
+}