114 bool m_reorient{
true};
140 [[nodiscard]]
constexpr bool get_reorient() const noexcept {
return m_reorient; }
147 constexpr void set_reorient(
bool reorient)
noexcept { m_reorient = reorient; }
154 return m_reorient ? 1 : 0;
196 settings.m_reorient =
false;
AlphaMode
Controls how unassociated alpha channels are handled during reading.
@ unassociated
Leave alpha unassociated. Preserve original color values without modification.
@ premultiply
Default OIIO behavior: premultiply color channels by alpha if unassociated.
Input configuration for HEIF/HEIC/AVIF image loading via OIIO/libheif.
constexpr int get_reorient_value() const noexcept
Gets the reorient value as integer (for OIIO attribute).
constexpr void set_reorient(bool reorient) noexcept
Enables or disables automatic reorientation.
constexpr bool get_reorient() const noexcept
Checks if automatic reorientation is enabled.
constexpr void set_alpha_mode(AlphaMode mode) noexcept
Sets the alpha handling mode.
void reset_to_defaults() noexcept
Resets all settings to their default values.
static constexpr HeicSettings default_settings() noexcept
Creates a HeicSettings with default values.
constexpr int get_unassociated_alpha_value() const noexcept
Gets the unassociated alpha value as integer (for OIIO attribute).
constexpr AlphaMode get_alpha_mode() const noexcept
Gets the alpha handling mode.
static constexpr HeicSettings fast_settings() noexcept
Creates a HeicSettings configured for maximum processing speed.