Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
ImageSampling.h File Reference
#include <cstddef>
#include <cstdint>
#include <span>
#include <vector>
#include "donner/base/Transform.h"
#include "donner/svg/core/ImageRendering.h"
Include dependency graph for ImageSampling.h:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.

Functions

std::vector< std::uint8_t > donner::svg::RasterizeImagePremultiplied (std::span< const std::uint8_t > premultipliedPixels, int sourceWidth, int sourceHeight, const Transform2d &deviceFromImage, int outputWidth, int outputHeight, ImageRendering imageRendering)
 Rasterizes a premultiplied image through an affine transform into a bounded device surface.

Variables

constexpr std::int64_t donner::svg::kMaxImageSamplingDimension = 16384
 Maximum output axis of a materialized procedural image-sampling surface.
constexpr std::size_t donner::svg::kMaxImageSamplingSurfacePixels = 16 * 1024 * 1024
 Maximum pixels in one materialized image-sampling surface.