You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #3024 introduced a few enhancements on the io.image methods used for reading JPEG and PNG images. The code changes were merged but there are a few nice-to-have improvements missing.
More specifically:
Provide better error messages for JPEG and PNG when a specific ImageReadMode value is not supported.
Ensure that image_read_mode.h has a new line at the end of the file.
Replace the old #define with the newer constexpr expression at image_read_mode.h.
PR #3024 introduced a few enhancements on the
io.image
methods used for reading JPEG and PNG images. The code changes were merged but there are a few nice-to-have improvements missing.More specifically:
ImageReadMode
value is not supported.image_read_mode.h
has a new line at the end of the file.#define
with the newerconstexpr
expression atimage_read_mode.h
.ImageReadMode
values from the methods to the enum.Note:
constexpr
might cause problems on Windows. If that's the case, try using const instead.The text was updated successfully, but these errors were encountered: