PTLib  Version 2.18.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vconvert.h File Reference
#include <ptlib.h>
#include <ptlib/videoio.h>
Include dependency graph for vconvert.h:

Go to the source code of this file.

Classes

class  PColourPair
 This class contains a pair of colour formats for conversion. More...
 
class  PColourConverter
 This class defines a means to convert an image from one colour format to another. More...
 

Macros

#define PCOLOUR_CONVERTER2(cls, ancestor, srcFmt, dstFmt)
 Declare a colour converter class with Convert() function. More...
 
#define PCOLOUR_CONVERTER(cls, src, dst)   PCOLOUR_CONVERTER2(cls,PColourConverter,src,dst)
 Declare a colour converter class with Convert() function. More...
 

Typedefs

typedef PFactory
< PColourConverter,
PColourPair
PColourConverterFactory
 

Macro Definition Documentation

#define PCOLOUR_CONVERTER (   cls,
  src,
  dst 
)    PCOLOUR_CONVERTER2(cls,PColourConverter,src,dst)

Declare a colour converter class with Convert() function.

This should only be used once and at the global scope level for each converter. It declares everything needs so only the body of the Convert() function need be added.

#define PCOLOUR_CONVERTER2 (   cls,
  ancestor,
  srcFmt,
  dstFmt 
)
Value:
class cls : public ancestor { \
public: \
cls() : ancestor(PColourPair(srcFmt, dstFmt)) { } \
virtual PBoolean Convert(const BYTE *, BYTE *, PINDEX * = NULL); \
}; \
PBoolean cls::Convert(const BYTE *srcFrameBuffer, BYTE *dstFrameBuffer, PINDEX * bytesReturned) \
This class contains a pair of colour formats for conversion.
Definition: vconvert.h:47
#define PFACTORY_CREATE(factory, ConcreteClass,...)
This macro is used to create a factory.
Definition: pfactory.h:532
bool PBoolean
Definition: object.h:174
Class for a factory to create concrete class instances without parameters during construction.
Definition: pfactory.h:396

Declare a colour converter class with Convert() function.

This should only be used once and at the global scope level for each converter. It declares everything needs so only the body of the Convert() function need be added.

Typedef Documentation