|
| IlvPNGStreamer () |
| Initializes a new IlvPNGStreamer instance.
|
|
IlBoolean | canRead () const |
| Indicates that the instance can read from a stream. More...
|
|
IlBoolean | canWrite () const |
| Indicates that the instance can write to a stream. More...
|
|
IlBoolean | checkSignature (const IlUChar *data, IlUInt size) |
| Checks the signature of the input stream. More...
|
|
IlUInt | getAlphaLevel () const |
| Gets the alpha level of the PNG streamer. More...
|
|
IlUInt | getCompressionLevel () const |
| Gets the compression level of the generated PNG stream. More...
|
|
IlUShort | getIndexedColors () const |
| Returns the number of colors to quantize to. More...
|
|
IlBoolean | hasInterlace () const |
| Gets whether the generated PNG stream is interlaced. More...
|
|
IlBoolean | isIndexed () const |
|
IlvBitmapData * | read (std::istream &stream) |
| Reads a PNG image from a stream. More...
|
|
void | setAlphaLevel (IlUInt level) |
| Sets the alpha level for the PNG stream. More...
|
|
void | setCompressionLevel (IlUInt level) |
| Sets the compression level of the generated PNG stream. More...
|
|
void | setIndexed (IlBoolean indexed, IlUShort numcols=256) |
| Sets whether the generated PNG stream is indexed. More...
|
|
void | setInterlace (IlBoolean interlace) |
| Sets whether the generated PNG stream is interlaced. More...
|
|
IlBoolean | write (IlvBitmapData *data, std::ostream &stream) override |
| Writes an IlvBitmapData to a PNG stream with 'TransparencyFromViewsBitmap' mode. More...
|
|
IlBoolean | write (IlvBitmapData *data, std::ostream &stream, IlvPngWriteMethod method) |
| Writes an IlvBitmapData to a PNG stream. More...
|
|
virtual void | callReadProgressCallback (IlUInt current, IlUInt max) |
| Calls the callback for read progression. More...
|
|
virtual void | callWriteProgressCallback (IlUInt current, IlUInt max) |
| Calls the callback for write progression. More...
|
|
virtual const char * | getName () const |
| Returns the internal name of the streamer. More...
|
|
IlvQuantizer * | getQuantizer () const |
| Returns the quantizer used by this streamer. More...
|
|
virtual IlvBitmap * | readBitmap (IlvDisplay *display, std::istream &stream) |
| Reads IlvBitmap from a stream. More...
|
|
virtual IlvBitmapInformation * | readInfo (std::istream &stream) |
| Reads information from a stream. More...
|
|
void | setQuantizer (IlvQuantizer *quantizer) |
| Sets the quantizer used (if needed) by this streamer. More...
|
|
virtual void | setReadProgressCallback (IlvProgressCallback rpCallback, IlAny arg=0) |
| Sets the callback for read progression. More...
|
|
virtual void | setWriteProgressCallback (IlvProgressCallback wpCallback, IlAny arg=0) |
| Sets the callback for write progression. More...
|
|
virtual IlBoolean | applyValue (const IlvValue &value) |
| Apply an accessor. More...
|
|
virtual IlBoolean | changeValue (const IlvValue &val) |
| Changes the value of an accessor. More...
|
|
virtual IlBoolean | changeValues (const IlvValue *values, IlUShort count=0) |
| Changes several accessor values simultaneously. More...
|
|
virtual void | getAccessors (const IlSymbol *const **names, const IlvValueTypeClass *const **types, IlUInt &count) const |
| Retrieves the list of available accessors of an object. More...
|
|
virtual IlvValue & | queryValue (IlvValue &val) const |
| Retrieves an accessor value. More...
|
|
virtual void | queryValues (IlvValue *values, IlUShort count) const |
| Retrieves multiple accessor values simultaneously. More...
|
|
Bitmap streamer class.
Library: ilvpng
This streamer provides methods to deal with a stream containing a PNG image. It supports reading from all PNG streams. It handles transparent images by mapping alpha values greater than 50 to opaque and others to transparent.
This streamer can read and write.
When writing, it is possible to force indexed output using a specified number of colors. When reading or writing interlaced images, callbacks will be called at each pass. When reading or writing non-interlaced images, callbacks will be called at each scanline.