82 void init(
const std::string &type,
const std::string &description);
96 ERROR_LOG(
"unable to send image with a NULL output");
101 inline bool isNull()
const {
return !impl; };
104 inline const std::string &
getType()
const {
return type; }
112 impl->setCompression(spec);
118 return impl->getCompression();
virtual CompressionSpec getCompression() const
returns the implementation's current compression type (result.first) and quality (result....
Definition: GenericImageOutput.h:116
undocument this line if you encounter any issues!
Definition: Any.h:37
const std::string & getDescription() const
retusn current description string
Definition: GenericImageOutput.h:107
std::string type
Definition: GenericImageOutput.h:65
virtual void send(const core::ImgBase *image)
sends a new image
Definition: GenericImageOutput.h:91
bool isNull() const
returns whether this instance was already initialized
Definition: GenericImageOutput.h:101
compression specification
Definition: ImageCompressor.h:144
const ProgArg pa(const std::string &id, unsigned int subargidx=0)
returns given program argument
Definition: ProgArg.h:304
#define ICLIO_API
Definition: CompatMacros.h:176
Programm argument utility class.
Definition: ProgArg.h:80
utils::SmartPtr< ImageOutput > impl
Definition: GenericImageOutput.h:67
GenericImageOutput()
Null constructor.
Definition: GenericImageOutput.h:72
#define ERROR_LOG(x)
Definition: Macros.h:111
Base class for Exception handling in the ICL.
Definition: Exception.h:42
virtual void setCompression(const ImageCompressor::CompressionSpec &spec)
sets the implementations compression options
Definition: GenericImageOutput.h:110
Minimal interface for image output classes.
Definition: ImageOutput.h:54
Generic Sink for images.
Definition: GenericImageOutput.h:64
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
Specialization of the SmartPtrBase class for Pointers.
Definition: SmartPtr.h:75
#define ICLASSERT_THROW(X, OBJ)
Definition: Macros.h:155
std::string description
Definition: GenericImageOutput.h:66
const std::string & getType() const
retusn current type string
Definition: GenericImageOutput.h:104