#include <imageprocessor/imageprocessoroverlay.h>
class ImageProcessor::TOverlay |
Public Member Functions | |
---|---|
IMPORT_C TReal32 | AngleL() |
IMPORT_C void | BeginL() |
IMPORT_C void | EndL() |
IMPORT_C void | GetScaleL(TReal32 &, TReal32 &) |
IMPORT_C TPoint | PositionL() |
IMPORT_C void | ResetL() |
IMPORT_C void | SetInputL(const TDesC &, const TUid &, const TUid &) |
IMPORT_C void | SetInputL(RFile &, const TUid &, const TUid &) |
IMPORT_C void | SetInputL(TMMSource &, const TUid &, const TUid &) |
IMPORT_C void | SetInputL(const TDesC8 &, const TUid &, const TUid &) |
IMPORT_C void | SetInputL(const CFbsBitmap &, const CFbsBitmap *) |
IMPORT_C void | SetInputL(const CImageFrame &) |
IMPORT_C void | SetL(const TSize &, const TPoint &, TReal32) |
IMPORT_C void | SetL(TReal32, TReal32, const TPoint &, TReal32) |
IMPORT_C TSize | SizeL() |
IMPORT_C void | SupportedInputDisplayModesL(RArray< TDisplayMode > &) |
IMPORT_C void | SupportedInputFormatsL(RArray< TUid > &) |
IMPORT_C void | SupportedInputImageFrameFormatsL(RArray< TUid > &) |
IMPORT_C void | SupportedInputSubFormatsL(TUid, RArray< TUid > &) |
This class provides image overlay functionality.
Before overlay effects are applied, SetInputL should be called to specify the input overlay image.
The overlay effect can be applied by:
Begin overlay by calling BeginL().
Adjust overlay parameters (optional) by calling SetL(aSize, aPosition, aAngle), possibly several times.
Signal final placement of overlay by calling EndL(). Between step 1 and 3, no other effects or operations may be carried out i.e. the overlay has to be concluded/ended before proceeding to apply other effects.
IMPORT_C TReal32 | AngleL | ( | ) | const |
Gets the angle of the overlay image.
Returns: The angle of the overlay image.
IMPORT_C void | BeginL | ( | ) |
First step of the three stages overlay BeginL()/SetL()/EndL(). The state of the ImageProcessor is set to EEffectActive.
IMPORT_C TPoint | PositionL | ( | ) | const |
Gets the geometric centre position of the overlay image.
Returns: The position of the overlay image geometric centre.
IMPORT_C void | ResetL | ( | ) |
Resets the overlay parameters and state.
IMPORT_C void | SetInputL | ( | const TDesC & | aFilename, |
const TUid & | aFormat = KNullUid, | |||
const TUid & | aSubFormat = KNullUid | |||
) |
Specifies the file name and format of the overlay image. The input must be set only once and after the BeginL() is done. So, the SetInputL() must be called only once between BeginL() and EndL().
Parameter | Description |
---|---|
aFilename | The file name of the overlay image. |
aFormat | The format of the overlay image. |
aSubFormat | The sub format of the overlay image. Currently is not supported, shoud set to KNullUid. |
IMPORT_C void | SetInputL | ( | RFile & | aFile, |
const TUid & | aFormat = KNullUid, | |||
const TUid & | aSubFormat = KNullUid | |||
) |
Specifies the file pointer and format of the overlay image. The input must be set only once and after the BeginL() is done. So, the SetInputL() must be called only once between BeginL() and EndL().
Parameter | Description |
---|---|
aFile | The pointer to the file of the overlay image. |
aFormat | The format of the overlay image. |
aSubFormat | The sub format of the overlay image. Currently is not supported, shoud set to KNullUid. |
IMPORT_C void | SetInputL | ( | TMMSource & | aDrmFile, |
const TUid & | aFormat = KNullUid, | |||
const TUid & | aSubFormat = KNullUid | |||
) |
Specifies the file pointer and format of the overlay image which is a DRM protected content source. The input must be set only once and after the BeginL() is done. So, the SetInputL() must be called only once between BeginL() and EndL().
Parameter | Description |
---|---|
aDrmFile | The pointer to the DRM file of the overlay image. |
aFormat | The format of the overlay image. |
aSubFormat | The sub format of the overlay image. Currently is not supported, shoud set to KNullUid. |
IMPORT_C void | SetInputL | ( | const TDesC8 & | aBuffer, |
const TUid & | aFormat = KNullUid, | |||
const TUid & | aSubFormat = KNullUid | |||
) |
Specifies the buffer pointer and format of the overlay image. The input must be set only once and after the BeginL() is done. So, the SetInputL() must be called only once between BeginL() and EndL().
Parameter | Description |
---|---|
aBuffer | The pointer to the buffer of the overlay image. |
aFormat | The format of the overlay image. |
aSubFormat | The sub format of the overlay image. Currently is not supported, shoud set to KNullUid. |
IMPORT_C void | SetInputL | ( | const CFbsBitmap & | aBitmap, |
const CFbsBitmap * | aMask = NULL | |||
) |
Specifies the bitmap and mask of the overlay image. Source bitmap must not be deleted or changed during lifetime of TOverlay instance. The input must be set only once and after the BeginL() is done. So, the SetInputL() must be called only once between BeginL() and EndL().
Parameter | Description |
---|---|
aBitmap | The pointer to the bitmap of the overlay image. |
aMask | The mask of the overlay image. Currently not supported, mush be NULL. |
IMPORT_C void | SetInputL | ( | const CImageFrame & | aPixelBuffer | ) |
Specifies the binary image data of the overlay image. Source image frame buffer must not be deleted or changed during lifetime of TOverlay instance. The input must be set only once and after the BeginL() is done. So, the SetInputL() must be called only once between BeginL() and EndL().
Parameter | Description |
---|---|
aPixelBuffer | The CImageFrame type pointer of the overlay image. |
Second step of the three stages overlay BeginL()/SetL()/EndL(). Specifies the size, geometric centre position and angle of the overlay image.
Parameter | Description |
---|---|
aSize | The size of the overlay image. |
aPosition | The position of the overlay image geometric centre. |
aAngle | The angle of the overlay image. |
IMPORT_C void | SetL | ( | TReal32 | aScaleX = 1.0, |
TReal32 | aScaleY = 1.0, | |||
const TPoint & | aPosition = TPoint(0, 0), | |||
TReal32 | aAngle = 0 | |||
) |
Second step of the three stages overlay BeginL()/SetL()/EndL(). Specifies the scale, geometric centre position and angle of the overlay image.
Parameter | Description |
---|---|
aScaleX | The scale of the overlay image width. |
aScaleY | The scale of the overlay image height. |
aPosition | The position of the overlay image geometric centre. |
aAngle | The angle of the overlay image. |
IMPORT_C TSize | SizeL | ( | ) | const |
Gets the size of the overlay image.
Returns: The size of the overlay image.
IMPORT_C void | SupportedInputDisplayModesL | ( | RArray< TDisplayMode > & | aDisplayModes | ) | const |
Gets the supported overlay image display modes.
Parameter | Description |
---|---|
aDisplayModes | The supported display modes of overlay image of ImageProcessor. |