summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder_backend.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-14 13:44:58 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-13 20:23:29 +0200
commitd89f53b1ad09cf0f739533483915b702a26594b4 (patch)
tree133813acde125aa371b0a30f75af2812e6459aa9 /src/lib/j2k_encoder_backend.h
parent50e85cf64504b7fc38b4129aa750c2def28b95fd (diff)
wip: encoding; crashes on startup.
Diffstat (limited to 'src/lib/j2k_encoder_backend.h')
-rw-r--r--src/lib/j2k_encoder_backend.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/j2k_encoder_backend.h b/src/lib/j2k_encoder_backend.h
index 7688e5f15..a19beda53 100644
--- a/src/lib/j2k_encoder_backend.h
+++ b/src/lib/j2k_encoder_backend.h
@@ -2,6 +2,7 @@
#define DCPOMATIC_J2K_ENCODER_BACKEND_H
#include <dcp/data.h>
+#include <boost/foreach.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
@@ -13,7 +14,11 @@ class DCPVideo;
class J2KEncoderBackend : public boost::noncopyable
{
public:
- virtual boost::optional<dcp::Data> encode (boost::shared_ptr<DCPVideo> video) = 0;
+ virtual std::vector<dcp::Data> encode (std::vector<boost::shared_ptr<DCPVideo> > video) = 0;
+
+ virtual int quantity () const {
+ return 1;
+ }
};
#endif