Documentation ¶
Index ¶
- func BytesToUint16(a, b byte) uint16
- func FromBytes(endianness binary.ByteOrder, pixel []byte) (float64, float64, float64)
- func FromRadianceBytes(b0, b1, b2, e byte, exposure float64) (bb0, bb1, bb2 float64)
- func LogLuvToXYZ(SLe, le, ue, ve byte) (x, y, z float64)
- func SLeToY(sle uint16) float64
- func ToBytes(endianness binary.ByteOrder, f1, f2, f3 float64) []byte
- func ToRadianceBytes(f1, f2, f3 float64) []byte
- func Uint16ToBytes(v uint16) (byte, byte)
- func XYZToLogLuv(x, y, z float64) []byte
- func YToSLe(y float64) uint16
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUint16 ¶
BytesToUint16 merges a & b (big endian order) into an uint16 value.
func FromBytes ¶
FromBytes converts given bytes to their float64 values according to the endianness.
func FromRadianceBytes ¶
FromRadianceBytes converts Radiance RGBE/XYZE color space to RGB/XYZ color space.
func LogLuvToXYZ ¶
LogLuvToXYZ converts LogLuv bytes to XYZ floats 64 bits.
1 15 8 8 |-+---------------|--------+--------| S Le+le ue ve
func ToBytes ¶
ToBytes converts given float64 values to their bytes representation according to the endianness.
func ToRadianceBytes ¶
ToRadianceBytes converts RGB/XYZ color space to Radiance RGBE/XYZE (4 bytes slice).
func Uint16ToBytes ¶
Uint16ToBytes splits v into 2 bytes (big endian order).
func XYZToLogLuv ¶
XYZToLogLuv converts XYZ floats 64 bits to LogLuv bytes.
1 15 8 8 |-+---------------|--------+--------| S Le+le ue ve
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.