summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-07-06 23:09:08 +0200
committerCarl Hetherington <cth@carlh.net>2024-01-28 02:01:57 +0100
commitc80eca531e01860e6714f526b2efb07a58c2e26e (patch)
tree8b2ca4b071b6def5f2e9e85809b6bc25caa81586 /src/lib/dcp_video.h
parent3299d48531d631264dacd01faf1fa3c069b28e62 (diff)
Patch from Aaron Boxer adding initial support for GPU-powered J2K encoding via his tool "grok".
Diffstat (limited to 'src/lib/dcp_video.h')
-rw-r--r--src/lib/dcp_video.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/dcp_video.h b/src/lib/dcp_video.h
index bf95ccfe6..23c920ede 100644
--- a/src/lib/dcp_video.h
+++ b/src/lib/dcp_video.h
@@ -17,6 +17,8 @@
along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef DCPOMATIC_DCP_VIDEO_H
+#define DCPOMATIC_DCP_VIDEO_H
#include "encode_server_description.h"
@@ -47,6 +49,7 @@ class PlayerVideo;
class DCPVideo
{
public:
+ DCPVideo (void) : DCPVideo(nullptr,0,0,0,Resolution::TWO_K){}
DCPVideo (std::shared_ptr<const PlayerVideo>, int index, int dcp_fps, int bandwidth, Resolution r);
DCPVideo (std::shared_ptr<const PlayerVideo>, cxml::ConstNodePtr);
@@ -66,6 +69,8 @@ public:
static std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz(std::shared_ptr<const PlayerVideo> frame);
+ void convert_to_xyz (uint16_t *dst);
+ dcp::Size get_size(void);
private:
void add_metadata (xmlpp::Element *) const;
@@ -76,3 +81,5 @@ private:
int _j2k_bandwidth; ///< J2K bandwidth to use
Resolution _resolution; ///< Resolution (2K or 4K)
};
+
+#endif