Skip to content

Commit

Permalink
Rename clip() to clip2() in Lut.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
acolwell committed Feb 20, 2024
1 parent 8efe3fc commit 7b0404e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Engine/Lut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ LutManager::~LutManager()
}

static RectI
clip(const RectI& what,
const RectI& srcBounds,
const RectI& dstBounds)
clip2(const RectI& what,
const RectI& srcBounds,
const RectI& dstBounds)
{
return what.intersect(srcBounds).intersect(dstBounds);
}
Expand Down Expand Up @@ -446,7 +446,7 @@ Lut::to_byte_packed(unsigned char* to,
bool premult) const
{
///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);

if ( rect.isNull() ) {
return;
Expand Down Expand Up @@ -547,7 +547,7 @@ Lut::to_float_packed(float* to,
bool premult) const
{
///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);
if ( rect.isNull()) {
return;
}
Expand Down Expand Up @@ -658,7 +658,7 @@ Lut::from_byte_packed(float* to,
}

///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);
if ( rect.isNull() ) {
return;
}
Expand Down Expand Up @@ -752,7 +752,7 @@ Lut::from_float_packed(float* to,
}

///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);
if ( rect.isNull() ) {
return;
}
Expand Down Expand Up @@ -863,7 +863,7 @@ from_byte_packed(float *to,
}

///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);
if ( rect.isNull() ) {
return;
}
Expand Down Expand Up @@ -933,7 +933,7 @@ from_float_packed(float *to,


///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);
if ( rect.isNull()) {
return;
}
Expand Down Expand Up @@ -1132,7 +1132,7 @@ to_byte_packed(unsigned char* to,
}

///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);
if ( rect.isNull() ) {
return;
}
Expand Down Expand Up @@ -1241,7 +1241,7 @@ to_float_packed(float* to,
}

///clip the conversion rect to srcBounds and dstBounds
const RectI rect = clip(conversionRect, srcBounds, dstBounds);
const RectI rect = clip2(conversionRect, srcBounds, dstBounds);
if ( rect.isNull() ) {
return;
}
Expand Down

0 comments on commit 7b0404e

Please sign in to comment.