ObjFW
Loading...
Searching...
No Matches
OFColorSpace.h File Reference
import "OFObject.h"

Go to the source code of this file.

Classes

class  OFColorSpace
 A class representing a color space. More...

Typedefs

typedef void(* OFColorSpaceTransferFunction) (OFVector4D *vectors, size_t count)
 A transfer function for a color space.

Typedef Documentation

◆ OFColorSpaceTransferFunction

typedef void(* OFColorSpaceTransferFunction) (OFVector4D *vectors, size_t count)

A transfer function for a color space.

The function transforms an array of vectors in-place. The w component of the vectors should not be touched.

The same type is used for both the EOTF and the OETF.

Note
The vectors needs to be 16 byte aligned.
Parameters
vectorsThe vectors to transform in-place
countThe number of vectors to transform