diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-01 18:56:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-01 18:56:20 +0100 |
| commit | a6c2aa6cad5872d27654553d447cb34185317974 (patch) | |
| tree | 10ba8193ede6ce927300d62354c56a5af236f4e0 /src/lib/dcp_video.h | |
| parent | 096660d2cc3e65ae5e13a69e7ace19ff0d48b39a (diff) | |
Split EncodedData classes into their own file.
Diffstat (limited to 'src/lib/dcp_video.h')
| -rw-r--r-- | src/lib/dcp_video.h | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/src/lib/dcp_video.h b/src/lib/dcp_video.h index 05a0b4ce3..e8e90260c 100644 --- a/src/lib/dcp_video.h +++ b/src/lib/dcp_video.h @@ -32,62 +32,7 @@ class Image; class Log; class Subtitle; class PlayerVideo; - -/** @class EncodedData - * @brief Container for J2K-encoded data. - */ -class EncodedData : public boost::noncopyable -{ -public: - /** @param s Size of data, in bytes */ - EncodedData (int s); - - EncodedData (boost::filesystem::path); - - virtual ~EncodedData (); - - void send (boost::shared_ptr<Socket> socket); - void write (boost::shared_ptr<const Film>, int, Eyes) const; - void write_info (boost::shared_ptr<const Film>, int, Eyes, dcp::FrameInfo) const; - - /** @return data */ - uint8_t* data () const { - return _data; - } - - /** @return data size, in bytes */ - int size () const { - return _size; - } - -protected: - uint8_t* _data; ///< data - int _size; ///< data size in bytes -}; - -/** @class LocallyEncodedData - * @brief EncodedData that was encoded locally; this class - * just keeps a pointer to the data, but does no memory - * management. - */ -class LocallyEncodedData : public EncodedData -{ -public: - /** @param d Data (which will be copied by this class) - * @param s Size of data, in bytes. - */ - LocallyEncodedData (uint8_t* d, int s); -}; - -/** @class RemotelyEncodedData - * @brief EncodedData that is being read from a remote server; - * this class allocates and manages memory for the data. - */ -class RemotelyEncodedData : public EncodedData -{ -public: - RemotelyEncodedData (int s); -}; +class EncodedData; /** @class DCPVideo * @brief A single frame of video destined for a DCP. |
