10 #ifndef INCLUDED_IMATHCOLORALGO_H
11 #define INCLUDED_IMATHCOLORALGO_H
19 IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
214 out.x = (
packed & 0xFF) * f;
215 out.y = ((
packed & 0xFF00) >> 8) *
f;
216 out.z = ((
packed & 0xFF0000) >> 16) *
f;
220 T f =
T (1) /
T (255);
221 out.x = (
packed & 0xFF) * f;
222 out.y = ((
packed & 0xFF00) >> 8) *
f;
223 out.z = ((
packed & 0xFF0000) >> 16) *
f;
239 out.r = (
packed & 0xFF) * f;
240 out.g = ((
packed & 0xFF00) >> 8) *
f;
241 out.b = ((
packed & 0xFF0000) >> 16) *
f;
242 out.a = ((
packed & 0xFF000000) >> 24) *
f;
246 T f =
T (1) /
T (255);
247 out.r = (
packed & 0xFF) * f;
248 out.g = ((
packed & 0xFF00) >> 8) *
f;
249 out.b = ((
packed & 0xFF0000) >> 16) *
f;
250 out.a = ((
packed & 0xFF000000) >> 24) *
f;
254 IMATH_INTERNAL_NAMESPACE_HEADER_EXIT
256 #endif // INCLUDED_IMATHCOLORALGO_H
GLdouble GLdouble GLdouble z
GLboolean GLboolean GLboolean GLboolean a
unsigned int PackedColor
Packed 32-bit integer.
IMATH_HOSTDEVICE void packed2rgb(PackedColor packed, Vec3< T > &out) IMATH_NOEXCEPT
IMATH_NAMESPACE::V2f float
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_EXPORT Vec3< double > hsv2rgb_d(const Vec3< double > &hsv) IMATH_NOEXCEPT
Convert 3-channel hsv to rgb. Non-templated helper routine.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t packed(VULKAN_HPP_NAMESPACE::Format format)
IMATH_EXPORT Vec3< double > rgb2hsv_d(const Vec3< double > &rgb) IMATH_NOEXCEPT
Convert 3-channel rgb to hsv. Non-templated helper routine.
GLboolean GLboolean GLboolean b
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Vec3< T > rgb2hsv(const Vec3< T > &rgb) IMATH_NOEXCEPT
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 PackedColor rgb2packed(const Vec3< T > &c) IMATH_NOEXCEPT
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Vec3< T > hsv2rgb(const Vec3< T > &hsv) IMATH_NOEXCEPT