#include <imageprocessor/imageprocessoreffect.h>
| class ImageProcessor::TEffect | 
| Protected Attributes | |
|---|---|
| CImageProcessorImpl & | iImageProcessorImpl | 
| TBool | iIsActive | 
| Plugin::MEffect & | iPluginEffect | 
| TAny * | iReserved | 
| TUid | iUid | 
| Public Member Enumerations | |
|---|---|
| enum | TEffectInputType { EEffectInputTypeInt, EEffectInputTypeReal32, EEffectInputTypeCustom } | 
| Public Member Functions | |
|---|---|
| IMPORT_C void | BeginL() | 
| IMPORT_C void | EndL() | 
| IMPORT_C TAny * | Extension(TUid) | 
| IMPORT_C TEffectInputType | InputType() | 
| TBool | IsActive() | 
| IMPORT_C void | LevelL(TInt &) | 
| IMPORT_C void | LevelL(TReal32 &) | 
| IMPORT_C void | LevelSettings(TInt &, TInt &, TInt &) | 
| IMPORT_C void | LevelSettings(TReal32 &, TReal32 &, TReal32 &) | 
| Plugin::MEffect & | PluginEffect() | 
| IMPORT_C void | ResetL() | 
| IMPORT_C void | SetLevelL(TInt) | 
| IMPORT_C void | SetLevelL(TReal32) | 
| TUid | Type() | 
| Protected Member Functions | |
|---|---|
| TEffect(const TUid &, Plugin::MEffect &, CImageProcessorImpl &) | |
The class is the parent class of all effects. The extended class should implement three stages/functions: "begin -> set -> end"
| TEffect | ( | const TUid & | aUid, | 
| Plugin::MEffect & | aPluginEffect, | ||
| CImageProcessorImpl & | aImageProcessorImpl | ||
| ) | [protected] | ||
Constructor.
| Parameter | Description | 
|---|---|
| aUid | The uid of the effect. | 
| aPluginEffect | The effect plugin. | 
| aImageProcessorImpl | The image processor implementation. | 
| IMPORT_C void | BeginL | ( | ) | 
The begin function of effects, which is first part of the three stages/functions: "begin -> set -> end". .
| IMPORT_C void | EndL | ( | ) | 
The end function of effects, which is last part of the three stages/functions: "begin -> set -> end". .
| IMPORT_C TEffectInputType | InputType | ( | ) | const | 
Retrieves the input type for the effect.
Returns: TEffectInputType corresponding to the level type.
| TBool | IsActive | ( | ) | const [inline] | 
Gets the state of the effect.
Returns: ETrue if the effect is active.
| IMPORT_C void | LevelL | ( | TInt & | aLevel | ) | const | 
Retrieves the effect level.
See also: TEffect::InputType()
| Parameter | Description | 
|---|---|
| aLevel | The level value. | 
| IMPORT_C void | LevelL | ( | TReal32 & | aLevel | ) | const | 
Retrieves the effect level.
See also: TEffect::InputType()
| Parameter | Description | 
|---|---|
| aLevel | The level value. | 
Retrieves the effect level range. If minimum level equals the maximum level the particular input type is not supported.
| Parameter | Description | 
|---|---|
| aMinimumLevel | The minimum value of the level. | 
| aMaximumLevel | The maximum value of the level. | 
| aLevelStep | The value of the level step. The level step defines the level range resolution between minimim and maximum levels. | 
| IMPORT_C void | LevelSettings | ( | TReal32 & | aMinimumLevel, | 
| TReal32 & | aMaximumLevel, | |||
| TReal32 & | aLevelStep | |||
| ) | const | |||
Retrieves the effect level range. If minimum level equals the maximum level the particular input type is not supported.
| Parameter | Description | 
|---|---|
| aMinimumLevel | The minimum value of the level. | 
| aMaximumLevel | The maximum value of the level. | 
| aLevelStep | The value of the level step. The level step defines the level range resolution between minimim and maximum levels. | 
| Plugin::MEffect & | PluginEffect | ( | ) | const [inline] | 
Gets associated plugin of the effect.
Returns: A pointer to the related plugin effect instance.
| IMPORT_C void | ResetL | ( | ) | 
The reset function of effects, which resets the effect parameters and state.
| IMPORT_C void | SetLevelL | ( | TInt | aLevel | ) | 
Sets the level to the effect.
See also: TEffect::BeginL()
See also: TEffect::LevelSettings(TInt& aMinimumLevel, TInt& aMaximumLevel, TInt& aLevelStep)
See also: TEffect::InputType()
| Parameter | Description | 
|---|---|
| aLevel | The level value to be set. | 
| IMPORT_C void | SetLevelL | ( | TReal32 | aLevel | ) | 
Sets the level to the effect.
See also: TEffect::BeginL()
See also: TEffect::LevelSettings(TReal32& aMinimumLevel, TReal32& aMaximumLevel, TReal32& aLevelStep)
See also: TEffect::InputType()
| Parameter | Description | 
|---|---|
| aLevel | The level value to be set. |