Magnum/Math/PackingBatch.h file new in 2020.06

Functions Magnum::Math::packInto(), Magnum::Math::unpackInto(), Magnum::Math::packHalfInto(), Magnum::Math::unpackHalfInto(), Magnum::Math::castInto()

Contents

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Math
Math library.

Batch packing functions

These functions process an ubounded range of values, as opposed to single vectors or scalars.

void unpackInto(const Corrade::Containers::StridedArrayView2D<const UnsignedByte>& src, const Corrade::Containers::StridedArrayView2D<Float>& dst) new in 2020.06
Unpack unsigned integral values into a floating-point representation.
void unpackInto(const Corrade::Containers::StridedArrayView2D<const Byte>& src, const Corrade::Containers::StridedArrayView2D<Float>& dst) new in 2020.06
Unpack signed integral values into a floating-point representation.
void packInto(const Corrade::Containers::StridedArrayView2D<const Float>& src, const Corrade::Containers::StridedArrayView2D<UnsignedByte>& dst) new in 2020.06
Pack floating-point values into an integer representation.
void packHalfInto(const Corrade::Containers::StridedArrayView2D<const Float>& src, const Corrade::Containers::StridedArrayView2D<UnsignedShort>& dst) new in 2020.06
Pack 32-bit float values into 16-bit half-float representation.
void unpackHalfInto(const Corrade::Containers::StridedArrayView2D<const UnsignedShort>& src, const Corrade::Containers::StridedArrayView2D<Float>& dst) new in 2020.06
Unpack a range of 16-bit half-float values into 32-bit float representation.
void castInto(const Corrade::Containers::StridedArrayView2D<const UnsignedByte>& src, const Corrade::Containers::StridedArrayView2D<Float>& dst) new in 2020.06
Cast integer values into a floating-point representation.
void castInto(const Corrade::Containers::StridedArrayView2D<const Float>& src, const Corrade::Containers::StridedArrayView2D<UnsignedByte>& dst) new in 2020.06
Cast floating-point values into an integer representation.
void castInto(const Corrade::Containers::StridedArrayView2D<const UnsignedByte>& src, const Corrade::Containers::StridedArrayView2D<UnsignedInt>& dst) new in 2020.06
Cast integer values into a differently sized type.