2008-05-15 09:47:55 +00:00
|
|
|
// This code is in the public domain -- jim@tilander.org
|
2008-05-06 21:49:10 +00:00
|
|
|
|
2010-07-13 03:08:45 +00:00
|
|
|
#pragma once
|
2008-05-06 21:49:10 +00:00
|
|
|
#ifndef NV_IMAGE_COLORSPACE_H
|
|
|
|
#define NV_IMAGE_COLORSPACE_H
|
|
|
|
|
|
|
|
namespace nv
|
|
|
|
{
|
|
|
|
class Image;
|
|
|
|
|
|
|
|
// Defines simple mappings between different color spaces and encodes them in the
|
|
|
|
// input image.
|
|
|
|
namespace ColorSpace
|
|
|
|
{
|
|
|
|
void RGBtoYCoCg_R(Image* img);
|
|
|
|
void YCoCg_RtoRGB(Image* img);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|