Skip to content

Commit

Permalink
int: Beef up some error messages (#4369)
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Aug 16, 2024
1 parent 5587213 commit 7faf944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/libOpenImageIO/imageinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ ImageInput::read_native_tile(int /*subimage*/, int /*miplevel*/, int /*x*/,
// The base class read_native_tile fails. A format reader that supports
// tiles MUST overload this virtual method that reads a single tile
// (all channels).
errorfmt("ImageInput::read_native_tile call unimplemented for {}",
format_name());
return false;
}

Expand Down
3 changes: 2 additions & 1 deletion src/tiff.imageio/tiffoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,8 @@ TIFFOutput::fix_bitdepth(void* data, int nvals)
v[i] = bit_range_convert<32, 24>(v[i]);
bit_pack(cspan<unsigned int>(v, v + nvals), v, 24);
} else {
OIIO_ASSERT(0 && "unsupported bit conversion -- shouldn't reach here");
errorfmt("unsupported bit conversion: {} -> {}", spec().format,
m_bitspersample);
}
}

Expand Down

0 comments on commit 7faf944

Please sign in to comment.