X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Frgb_xyz.h;h=7bd1cd8eeddce6449362f04aa8fe60d98915a8db;hb=1caefd8541e12e7d205c3d5bb46f3ec84719baa0;hp=53568350973a201984ac674b9c99c2c57968f4e1;hpb=107482fc19404e20db544e989d880752377fde26;p=libdcp.git diff --git a/src/rgb_xyz.h b/src/rgb_xyz.h index 53568350..7bd1cd8e 100644 --- a/src/rgb_xyz.h +++ b/src/rgb_xyz.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2014 Carl Hetherington + Copyright (C) 2013-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,19 +24,33 @@ namespace dcp { -class ARGBFrame; -class XYZFrame; +class ARGBImage; +class OpenJPEGImage; class Image; class ColourConversion; - -extern boost::shared_ptr xyz_to_rgba (boost::shared_ptr, ColourConversion const & conversion); + +extern void xyz_to_rgba ( + boost::shared_ptr, + ColourConversion const & conversion, + uint8_t* rgba + ); + extern void xyz_to_rgb ( - boost::shared_ptr, + boost::shared_ptr, + ColourConversion const & conversion, + uint8_t* rgb, + int stride, + boost::optional note = boost::optional () + ); + +extern boost::shared_ptr rgb_to_xyz ( + uint8_t const * rgb, + dcp::Size size, + int stride, ColourConversion const & conversion, - uint16_t* buffer, boost::optional note = boost::optional () ); -extern boost::shared_ptr rgb_to_xyz (boost::shared_ptr, ColourConversion const & conversion); -extern boost::shared_ptr xyz_to_xyz (boost::shared_ptr); - + +extern boost::shared_ptr xyz_to_xyz (uint8_t const * xyz, dcp::Size size, int stride); + }