Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Friends

PColourConverter Class Reference

#include <vconvert.h>

Inheritance diagram for PColourConverter:
Inheritance graph
Collaboration diagram for PColourConverter:
Collaboration graph

List of all members.

Public Member Functions

virtual BOOL Convert (const BYTE *srcFrameBuffer, BYTE *dstFrameBuffer, PINDEX *bytesReturned=NULL)=0
virtual BOOL Convert (const BYTE *srcFrameBuffer, BYTE *dstFrameBuffer, unsigned int srcFrameBytes, 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

PString dstColourFormat
unsigned dstFrameBytes
unsigned dstFrameHeight
unsigned dstFrameWidth
PBYTEArray intermediateFrameStore
struct jdec_privatejdec
BOOL scaleNotCrop
PString srcColourFormat
unsigned srcFrameBytes
unsigned srcFrameHeight
unsigned srcFrameWidth
BOOL verticalFlip

Private Member Functions

 PCLASSINFO (PColourConverter, PObject)


class PColourConverterRegistration

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)

Run Time Type functions

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

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 }

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 159 of file vconvert.h.

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

Generated by  Doxygen 1.6.0   Back to index