Skip to content

Commit

Permalink
[feat]IBA:demosaic add X-Trans demosaicing - OIIO_DASSERT
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Dukhovnikov <[email protected]>
  • Loading branch information
antond-weta committed Jan 13, 2025
1 parent 3f9ffce commit 4c1b0d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libOpenImageIO/imagebufalgo_demosaic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class DemosaicingBase {
Window(int y, int xbegin, const ImageBuf& src, int x_offset,
int y_offset, const float (&white_balance_values)[4])
{
assert(window_size >= 3);
assert(window_size % 2 == 1);
OIIO_DASSERT(window_size >= 3);
OIIO_DASSERT(window_size % 2 == 1);

const ImageSpec& spec = src.spec();
src_xbegin = spec.x;
Expand Down Expand Up @@ -283,7 +283,7 @@ class DemosaicingBase {
for (size_t y = 0; y < pattern_size; y++) {
for (size_t x = 0; x < pattern_size; x++) {
int c = channel_at_offset(x + x_offset, y + y_offset);
assert(c < 4);
OIIO_DASSERT(c < 4);

layout[i] = channels[c];
i++;
Expand Down

0 comments on commit 4c1b0d0

Please sign in to comment.