summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-20 11:12:55 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-23 16:55:28 +0200
commitef051b519b678e0c8b59e2e1a13acdabccc36a67 (patch)
tree82b3a681da436aa110402223caddd0e99bae0492 /src/lib/dcp_video.h
parent8e017c66d86c09a4689afeac0d7989d24daef745 (diff)
Move encode_{locally,remotely} into the frame encoder classes.
Diffstat (limited to 'src/lib/dcp_video.h')
-rw-r--r--src/lib/dcp_video.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/lib/dcp_video.h b/src/lib/dcp_video.h
index 14440deb9..75aa2e117 100644
--- a/src/lib/dcp_video.h
+++ b/src/lib/dcp_video.h
@@ -48,21 +48,31 @@ public:
DCPVideo (DCPVideo const&) = default;
DCPVideo& operator= (DCPVideo const&) = default;
- dcp::ArrayData encode_locally () const;
- dcp::ArrayData encode_remotely (EncodeServerDescription, int timeout = 30) const;
+ std::shared_ptr<const PlayerVideo> frame() const {
+ return _frame;
+ }
int index () const {
return _index;
}
+ int frames_per_second() const {
+ return _frames_per_second;
+ }
+
+ int j2k_bandwidth() const {
+ return _j2k_bandwidth;
+ }
+
+ Resolution resolution() const {
+ return _resolution;
+ }
+
Eyes eyes () const;
bool same (std::shared_ptr<const DCPVideo> other) const;
private:
-
- void add_metadata (xmlpp::Element *) const;
-
std::shared_ptr<const PlayerVideo> _frame;
int _index; ///< frame index within the DCP's intrinsic duration
int _frames_per_second; ///< Frames per second that we will use for the DCP