12#include "../color/module.hpp"
13#include "../geometry/module.hpp"
14#include "../SIMD/module.hpp"
15#include "../utility/utility.hpp"
16#include "../macros.hpp"
41 constexpr sfloat_rgba16(f16x4
const &rhs) noexcept : v(std::bit_cast<
decltype(v)>(rhs)) {}
45 v = std::bit_cast<decltype(v)>(rhs);
49 constexpr explicit operator f16x4()
const noexcept
51 return std::bit_cast<f16x4>(v);
58 return *
this =
static_cast<f16x4
>(rhs);
65 return *
this =
static_cast<f16x4
>(rhs);
68 constexpr explicit operator color()
const noexcept
70 return color{
static_cast<f16x4
>(*this)};
77 return hash_mix(v[0], v[1], v[2], v[3]);
86 std::get<3>(r.v) = 0x0000;
103 hi_assert(
over.height() >=
under.height());
104 hi_assert(
over.width() >=
under.width());
106 for (
auto y = 0
_uz; y !=
under.height(); ++y) {
109 for (
auto x = 0
_uz; x !=
under.width(); ++x) {
120 hi_assert(mask.height() >=
under.height());
121 hi_assert(mask.width() >=
under.width());
123 auto mask_pixel = color{1.0f, 1.0f, 1.0f, 1.0f};
125 for (
auto y = 0
_uz; y !=
under.height(); ++y) {
128 for (
auto x = 0
_uz; x !=
under.width(); ++x) {
Defines the pixmap_span type.
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
hi_export void composit(pixmap_span< sfloat_rgba16 > dst, hi::color color, graphic_path const &mask) noexcept
Composit color onto the destination image where the mask is solid.
Definition graphic_path.hpp:667
constexpr void fill(pixmap_span< uint8_t > image, std::vector< bezier_curve > const &curves) noexcept
Fill a linear gray scale image by filling a curve with anti-aliasing.
Definition bezier_curve.hpp:667
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
4 x float16 pixel format.
Definition sfloat_rgba16.hpp:29