Logo Search packages:      
Sourcecode: pwlib version File versions

PColourConverter Class Reference

#include <vconvert.h>

Inheritance diagram for PColourConverter:

PObject PSynonymColour

List of all members.

Detailed Description

This class defines a means to convert an image from one colour format to another. It is an ancestor class for the individual formatting functions.

Definition at line 119 of file vconvert.h.

I/O functions

ostream & operator<< (ostream &strm, const PObject &obj)
istream & operator>> (istream &strm, PObject &obj)
virtual void PrintOn (ostream &strm) const
virtual void ReadFrom (istream &strm)

Comparison functions

virtual Comparison Compare (const PObject &obj) const
virtual Comparison CompareObjectMemoryDirect (const PObject &obj) const
bool operator!= (const PObject &obj) const
bool operator< (const PObject &obj) const
bool operator<= (const PObject &obj) const
bool operator== (const PObject &obj) const
bool operator> (const PObject &obj) const
bool operator>= (const PObject &obj) const
enum  Comparison { LessThan = -1, EqualTo = 0, GreaterThan = 1 }

Run Time Type functions

virtual const char * GetClass (unsigned=0) const
virtual BOOL InternalIsDescendant (const char *clsName) const
BOOL IsClass (const char *cls) const
static const char * Class ()

Public Member Functions

virtual BOOL Convert (const BYTE *srcFrameBuffer, BYTE *dstFrameBuffer, PINDEX *bytesReturned=NULL)=0
virtual BOOL ConvertInPlace (BYTE *frameBuffer, PINDEX *bytesReturned=NULL, BOOL noIntermediateFrame=FALSE)
const PStringGetDstColourFormat ()
BOOL GetDstFrameSize (unsigned &width, unsigned &height) const
PINDEX GetMaxDstFrameBytes ()
PINDEX GetMaxSrcFrameBytes ()
const PStringGetSrcColourFormat ()
BOOL GetSrcFrameSize (unsigned &width, unsigned &height) const
BOOL GetVFlipState ()
 PColourConverter (const PString &srcColourFormat, const PString &dstColourFormat, unsigned width, unsigned height)
virtual BOOL SetDstFrameSize (unsigned width, unsigned height, BOOL bScale)
virtual BOOL SetFrameSize (unsigned width, unsigned height)
virtual BOOL SetSrcFrameSize (unsigned width, unsigned height)
void SetVFlipState (BOOL vFlipState)
Miscellaneous functions
virtual PObjectClone () const
virtual PINDEX HashFunction () const

Static Public Member Functions

static PColourConverterCreate (const PString &srcColourFormat, const PString &dstColourFormat, unsigned width, unsigned height)

Protected Attributes

BOOL doVFlip
PString dstColourFormat
unsigned dstFrameBytes
unsigned dstFrameHeight
unsigned dstFrameWidth
PBYTEArray intermediateFrameStore
BOOL scaleNotCrop
PString srcColourFormat
unsigned srcFrameBytes
unsigned srcFrameHeight
unsigned srcFrameWidth

Private Member Functions

 PCLASSINFO (PColourConverter, PObject)


class PColourConverterRegistration

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

Generated by  Doxygen 1.6.0   Back to index