25#ifndef _SOJPEGIMAGERW_
26#define _SOJPEGIMAGERW_
28#include <Inventor/image/SoRasterImageRW.h>
29#include <Inventor/threads/SbThreadMutex.h>
31struct jpeg_compress_struct;
54 SO_IMAGE_RASTER_RW_HEADER()
126 unsigned char* getBuffer(
size_t& size) const;
128 virtual
bool supportsAlpha() const;
131 virtual
void createSuffixList();
137 struct jpeg_compress_struct* m_cinfoW;
140 size_t m_jpegBufferSize;
141 unsigned char* m_jpegBuffer;
142 bool m_isJpegLibraryLoaded;
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class encapsulat...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable mutex c...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for encodi...
virtual SbBool open(SoRasterImageIO *rasterImageIO, OpenMode openMode)
Opens the reader/writer in the specified open mode.
virtual SbBool isMultipleBufferInverted() const
Specifies the write direction when using multiple buffers.
virtual SoRasterImageRW::ReadCapability getReadCapability() const
Returns the read capability of the raster format.
float getOutputQuality() const
Returns the output quality.
virtual void close()
Closes the reader/writer.
virtual SbBool read(SbRasterImage *rasterImage, SbBool infoOnly=FALSE)
Reads, decodes, and fills the rasterImage parameter.
void setOutputQuality(float quality)
Sets the output quality of the image, from 0.0 (lowest quality) to 1.0 (highest quality).
virtual SbBool writeFooter()
Writes and encodes the header for this specific format.
virtual SbBool write(SbRasterImage *rasterImage, unsigned int xPos=0, unsigned int yPos=0)
Writes and encodes the given data in this specific format.
virtual SoRasterImageRW::WriteCapability getWriteCapability() const
Returns the write capability of the raster format.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
ReadCapability
Read Capability enumeration values.
OpenMode
open Mode enumeration values.
WriteCapability
Write Capability enumeration values.