ImageProcessor::CImageProcessorImpl Class Reference

class ImageProcessor::CImageProcessorImpl : public CBase

Inherits from

  • ImageProcessor::CImageProcessorImpl
Public Member Functions
~CImageProcessorImpl ()
void AppendOverlayDrmInputL ()
void ApplyOperationL ( CImgProcessor::TOperation )
TRgb BackgroundColorL ()
TInt CalculatePixelBufferSizeL ( TSize , TDisplayMode , TUint32 )
TInt CalculatePixelBufferSizeL ( TSize , const TUid &, TUint32 )
TBool CanRedoL ()
TBool CanUndoL ()
void Cancel ()
void CheckStateL ( CImgProcessor::TState )
void Cleanup ()
void ConvertFileExtensionToUidL (const TDesC &, TUid &, TUid &)
void ConvertMimeTypeToUidL (const TDesC8 &, TUid &, TUid &)
void ConvertUidToFileExtensionL ( TDes &, const TUid &, const TUid &)
void ConvertUidToMimeTypeL ( TDes8 &, const TUid &, const TUid &)
void CreateInputL ( CFbsBitmap &)
void CreateInputL ( CImageFrame &)
void CreateInputL (const TSize &, const TRgb &)
TSize CurrentSizeL ()
TEffect * EffectL ( TUid )
TAny * Extension ( TUid )
void InitializeL ( TUint64 )
TInputInfo * InputInfoL ()
void InputUpdatedL ()
TBool IsBusy ( CImgProcessor::TState )
TBool IsInputSet ()
TBool IsOutputSet ()
CImageProcessorImpl * NewL ( RFs &, CImgProcessor &, MImgProcessorObserver &, TUid )
TUint64 Options ()
TOutputInfo * OutputInfoL ()
RArray < TDisplayMode > & OverlayInputDisplayModesL ()
RArray < TUid > & OverlayInputFormatsL ()
RArray < TUid > & OverlayInputImageFrameFormatsL ()
TOverlay * OverlayL ()
void PostEvent ( TInt , TUid , TInt , TInt )
TPreview * PreviewL ( TInt )
RArray < TDisplayMode > & PreviewOutputDisplayModesL ()
RArray < TUid > & PreviewOutputImageFrameFormatsL ()
void ProcessEventL ( TInt , TUid , TInt , TInt )
void ProcessL (const TSize &, TBool )
TProgressInfo * ProgressInfoL ()
void RedoAllL ()
void RedoL ()
void ResetL ()
void ResetOverlayDrmInput ()
void RestoreStateL ()
void SetBackgroundColorL (const TRgb &)
void SetInputL (const TDesC &, const TUid &, const TUid &)
void SetInputL ( RFile &, const TUid &, const TUid &)
void SetInputL ( TMMSource &, const TUid &, const TUid &)
void SetInputL (const TDesC8 &, const TUid &, const TUid &)
void SetInputL (const CFbsBitmap &, const CFbsBitmap *)
void SetInputL (const CImageFrame &)
void SetInputL (CImagePanorama &)
void SetInputRectL (const TRect &)
void SetOptionsL ( TUint64 )
void SetOutputL (const TDesC &, const TUid &, const TUid &)
void SetOutputL ( RFile &, const TUid &, const TUid &)
void SetOutputL ( RBuf8 &, const TUid &, const TUid &)
void SetOutputL ( CImageFrame &)
void SetOutputL ( CFbsBitmap &, CFbsBitmap *)
void SetOverlayDrmInput ( CImageProcessorDrmInput *)
void SetStateL ( CImgProcessor::TState )
CImgProcessor::TState State ()
void SupportedEffectsL ( RArray < TUid > &)
void SupportedInputDisplayModesL ( RArray < TDisplayMode > &)
void SupportedInputFormatsL ( RArray < TUid > &)
void SupportedInputImageFrameFormatsL ( RArray < TUid > &)
void SupportedInputSubFormatsL ( TUid , RArray < TUid > &)
TUint SupportedOperations ()
TUint64 SupportedOptions ()
void SupportedOutputDisplayModesL ( RArray < TDisplayMode > &)
void SupportedOutputFormatsL ( RArray < TUid > &)
void SupportedOutputImageFrameFormatsL ( RArray < TUid > &)
void SupportedOutputSubFormatsL ( TUid , RArray < TUid > &)
void UndoAllL ()
void UndoL ()
Private Member Functions
CImageProcessorImpl ( RFs &, CImgProcessor &, TUid )
void CheckInputFormatL (const TUid &, const TUid &)
void CheckOutputFormatL (const TUid &, const TUid &)
void ConstructL ( MImgProcessorObserver &)
TEffect * CreateEffectL ( TUid )
TEffect * EffectFactoryL ( TUid , Plugin::MEffect *)
TEffect * FindEffect ( TUid )
TPreview * FindPreview ( TInt )
void InitializeFrameworkEffectsL ()
TBool IsFrameworkEffect ( TUid )
TBool IsPluginEffect ( TUid )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CImageProcessorCallback * iCallbackHandler
CImageProcessorDrmInput * iDrmInput
RPointerArray < TEffect > iEffects
RFs & iFileServerSession
RArray < TUid > iFrameworkEffects
CImgProcessor & iImageProcessor
RArray < TDisplayMode > iInputDisplayModes
RArray < TUid > iInputFormats
RArray < TUid > iInputImageFrameFormats
TInputInfo * iInputInfo
TBool iIsInputSet
TBool iIsOutputSet
TUint64 iOptions
RArray < TDisplayMode > iOutputDisplayModes
RArray < TUid > iOutputFormats
RArray < TUid > iOutputImageFrameFormats
TOutputInfo * iOutputInfo
TOverlay * iOverlay
CImageProcessorDrmInput * iOverlayDrmInput
RPointerArray < CImageProcessorDrmInput > iOverlayDrmInputs
RArray < TDisplayMode > iOverlayInputDisplayModes
RArray < TUid > iOverlayInputFormats
RArray < TUid > iOverlayInputImageFrameFormats
MImgProcessorPlugin * iPlugin
TUid iPluginDtorKey
RArray < TUid > iPluginEffects
TUid iPluginUid
RArray < TDisplayMode > iPreviewOutputDisplayModes
RArray < TUid > iPreviewOutputImageFrameFormats
RPointerArray < TPreview > iPreviews
CImgProcessor::TState iPreviousState
TProgressInfo * iProgressInfo
CImgProcessor::TState iState
TUint iSupportedOperations
TUint64 iSupportedOptions
RFileExtensionMIMETypeArray iTypesUtilityArray
const TBool iValidStates

Constructor & Destructor Documentation

CImageProcessorImpl(RFs &, CImgProcessor &, TUid)

CImageProcessorImpl ( RFs & aFileServerSession,
CImgProcessor & aImageProcessor,
TUid aPluginUid
) [private]

Parameters

RFs & aFileServerSession
CImgProcessor & aImageProcessor
TUid aPluginUid

~CImageProcessorImpl()

~CImageProcessorImpl ( )

Member Functions Documentation

AppendOverlayDrmInputL()

void AppendOverlayDrmInputL ( )

ApplyOperationL(CImgProcessor::TOperation)

void ApplyOperationL ( CImgProcessor::TOperation aOperation )

Parameters

CImgProcessor::TOperation aOperation

BackgroundColorL()

TRgb BackgroundColorL ( ) const

CalculatePixelBufferSizeL(TSize, TDisplayMode, TUint32)

TInt CalculatePixelBufferSizeL ( TSize aSizeInPixels,
TDisplayMode aDisplayMode,
TUint32 aScanLineLength = 0
) const

Parameters

TSize aSizeInPixels
TDisplayMode aDisplayMode
TUint32 aScanLineLength = 0

CalculatePixelBufferSizeL(TSize, const TUid &, TUint32)

TInt CalculatePixelBufferSizeL ( TSize aSizeInPixels,
const TUid & aFormat,
TUint32 aScanLineLength = 0
) const

Parameters

TSize aSizeInPixels
const TUid & aFormat
TUint32 aScanLineLength = 0

CanRedoL()

TBool CanRedoL ( ) const

CanUndoL()

TBool CanUndoL ( ) const

Cancel()

void Cancel ( )

CheckInputFormatL(const TUid &, const TUid &)

void CheckInputFormatL ( const TUid & aFormat,
const TUid & aSubFormat
) [private]

Parameters

const TUid & aFormat
const TUid & aSubFormat

CheckOutputFormatL(const TUid &, const TUid &)

void CheckOutputFormatL ( const TUid & aFormat,
const TUid & aSubFormat
) [private]

Parameters

const TUid & aFormat
const TUid & aSubFormat

CheckStateL(CImgProcessor::TState)

void CheckStateL ( CImgProcessor::TState aState ) const

Parameters

CImgProcessor::TState aState

Cleanup()

void Cleanup ( )

ConstructL(MImgProcessorObserver &)

void ConstructL ( MImgProcessorObserver & aObserver ) [private]

Parameters

MImgProcessorObserver & aObserver

ConvertFileExtensionToUidL(const TDesC &, TUid &, TUid &)

void ConvertFileExtensionToUidL ( const TDesC & aFileExtension,
TUid & aFormat,
TUid & aSubFormat
)

Parameters

const TDesC & aFileExtension
TUid & aFormat
TUid & aSubFormat

ConvertMimeTypeToUidL(const TDesC8 &, TUid &, TUid &)

void ConvertMimeTypeToUidL ( const TDesC8 & aMimeType,
TUid & aFormat,
TUid & aSubFormat
)

Parameters

const TDesC8 & aMimeType
TUid & aFormat
TUid & aSubFormat

ConvertUidToFileExtensionL(TDes &, const TUid &, const TUid &)

void ConvertUidToFileExtensionL ( TDes & aFileExtension,
const TUid & aFormat,
const TUid & aSubFormat
)

Parameters

TDes & aFileExtension
const TUid & aFormat
const TUid & aSubFormat

ConvertUidToMimeTypeL(TDes8 &, const TUid &, const TUid &)

void ConvertUidToMimeTypeL ( TDes8 & aMimeType,
const TUid & aFormat,
const TUid & aSubFormat
)

Parameters

TDes8 & aMimeType
const TUid & aFormat
const TUid & aSubFormat

CreateEffectL(TUid)

TEffect * CreateEffectL ( TUid aEffect ) [private]

Parameters

TUid aEffect

CreateInputL(CFbsBitmap &)

void CreateInputL ( CFbsBitmap & aBitmap )

Parameters

CFbsBitmap & aBitmap

CreateInputL(CImageFrame &)

void CreateInputL ( CImageFrame & aPixelBuffer )

Parameters

CImageFrame & aPixelBuffer

CreateInputL(const TSize &, const TRgb &)

void CreateInputL ( const TSize & aSize,
const TRgb & aColor
)

Parameters

const TSize & aSize
const TRgb & aColor

CurrentSizeL()

TSize CurrentSizeL ( ) const

EffectFactoryL(TUid, Plugin::MEffect *)

TEffect * EffectFactoryL ( TUid aEffect,
Plugin::MEffect * aPluginEffect
) [private]

Parameters

TUid aEffect
Plugin::MEffect * aPluginEffect

EffectL(TUid)

TEffect * EffectL ( TUid aEffect )

Parameters

TUid aEffect

Extension(TUid)

TAny * Extension ( TUid aExtension )

Parameters

TUid aExtension

FindEffect(TUid)

TEffect * FindEffect ( TUid aEffect ) const [private]

Parameters

TUid aEffect

FindPreview(TInt)

TPreview * FindPreview ( TInt aPreviewId ) const [private]

Parameters

TInt aPreviewId

InitializeFrameworkEffectsL()

void InitializeFrameworkEffectsL ( ) [private]

InitializeL(TUint64)

void InitializeL ( TUint64 aOptions )

Parameters

TUint64 aOptions

InputInfoL()

TInputInfo * InputInfoL ( )

InputUpdatedL()

void InputUpdatedL ( )

IsBusy(CImgProcessor::TState)

TBool IsBusy ( CImgProcessor::TState aState ) const

Parameters

CImgProcessor::TState aState

IsFrameworkEffect(TUid)

TBool IsFrameworkEffect ( TUid aEffect ) const [private]

Parameters

TUid aEffect

IsInputSet()

TBool IsInputSet ( ) const [inline]

IsOutputSet()

TBool IsOutputSet ( ) const [inline]

IsPluginEffect(TUid)

TBool IsPluginEffect ( TUid aEffect ) const [private]

Parameters

TUid aEffect

NewL(RFs &, CImgProcessor &, MImgProcessorObserver &, TUid)

CImageProcessorImpl * NewL ( RFs & aFileServerSession,
CImgProcessor & aImageProcessor,
MImgProcessorObserver & aObserver,
TUid aPluginUid
) [static]

Parameters

RFs & aFileServerSession
CImgProcessor & aImageProcessor
MImgProcessorObserver & aObserver
TUid aPluginUid

Options()

TUint64 Options ( ) const [inline]

OutputInfoL()

TOutputInfo * OutputInfoL ( )

OverlayInputDisplayModesL()

RArray < TDisplayMode > & OverlayInputDisplayModesL ( ) [inline]

OverlayInputFormatsL()

RArray < TUid > & OverlayInputFormatsL ( ) [inline]

OverlayInputImageFrameFormatsL()

RArray < TUid > & OverlayInputImageFrameFormatsL ( ) [inline]

OverlayL()

TOverlay * OverlayL ( )

PostEvent(TInt, TUid, TInt, TInt)

void PostEvent ( TInt aEventId,
TUid aUid,
TInt aId,
TInt aError
)

Parameters

TInt aEventId
TUid aUid
TInt aId
TInt aError

PreviewL(TInt)

TPreview * PreviewL ( TInt aPreviewId )

Parameters

TInt aPreviewId

PreviewOutputDisplayModesL()

RArray < TDisplayMode > & PreviewOutputDisplayModesL ( ) [inline]

PreviewOutputImageFrameFormatsL()

RArray < TUid > & PreviewOutputImageFrameFormatsL ( ) [inline]

ProcessEventL(TInt, TUid, TInt, TInt)

void ProcessEventL ( TInt aEventId,
TUid aUid,
TInt aId,
TInt aError
)

Parameters

TInt aEventId
TUid aUid
TInt aId
TInt aError

ProcessL(const TSize &, TBool)

void ProcessL ( const TSize & aSize,
TBool aMaintainAspectRatio
)

Parameters

const TSize & aSize
TBool aMaintainAspectRatio

ProgressInfoL()

TProgressInfo * ProgressInfoL ( )

RedoAllL()

void RedoAllL ( )

RedoL()

void RedoL ( )

ResetL()

void ResetL ( )

ResetOverlayDrmInput()

void ResetOverlayDrmInput ( ) [inline]

RestoreStateL()

void RestoreStateL ( )

SetBackgroundColorL(const TRgb &)

void SetBackgroundColorL ( const TRgb & aColor )

Parameters

const TRgb & aColor

SetInputL(const TDesC &, const TUid &, const TUid &)

void SetInputL ( const TDesC & aFilename,
const TUid & aFormat = KNullUid,
const TUid & aSubFormat = KNullUid
)

Parameters

const TDesC & aFilename
const TUid & aFormat = KNullUid
const TUid & aSubFormat = KNullUid

SetInputL(RFile &, const TUid &, const TUid &)

void SetInputL ( RFile & aFile,
const TUid & aFormat = KNullUid,
const TUid & aSubFormat = KNullUid
)

Parameters

RFile & aFile
const TUid & aFormat = KNullUid
const TUid & aSubFormat = KNullUid

SetInputL(TMMSource &, const TUid &, const TUid &)

void SetInputL ( TMMSource & aDrmFile,
const TUid & aFormat = KNullUid,
const TUid & aSubFormat = KNullUid
)

Parameters

TMMSource & aDrmFile
const TUid & aFormat = KNullUid
const TUid & aSubFormat = KNullUid

SetInputL(const TDesC8 &, const TUid &, const TUid &)

void SetInputL ( const TDesC8 & aBuffer,
const TUid & aFormat = KNullUid,
const TUid & aSubFormat = KNullUid
)

Parameters

const TDesC8 & aBuffer
const TUid & aFormat = KNullUid
const TUid & aSubFormat = KNullUid

SetInputL(const CFbsBitmap &, const CFbsBitmap *)

void SetInputL ( const CFbsBitmap & aBitmap,
const CFbsBitmap * aMask = NULL
)

Parameters

const CFbsBitmap & aBitmap
const CFbsBitmap * aMask = NULL

SetInputL(const CImageFrame &)

void SetInputL ( const CImageFrame & aPixelBuffer )

Parameters

const CImageFrame & aPixelBuffer

SetInputL(CImagePanorama &)

void SetInputL ( CImagePanorama & aPanorama )

Parameters

CImagePanorama & aPanorama

SetInputRectL(const TRect &)

void SetInputRectL ( const TRect & aRect )

Parameters

const TRect & aRect

SetOptionsL(TUint64)

void SetOptionsL ( TUint64 aOptions )

Parameters

TUint64 aOptions

SetOutputL(const TDesC &, const TUid &, const TUid &)

void SetOutputL ( const TDesC & aFilename,
const TUid & aFormat = KNullUid,
const TUid & aSubFormat = KNullUid
)

Parameters

const TDesC & aFilename
const TUid & aFormat = KNullUid
const TUid & aSubFormat = KNullUid

SetOutputL(RFile &, const TUid &, const TUid &)

void SetOutputL ( RFile & aFile,
const TUid & aFormat = KNullUid,
const TUid & aSubFormat = KNullUid
)

Parameters

RFile & aFile
const TUid & aFormat = KNullUid
const TUid & aSubFormat = KNullUid

SetOutputL(RBuf8 &, const TUid &, const TUid &)

void SetOutputL ( RBuf8 & aBuffer,
const TUid & aFormat = KNullUid,
const TUid & aSubFormat = KNullUid
)

Parameters

RBuf8 & aBuffer
const TUid & aFormat = KNullUid
const TUid & aSubFormat = KNullUid

SetOutputL(CImageFrame &)

void SetOutputL ( CImageFrame & aPixelBuffer )

Parameters

CImageFrame & aPixelBuffer

SetOutputL(CFbsBitmap &, CFbsBitmap *)

void SetOutputL ( CFbsBitmap & aBitmap,
CFbsBitmap * aMask = NULL
)

Parameters

CFbsBitmap & aBitmap
CFbsBitmap * aMask = NULL

SetOverlayDrmInput(CImageProcessorDrmInput *)

void SetOverlayDrmInput ( CImageProcessorDrmInput * aOverlayDrmInput ) [inline]

Parameters

CImageProcessorDrmInput * aOverlayDrmInput

SetStateL(CImgProcessor::TState)

void SetStateL ( CImgProcessor::TState aState )

Parameters

CImgProcessor::TState aState

State()

CImgProcessor::TState State ( ) const

SupportedEffectsL(RArray< TUid > &)

void SupportedEffectsL ( RArray < TUid > & aEffects ) const

Parameters

RArray < TUid > & aEffects

SupportedInputDisplayModesL(RArray< TDisplayMode > &)

void SupportedInputDisplayModesL ( RArray < TDisplayMode > & aDisplayModes ) const

Parameters

RArray < TDisplayMode > & aDisplayModes

SupportedInputFormatsL(RArray< TUid > &)

void SupportedInputFormatsL ( RArray < TUid > & aFormats ) const

Parameters

RArray < TUid > & aFormats

SupportedInputImageFrameFormatsL(RArray< TUid > &)

void SupportedInputImageFrameFormatsL ( RArray < TUid > & aFormats ) const

Parameters

RArray < TUid > & aFormats

SupportedInputSubFormatsL(TUid, RArray< TUid > &)

void SupportedInputSubFormatsL ( TUid aFormat,
RArray < TUid > & aSubFormats
) const

Parameters

TUid aFormat
RArray < TUid > & aSubFormats

SupportedOperations()

TUint SupportedOperations ( ) const

SupportedOptions()

TUint64 SupportedOptions ( ) const

SupportedOutputDisplayModesL(RArray< TDisplayMode > &)

void SupportedOutputDisplayModesL ( RArray < TDisplayMode > & aDisplayModes ) const

Parameters

RArray < TDisplayMode > & aDisplayModes

SupportedOutputFormatsL(RArray< TUid > &)

void SupportedOutputFormatsL ( RArray < TUid > & aFormats ) const

Parameters

RArray < TUid > & aFormats

SupportedOutputImageFrameFormatsL(RArray< TUid > &)

void SupportedOutputImageFrameFormatsL ( RArray < TUid > & aFormats ) const

Parameters

RArray < TUid > & aFormats

SupportedOutputSubFormatsL(TUid, RArray< TUid > &)

void SupportedOutputSubFormatsL ( TUid aFormat,
RArray < TUid > & aSubFormats
) const

Parameters

TUid aFormat
RArray < TUid > & aSubFormats

UndoAllL()

void UndoAllL ( )

UndoL()

void UndoL ( )

Member Data Documentation

CImageProcessorCallback * iCallbackHandler

CImageProcessorCallback * iCallbackHandler [private]

CImageProcessorDrmInput * iDrmInput

CImageProcessorDrmInput * iDrmInput [private]

RPointerArray< TEffect > iEffects

RPointerArray < TEffect > iEffects [private]

RFs & iFileServerSession

RFs & iFileServerSession [private]

RArray< TUid > iFrameworkEffects

RArray < TUid > iFrameworkEffects [private]

CImgProcessor & iImageProcessor

CImgProcessor & iImageProcessor [private]

RArray< TDisplayMode > iInputDisplayModes

RArray < TDisplayMode > iInputDisplayModes [private]

RArray< TUid > iInputFormats

RArray < TUid > iInputFormats [private]

RArray< TUid > iInputImageFrameFormats

RArray < TUid > iInputImageFrameFormats [private]

TInputInfo * iInputInfo

TInputInfo * iInputInfo [private]

TBool iIsInputSet

TBool iIsInputSet [private]

TBool iIsOutputSet

TBool iIsOutputSet [private]

TUint64 iOptions

TUint64 iOptions [private]

RArray< TDisplayMode > iOutputDisplayModes

RArray < TDisplayMode > iOutputDisplayModes [private]

RArray< TUid > iOutputFormats

RArray < TUid > iOutputFormats [private]

RArray< TUid > iOutputImageFrameFormats

RArray < TUid > iOutputImageFrameFormats [private]

TOutputInfo * iOutputInfo

TOutputInfo * iOutputInfo [private]

TOverlay * iOverlay

TOverlay * iOverlay [private]

CImageProcessorDrmInput * iOverlayDrmInput

CImageProcessorDrmInput * iOverlayDrmInput [private]

RPointerArray< CImageProcessorDrmInput > iOverlayDrmInputs

RPointerArray < CImageProcessorDrmInput > iOverlayDrmInputs [private]

RArray< TDisplayMode > iOverlayInputDisplayModes

RArray < TDisplayMode > iOverlayInputDisplayModes [private]

RArray< TUid > iOverlayInputFormats

RArray < TUid > iOverlayInputFormats [private]

RArray< TUid > iOverlayInputImageFrameFormats

RArray < TUid > iOverlayInputImageFrameFormats [private]

MImgProcessorPlugin * iPlugin

MImgProcessorPlugin * iPlugin [private]

TUid iPluginDtorKey

TUid iPluginDtorKey [private]

RArray< TUid > iPluginEffects

RArray < TUid > iPluginEffects [private]

TUid iPluginUid

TUid iPluginUid [private]

RArray< TDisplayMode > iPreviewOutputDisplayModes

RArray < TDisplayMode > iPreviewOutputDisplayModes [private]

RArray< TUid > iPreviewOutputImageFrameFormats

RArray < TUid > iPreviewOutputImageFrameFormats [private]

RPointerArray< TPreview > iPreviews

RPointerArray < TPreview > iPreviews [private]

CImgProcessor::TState iPreviousState

CImgProcessor::TState iPreviousState [private]

TProgressInfo * iProgressInfo

TProgressInfo * iProgressInfo [private]

CImgProcessor::TState iState

CImgProcessor::TState iState [private]

TUint iSupportedOperations

TUint iSupportedOperations [private]

TUint64 iSupportedOptions

TUint64 iSupportedOptions [private]

RFileExtensionMIMETypeArray iTypesUtilityArray

RFileExtensionMIMETypeArray iTypesUtilityArray [private]

const TBool iValidStates

const TBool iValidStates [private, static]