Magnum/Trade/AbstractImageConverter.h file

Class Magnum::Trade::AbstractImageConverter, enum Magnum::Trade::ImageConverterFeature, enum set Magnum::Trade::ImageConverterFeatures.

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Trade
Data format exchange.

Classes

class Magnum::Trade::AbstractImageConverter
Base for image converter plugins.

Enums

enum class ImageConverterFeature: UnsignedInt { Convert1D = 1 << 0 new in Git master, Convert2D = 1 << 1 new in Git master, ConvertImage = Convert2D deprecated in Git master, ConvertCompressedImage = Convert2D deprecated in Git master, Convert3D = 1 << 3 new in Git master, ConvertCompressed1D = 1 << 4 new in Git master, ConvertCompressed2D = 1 << 5 new in Git master, ConvertCompressed3D = 1 << 6 new in Git master, Convert1DToFile = 1 << 7 new in Git master, Convert2DToFile = 1 << 8 new in Git master, ConvertFile = Convert2DToFile deprecated in Git master, Convert3DToFile = 1 << 9 new in Git master, ConvertCompressed1DToFile = 1 << 10 new in Git master, ConvertCompressed2DToFile = 1 << 11 new in Git master, ConvertCompressedFile = ConvertCompressed2DToFile deprecated in Git master, ConvertCompressed3DToFile = 1 << 12 new in Git master, Convert1DToData = Convert1DToFile|(1 << 13) new in Git master, Convert2DToData = Convert2DToFile|(1 << 13) new in Git master, ConvertData = Convert2DToData deprecated in Git master, Convert3DToData = Convert3DToFile|(1 << 13) new in Git master, ConvertCompressed1DToData = ConvertCompressed1DToFile|(1 << 13) new in Git master, ConvertCompressed2DToData = ConvertCompressed2DToFile|(1 << 13) new in Git master, ConvertCompressedData = ConvertCompressed2DToData deprecated in Git master, ConvertCompressed3DToData = ConvertCompressed3DToFile|(1 << 13) new in Git master, Levels = 1 << 14 new in Git master, ConvertLevels1DToFile = Convert1DToFile|Levels deprecated in Git master, ConvertLevels2DToFile = Convert2DToFile|Levels deprecated in Git master, ConvertLevels3DToFile = Convert3DToFile|Levels deprecated in Git master, ConvertCompressedLevels1DToFile = ConvertCompressed1DToFile|Levels deprecated in Git master, ConvertCompressedLevels2DToFile = ConvertCompressed2DToFile|Levels deprecated in Git master, ConvertCompressedLevels3DToFile = ConvertCompressed3DToFile|Levels deprecated in Git master, ConvertLevels1DToData = Convert1DToData|Levels deprecated in Git master, ConvertLevels2DToData = Convert2DToData|Levels deprecated in Git master, ConvertLevels3DToData = Convert3DToData|Levels deprecated in Git master, ConvertCompressedLevels1DToData = ConvertCompressed1DToData|Levels deprecated in Git master, ConvertCompressedLevels2DToData = ConvertCompressed2DToData|Levels deprecated in Git master, ConvertCompressedLevels3DToData = ConvertCompressed3DToData|Levels deprecated in Git master } new in 2020.06
Features supported by an image converter.
enum class ImageConverterFlag: UnsignedByte { Quiet = 1 << 1 new in Git master, Verbose = 1 << 0 } new in 2020.06
Image converter flag.

Typedefs

using ImageConverterFeatures = Containers::EnumSet<ImageConverterFeature> new in 2020.06
Features supported by an image converter.
using ImageConverterFlags = Containers::EnumSet<ImageConverterFlag> new in 2020.06
Image converter flags.

Functions

auto operator<<(Debug& debug, ImageConverterFeature value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, ImageConverterFeatures value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, ImageConverterFlag value) -> Debug& new in 2020.06
Debug output operator.
auto operator<<(Debug& debug, ImageConverterFlags value) -> Debug& new in 2020.06
Debug output operator.

Defines

#define MAGNUM_TRADE_ABSTRACTIMAGECONVERTER_PLUGIN_INTERFACE new in Git master
Image converter plugin interface.

Define documentation

#define MAGNUM_TRADE_ABSTRACTIMAGECONVERTER_PLUGIN_INTERFACE new in Git master

Image converter plugin interface.

Same string as returned by AbstractImageConverter::pluginInterface(), meant to be used inside CORRADE_PLUGIN_REGISTER() to avoid having to update the interface string by hand every time the version gets bumped:

CORRADE_PLUGIN_REGISTER(MyImageConverter, MyNamespace::MyImageConverter,
    MAGNUM_TRADE_ABSTRACTIMAGECONVERTER_PLUGIN_INTERFACE)

The interface string version gets increased on every ABI break to prevent silent crashes and memory corruption. Plugins built against the previous version will then fail to load, a subsequent rebuild will make them pick up the updated interface string.