summaryrefslogtreecommitdiff
path: root/src/rgb_xyz.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-10 15:05:48 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-10 15:05:48 +0100
commit41ab9a3ad26bb2fd17eca4d99780c46e315c393a (patch)
tree67561be4fe87b1e2dd3ae56664baa8c3a033e2aa /src/rgb_xyz.cc
parentda2cb0bddaaca815440a06884cf3364050e03a0e (diff)
Rename XYZImage -> OpenJPEGImage.
Diffstat (limited to 'src/rgb_xyz.cc')
-rw-r--r--src/rgb_xyz.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rgb_xyz.cc b/src/rgb_xyz.cc
index 703694da..9a062614 100644
--- a/src/rgb_xyz.cc
+++ b/src/rgb_xyz.cc
@@ -18,7 +18,7 @@
*/
#include "rgb_xyz.h"
-#include "xyz_image.h"
+#include "openjpeg_image.h"
#include "colour_matrix.h"
#include "colour_conversion.h"
#include "transfer_function.h"
@@ -51,7 +51,7 @@ using namespace dcp;
*/
void
dcp::xyz_to_rgba (
- boost::shared_ptr<const XYZImage> xyz_image,
+ boost::shared_ptr<const OpenJPEGImage> xyz_image,
ColourConversion const & conversion,
uint8_t* argb
)
@@ -130,7 +130,7 @@ dcp::xyz_to_rgba (
*/
void
dcp::xyz_to_rgb (
- shared_ptr<const XYZImage> xyz_image,
+ shared_ptr<const OpenJPEGImage> xyz_image,
ColourConversion const & conversion,
uint8_t* rgb,
int stride,
@@ -220,7 +220,7 @@ dcp::xyz_to_rgb (
* @param size of RGB image in pixels.
* @param stride of RGB data in pixels.
*/
-shared_ptr<dcp::XYZImage>
+shared_ptr<dcp::OpenJPEGImage>
dcp::rgb_to_xyz (
uint8_t const * rgb,
dcp::Size size,
@@ -228,7 +228,7 @@ dcp::rgb_to_xyz (
ColourConversion const & conversion
)
{
- shared_ptr<XYZImage> xyz (new XYZImage (size));
+ shared_ptr<OpenJPEGImage> xyz (new OpenJPEGImage (size));
struct {
double r, g, b;
@@ -292,10 +292,10 @@ dcp::rgb_to_xyz (
* 16Z, with the 2-byte value for each X/Y/Z component stored as
* little-endian.
*/
-shared_ptr<dcp::XYZImage>
+shared_ptr<dcp::OpenJPEGImage>
dcp::xyz_to_xyz (uint8_t const * xyz_16, dcp::Size size, int stride)
{
- shared_ptr<XYZImage> xyz_12 (new XYZImage (size));
+ shared_ptr<OpenJPEGImage> xyz_12 (new OpenJPEGImage (size));
int jn = 0;
for (int y = 0; y < size.height; ++y) {