ImageProcessor::TEffect Class Reference

class ImageProcessor::TEffect

The class is the parent class of all effects. The extended class should implement three stages/functions: "begin -> set -> end"

Public Member Functions
IMPORT_C voidBeginL()
IMPORT_C voidEndL()
IMPORT_C TAny *Extension(TUid)
IMPORT_C TEffectInputTypeInputType()
TBool IsActive()
IMPORT_C voidLevelL(TInt &)
IMPORT_C voidLevelL(TReal32 &)
IMPORT_C voidLevelSettings(TInt &, TInt &, TInt &)
IMPORT_C voidLevelSettings(TReal32 &, TReal32 &, TReal32 &)
Plugin::MEffect &PluginEffect()
IMPORT_C voidResetL()
IMPORT_C voidSetLevelL(TInt)
IMPORT_C voidSetLevelL(TReal32)
TUid Type()
Protected Member Functions
TEffect(const TUid &, Plugin::MEffect &, CImageProcessorImpl &)
Public Member Enumerations
enumTEffectInputType { EEffectInputTypeInt, EEffectInputTypeReal32, EEffectInputTypeCustom }
Protected Attributes
CImageProcessorImpl &iImageProcessorImpl
TBool iIsActive
Plugin::MEffect &iPluginEffect
TAny *iReserved
TUid iUid

Constructor & Destructor Documentation

TEffect(const TUid &, Plugin::MEffect &, CImageProcessorImpl &)

TEffect(const TUid &aUid,
Plugin::MEffect &aPluginEffect,
CImageProcessorImpl &aImageProcessorImpl
)[protected]

Constructor.

Parameters

const TUid & aUidThe uid of the effect.
Plugin::MEffect & aPluginEffectThe effect plugin.
CImageProcessorImpl & aImageProcessorImplThe image processor implementation.

Member Functions Documentation

BeginL()

IMPORT_C voidBeginL()

The begin function of effects, which is first part of the three stages/functions: "begin -> set -> end". .

EndL()

IMPORT_C voidEndL()

The end function of effects, which is last part of the three stages/functions: "begin -> set -> end". .

Extension(TUid)

IMPORT_C TAny *Extension(TUidaExtension)

Retrieves access to a custom extension.

Parameters

TUid aExtensionThe UID of the extension to be retrieved

InputType()

IMPORT_C TEffectInputTypeInputType()const

Retrieves the input type for the effect.

IsActive()

TBool IsActive()const [inline]

Gets the state of the effect.

LevelL(TInt &)

IMPORT_C voidLevelL(TInt &aLevel)const

Retrieves the effect level.

leave
KErrNotSupported The input type is not supported by the effect. The supported input type can be queried by calling TEffect::InputType function.
TEffect::InputType()

Parameters

TInt & aLevelThe level value.

LevelL(TReal32 &)

IMPORT_C voidLevelL(TReal32 &aLevel)const

Retrieves the effect level.

leave
KErrNotSupported The input type is not supported by the effect. The supported input type can be queried by calling TEffect::InputType function.
TEffect::InputType()

Parameters

TReal32 & aLevelThe level value.

LevelSettings(TInt &, TInt &, TInt &)

IMPORT_C voidLevelSettings(TInt &aMinimumLevel,
TInt &aMaximumLevel,
TInt &aLevelStep
)const

Retrieves the effect level range. If minimum level equals the maximum level the particular input type is not supported.

Parameters

TInt & aMinimumLevelThe minimum value of the level.
TInt & aMaximumLevelThe maximum value of the level.
TInt & aLevelStepThe value of the level step. The level step defines the level range resolution between minimim and maximum levels.

LevelSettings(TReal32 &, TReal32 &, TReal32 &)

IMPORT_C voidLevelSettings(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.

Parameters

TReal32 & aMinimumLevelThe minimum value of the level.
TReal32 & aMaximumLevelThe maximum value of the level.
TReal32 & aLevelStepThe value of the level step. The level step defines the level range resolution between minimim and maximum levels.

PluginEffect()

Plugin::MEffect &PluginEffect()const [inline]

Gets associated plugin of the effect.

ResetL()

IMPORT_C voidResetL()

The reset function of effects, which resets the effect parameters and state.

SetLevelL(TInt)

IMPORT_C voidSetLevelL(TIntaLevel)

Sets the level to the effect.

leave
KErrNotReady The effect is not active. The effect should be set active by calling TEffect::BeginL() function.
TEffect::BeginL()
leave
KErrArgument The level is not in the level range. The range can be queried by calling TEffect::LevelSettings(TInt& aMinimumLevel, TInt& aMaximumLevel, TInt& aLevelStep) function.
TEffect::LevelSettings(TInt& aMinimumLevel, TInt& aMaximumLevel, TInt& aLevelStep)
leave
KErrNotSupported The input type is not supported by the effect. The supported input type can be queried by calling TEffect::InputType function.
TEffect::InputType()

Parameters

TInt aLevelThe level value to be set.

SetLevelL(TReal32)

IMPORT_C voidSetLevelL(TReal32aLevel)

Sets the level to the effect.

leave
KErrNotReady The effect is not active. The effect should be set active by calling TEffect::BeginL() function.
TEffect::BeginL()
leave
KErrArgument The level is not in the level range. The range can be queried by calling TEffect::LevelSettings(TReal32& aMinimumLevel, TReal32& aMaximumLevel, TReal32& aLevelStep) function.
TEffect::LevelSettings(TReal32& aMinimumLevel, TReal32& aMaximumLevel, TReal32& aLevelStep)
leave
KErrNotSupported The input type is not supported for the effect. The supported input type can be queried by calling TEffect::InputType function.
TEffect::InputType()

Parameters

TReal32 aLevelThe level value to be set.

Type()

TUid Type()const [inline]

Gets the effect type.

Member Enumerations Documentation

Enum TEffectInputType

Describes the type of the effect in terms of the type of parameter input to adjust levels.

Enumerators

EEffectInputTypeInt
EEffectInputTypeReal32
EEffectInputTypeCustom

Member Data Documentation

CImageProcessorImpl & iImageProcessorImpl

CImageProcessorImpl &iImageProcessorImpl[protected]

TBool iIsActive

TBool iIsActive[protected]

Plugin::MEffect & iPluginEffect

Plugin::MEffect &iPluginEffect[protected]

TAny * iReserved

TAny *iReserved[protected]

TUid iUid

TUid iUid[protected]