#include <vconvert.h>
Public Member Functions | |
PSynonymColour (const PString &srcFmt, const PString &dstFmt, unsigned w, unsigned h) | |
virtual BOOL | Convert (const BYTE *, BYTE *, PINDEX *=NULL) |
virtual BOOL | Convert (const BYTE *, BYTE *, unsigned int, PINDEX *=NULL) |
PSynonymColour::PSynonymColour | ( | const PString & | srcFmt, | |
const PString & | dstFmt, | |||
unsigned | w, | |||
unsigned | h | |||
) | [inline] |
virtual BOOL PSynonymColour::Convert | ( | const BYTE * | srcFrameBuffer, | |
BYTE * | dstFrameBuffer, | |||
PINDEX * | bytesReturned = NULL | |||
) | [virtual] |
Convert from one colour format to another. This version will copy the data from one frame buffer to another. An implementation of this function should allow for the case of where srcFrameBuffer and dstFrameBuffer are the same, if the conversion algorithm allows for that to occur without an intermediate frame store.
The function should return FALSE if srcFrameBuffer and dstFrameBuffer are the same and that form pf conversion is not allowed
Implements PColourConverter.
virtual BOOL PSynonymColour::Convert | ( | const BYTE * | , | |
BYTE * | , | |||
unsigned | int, | |||
PINDEX * | = NULL | |||
) | [virtual] |
Implements PColourConverter.