Scribus
Open source desktop publishing at your fingertips
ScJpegEncodeFilter Class Reference
Inheritance diagram for ScJpegEncodeFilter:
Collaboration diagram for ScJpegEncodeFilter:

Public Types

enum  Color { RGB, CMYK, GRAY }
 

Public Member Functions

 ScJpegEncodeFilter (QDataStream *stream, unsigned int imgWidth, unsigned int imgHeight, ScJpegEncodeFilter::Color color)
 
 ScJpegEncodeFilter (ScStreamFilter *filter, unsigned int imgWidth, unsigned int imgHeight, ScJpegEncodeFilter::Color color)
 
virtual bool openFilter (void)
 
virtual bool closeFilter (void)
 
virtual bool writeData (const char *data, int dataLen)
 
void setQuality (int quality)
 
- Public Member Functions inherited from ScStreamFilter
 ScStreamFilter (QDataStream *stream)
 
 ScStreamFilter (ScStreamFilter *filter)
 
virtual bool writeData (const QByteArray &data)
 
int writtenToStream (void)
 

Protected Member Functions

void freeData (void)
 
- Protected Member Functions inherited from ScStreamFilter
bool writeDataInternal (const char *data, int dataLen)
 

Protected Attributes

ScJpegEncodeFilterDatam_filterData
 
bool m_openedFilter
 
unsigned int m_width
 
unsigned int m_height
 
int m_quality
 
Color m_color
 
- Protected Attributes inherited from ScStreamFilter
int m_writtenToStream
 
FilterMode m_filterMode
 
QDataStream * m_dataStream
 
ScStreamFilterm_filter
 

Friends

struct ScJpegDestinationMgr
 

Additional Inherited Members

- Protected Types inherited from ScStreamFilter
enum  FilterMode { FilterToStream = 0, FilterToFilter = 1 }
 

The documentation for this class was generated from the following files: