diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-20 00:48:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-30 00:06:04 +0200 |
| commit | 1ac572e5b5d478c72fa3eb1fb0ab3bcf47532f71 (patch) | |
| tree | 651a4aecd516470eba0f6a98a725c6e1745e104d /src/lib/colour_conversion.h | |
| parent | b1da98c7d38bdf042d777b3a5878120c10868446 (diff) | |
Move DCPVideo::convert_to_xyz() to a free-standing function.
Diffstat (limited to 'src/lib/colour_conversion.h')
| -rw-r--r-- | src/lib/colour_conversion.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/colour_conversion.h b/src/lib/colour_conversion.h index 0e2fcc548..748bc4dd1 100644 --- a/src/lib/colour_conversion.h +++ b/src/lib/colour_conversion.h @@ -21,18 +21,28 @@ #ifndef DCPOMATIC_COLOUR_CONVERSION_H #define DCPOMATIC_COLOUR_CONVERSION_H + /* Hack for OS X compile failure; see https://bugs.launchpad.net/hugin/+bug/910160 */ #ifdef check #undef check #endif + #include <dcp/colour_conversion.h> #include <libcxml/cxml.h> + +namespace dcp { + class OpenJPEGImage; +} + namespace xmlpp { class Node; } +class PlayerVideo; + + class ColourConversion : public dcp::ColourConversion { public: @@ -77,4 +87,8 @@ bool operator==(ColourConversion const &, ColourConversion const &); bool operator!=(ColourConversion const &, ColourConversion const &); bool operator==(PresetColourConversion const &, PresetColourConversion const &); + +std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz(std::shared_ptr<const PlayerVideo> frame); + + #endif |
