22OF_ASSUME_NONNULL_BEGIN
58#ifdef OF_HAVE_CLASS_PROPERTIES
59@property (
class, readonly, retain, nonatomic)
OFColorSpace *sRGBColorSpace;
60@property (
class, readonly, retain, nonatomic)
62@property (
class, readonly, retain, nonatomic)
OFColorSpace *BT709ColorSpace;
63@property (
class, readonly, retain, nonatomic)
65@property (
class, readonly, retain, nonatomic)
67@property (
class, readonly, retain, nonatomic)
OFColorSpace *BT2020ColorSpace;
68@property (
class, readonly, retain, nonatomic)
70@property (
class, readonly, retain, nonatomic)
OFColorSpace *adobeRGBColorSpace;
71@property (
class, readonly, retain, nonatomic)
102@property (readonly, nonatomic, getter=isLinear)
bool linear;
118 linear: (
bool)linear;
183 linear: (
bool)linear;
void(* OFColorSpaceTransferFunction)(OFVector4D *vectors, size_t count)
A transfer function for a color space.
Definition OFColorSpace.h:42
A class representing a color space.
Definition OFColorSpace.h:51
OFColorSpace * BT709ColorSpace()
The BT.709 color space.
Definition OFColorSpace.m:451
OFMatrix4x4 * XYZToRGBMatrix
A matrix to map a CIE XYZ value to a linear RGB value.
Definition OFColorSpace.h:97
OFColorSpace * displayP3ColorSpace()
The Display P3 color space.
Definition OFColorSpace.m:459
OFColorSpace * linearBT2020ColorSpace()
The ITU-R Recommendation BT.2020 color space with linear transfer function.
Definition OFColorSpace.m:483
OFColorSpace * linearSRGBColorSpace()
The sRGB color space with linear transfer function.
Definition OFColorSpace.m:443
OFColorSpace * linearAdobeRGBColorSpace()
The Adobe RGB (1998) color space with linear transfer function.
Definition OFColorSpace.m:499
bool linear
Whether the color space is linear.
Definition OFColorSpace.h:102
OFColorSpace * adobeRGBColorSpace()
The Adobe RGB (1998) color space.
Definition OFColorSpace.m:491
OFColorSpaceTransferFunction EOTF
The Electro-Optical Transfer Function of the color space.
Definition OFColorSpace.h:80
OFColorSpaceTransferFunction OETF
The Opto-Electronic Transfer Function of the color space.
Definition OFColorSpace.h:87
OFColorSpace * linearDisplayP3ColorSpace()
The Display P3 color space with linear transfer function.
Definition OFColorSpace.m:467
OFColorSpace * BT2020ColorSpace()
The ITU-R Recommendation BT.2020 color space.
Definition OFColorSpace.m:475
OFMatrix4x4 * RGBToXYZMatrix
A matrix to map a linear RGB value to a CIE XYZ value.
Definition OFColorSpace.h:92
OFColorSpace * sRGBColorSpace()
The sRGB color space.
Definition OFColorSpace.m:435
A 4x4 matrix of floats.
Definition OFMatrix4x4.h:30
The root class for all other classes inside ObjFW.
Definition OFObject.h:956
instancetype retain()
Increases the retain count.
A vector in 4D space.
Definition OFObject.h:551