Skip to content

Commit

Permalink
ImfChromaticities.h/cpp: Typo and pass by ref change.
Browse files Browse the repository at this point in the history
Fix spelling typo in the comment block.

Better to pass "chroma" arg in by ref.

Signed-off-by: Arkell Rasiah <arasiah@pixsystem.com>
  • Loading branch information
arkellr authored and cary-ilm committed Feb 7, 2020
1 parent 51bd0ff commit cdc70f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions OpenEXR/IlmImf/ImfChromaticities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Chromaticities::operator != (const Chromaticities & c) const


IMATH_NAMESPACE::M44f
RGBtoXYZ (const Chromaticities chroma, float Y)
RGBtoXYZ (const Chromaticities &chroma, float Y)
{
//
// For an explanation of how the color conversion matrix is derived,
Expand Down Expand Up @@ -142,7 +142,7 @@ RGBtoXYZ (const Chromaticities chroma, float Y)


IMATH_NAMESPACE::M44f
XYZtoRGB (const Chromaticities chroma, float Y)
XYZtoRGB (const Chromaticities &chroma, float Y)
{
return RGBtoXYZ (chroma, Y).inverse();
}
Expand Down
6 changes: 3 additions & 3 deletions OpenEXR/IlmImf/ImfChromaticities.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ struct Chromaticities
//
// XYZ to RGB:
//
// YYZtoRGB(c,Y) returns RGBtoXYZ(c,Y).inverse().
// XYZtoRGB(c,Y) returns RGBtoXYZ(c,Y).inverse().
//

IMF_EXPORT IMATH_NAMESPACE::M44f RGBtoXYZ (const Chromaticities chroma, float Y);
IMF_EXPORT IMATH_NAMESPACE::M44f XYZtoRGB (const Chromaticities chroma, float Y);
IMF_EXPORT IMATH_NAMESPACE::M44f RGBtoXYZ (const Chromaticities &chroma, float Y);
IMF_EXPORT IMATH_NAMESPACE::M44f XYZtoRGB (const Chromaticities &chroma, float Y);


OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Expand Down

0 comments on commit cdc70f6

Please sign in to comment.