#include <vconvert.h>
Inheritance diagram for PSynonymColour:
Public Member Functions | |
PSynonymColour (const PVideoFrameInfo &src, const PVideoFrameInfo &dst) | |
virtual PBoolean | Convert (const BYTE *, BYTE *, PINDEX *=NULL) |
Convert from one colour format to another. | |
virtual PBoolean | Convert (const BYTE *, BYTE *, unsigned int, PINDEX *=NULL) |
This is a class that defines for which no conversion is required between the specified colour format names.
PSynonymColour::PSynonymColour | ( | const PVideoFrameInfo & | src, | |
const PVideoFrameInfo & | dst | |||
) | [inline] |
virtual PBoolean PSynonymColour::Convert | ( | const BYTE * | , | |
BYTE * | , | |||
unsigned | int, | |||
PINDEX * | = NULL | |||
) | [virtual] |
Implements PColourConverter.
virtual PBoolean PSynonymColour::Convert | ( | const BYTE * | , | |
BYTE * | , | |||
PINDEX * | = 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.