CEngineWrapper Class Reference
class CEngineWrapper : public CBase |
CEngineWrapper wraps functionality of Gonzales image processing engine architecture.
?good_class_usage_example(s)
EngineWrapper.lib
- Since
- S60 v5.0
Constructor & Destructor Documentation
CEngineWrapper()
CEngineWrapper | ( | ) | [private] |
~CEngineWrapper()
IMPORT_C | ~CEngineWrapper | ( | ) | |
Member Functions Documentation
AddFilterL(const TDesC &)
IMPORT_C void | AddFilterL | ( | const TDesC & | aFilterName | ) | |
Adds new filter to the engine.
Parameters
const TDesC & aFilterName | filter plug-in name |
AddRotateFilterL()
void | AddRotateFilterL | ( | ) | [private] |
Adds rotation filter to the engine.
AddUndoRedoStepL()
IMPORT_C void | AddUndoRedoStepL | ( | ) | |
Sets a new undo / redo step.
CanUndo()
Checks if it is possible to undo.
Cleanup()
Cleans up the engine, frees allocated memory. Does not delete the engine itself.
ComputeBoundingRectL()
void | ComputeBoundingRectL | ( | ) | [private] |
Computes bounding rectangle used from global cropping.
ComputeNewPanValue(const TRect &)
TPoint
| ComputeNewPanValue | ( | const TRect & | aVvpOld | ) | [private] |
Parameters
const TRect & aVvpOld | the old visible view port area |
ComputeRotationL()
TInt
| ComputeRotationL | ( | ) | [private] |
Computes current total rotation of the original image in degrees.
ComputeSystemParameters()
void | ComputeSystemParameters | ( | ) | [private] |
Computes current system parameters.
ComputeViewPort(const TInt)
TRect
| ComputeViewPort | ( | const TInt | aStartInd = 2 | ) | [private] |
Parameters
const TInt aStartInd = 2 | view port start index, defaults to 2 |
ComputeVisibleViewPort(const TRect &)
TRect
| ComputeVisibleViewPort | ( | const TRect & | aViewPort | ) | [private] |
Parameters
const TRect & aViewPort | the current view port |
ConstructL()
void | ConstructL | ( | ) | [private] |
CopyBufferL(TUint32 *)
void | CopyBufferL | ( | TUint32 * | aBuffer | ) | [private] |
Copies rendered buffer from engine to screen bitmap.
Parameters
TUint32 * aBuffer | pointer to engine buffer data |
CreateExifThumbNailL()
IMPORT_C void | CreateExifThumbNailL | ( | ) | |
Creates new EXIF thumbnail from the current filter stack.
CreateIclSourceL(const TDesC &)
IMPORT_C void | CreateIclSourceL | ( | const TDesC & | aFileName | ) | |
Creates ICL source to engine.
Parameters
const TDesC & aFileName | source image file name |
CreateJpegSourceL(const TDesC &)
IMPORT_C void | CreateJpegSourceL | ( | const TDesC & | aFileName | ) | |
Creates JPEG source to engine.
Parameters
const TDesC & aFileName | source image file name |
CreateJpegTargetL(const TDesC &, const TInt, const TSize *)
IMPORT_C void | CreateJpegTargetL | ( | const TDesC & | aFileName, |
| const TInt | aQuality, |
| const TSize * | aSize = NULL |
| ) | |
Creates JPEG target for engine.
Parameters
const TDesC & aFileName | saved image file name |
const TInt aQuality | saved image quality |
const TSize * aSize = NULL | image size (width and height) |
CreateRGB888TargetL()
IMPORT_C void | CreateRGB888TargetL | ( | ) | |
Creates RGB888 buffer target to engine.
FileExists(TDes &)
TInt
| FileExists | ( | TDes & | aFileName | ) | const [private] |
Checks if a file exists or not, on return has the correct path to the checked file.
Parameters
TDes & aFileName | file name, on return includes the correct path |
GetCurrentDateTime(TDes8 &)
void | GetCurrentDateTime | ( | TDes8 & | aDateTimeBuf | ) | const [private] |
Gets current date and time as descriptor.
Parameters
TDes8 & aDateTimeBuf | contains datetime on return |
GetOutputImageSize(TInt &, TInt &)
IMPORT_C void | GetOutputImageSize | ( | TInt & | aWidth, |
| TInt & | aHeight |
| ) | const |
Parameters
TInt & aWidth | width of the output image in pixels |
TInt & aHeight | height of the output image in pixels |
GetZoomMode()
GetZoomMode Returns current zoom mode.
InitUndoRedo()
IMPORT_C void | InitUndoRedo | ( | ) | |
Initializes undo / redo stack.
IsImageChanged()
IMPORT_C TBool | IsImageChanged | ( | ) | |
Checks if the image is changed after last saving.
IsSameString(const TUint8 *, const TUint8 *)
Checks if two strings are equal.
Parameters
const TUint8 * aString1 | first string to be compared |
const TUint8 * aString2 | second string to be compared |
PanL(TInt, TInt)
IMPORT_C void | PanL | ( | TInt | aXChange, |
| TInt | aYChange |
| ) | |
Pans the image. Used when panning is done with touch
Parameters
TInt aXChange | x-directional change on the screen |
TInt aYChange | y-directional change on the screen |
RenderAbortL()
IMPORT_C void | RenderAbortL | ( | ) | |
RenderBlockL()
IMPORT_C TInt | RenderBlockL | ( | ) | |
RenderL(TInt *)
IMPORT_C void | RenderL | ( | TInt * | aMultiSessionBlockCount = NULL | ) | |
Renders the engine graph.
Parameters
TInt * aMultiSessionBlockCount = NULL | not used |
RestoreZoomL()
IMPORT_C void | RestoreZoomL | ( | ) | |
Restores stored zoom value.
RotateL(const TRotation)
Parameters
const TRotation aRot | rotation direction, see commodefs.h |
SetBitmap(CFbsBitmap *)
Sets the bitmap to member variable.
SetJpegCommentL(const TDesC8 &)
IMPORT_C void | SetJpegCommentL | ( | const TDesC8 & | aComment | ) | |
Parameters
const TDesC8 & aComment | comment to be set |
SetParamsL(const TDesC &)
IMPORT_C void | SetParamsL | ( | const TDesC & | aParam | ) | |
Sets filter parameters for the last (top) filter.
Parameters
const TDesC & aParam | reference to parameter structure |
SetScreenSizeL(const TSize &)
IMPORT_C void | SetScreenSizeL | ( | const TSize & | aSize | ) | |
Sets screen size to engine.
Parameters
const TSize & aSize | screen size |
StoreZoomL()
IMPORT_C void | StoreZoomL | ( | ) | |
Stores current zoom value.
UndoL()
Undoes the last operation.
UpdateCropRectL()
void | UpdateCropRectL | ( | ) | [private] |
Updates scale and pan to crop rectangle.
UpdateExifTagsL()
void | UpdateExifTagsL | ( | ) | [private] |
Handles tags that are always updated to the new image. If tags do not exist, creates new ones.
UpdateExifThumbnailL()
TPtrC8
| UpdateExifThumbnailL | ( | ) | [private] |
Updates thumbnail data to EXIF parser.
ZoomL(const TZoom)
IMPORT_C void | ZoomL | ( | const TZoom | aZoom | ) | |
Parameters
const TZoom aZoom | zoom direction |
Member Enumerations Documentation
Enum TRenderingMode
Enumerators
ERenderingModeMin = 0 | |
ERenderingModeJpeg | |
ERenderingModeRGB888 | |
ERenderingModeMax | |
Member Data Documentation
TRect
iBoundingRect
TRect
| iBoundingRect | [private] |
TInt
iChangeCount
TInt
| iChangeCount | [private] |
Change counter, 0 if no changes after save
CExifParser * iExifParser
CExifParser * | iExifParser | [private] |
CFilterStack * iMainEngine
CFilterStack * | iMainEngine | [private] |
enum CEngineWrapper::TRenderingMode iMode
TRect
iOldCropRect
TRect
| iOldCropRect | [private] |
TInt
iPrevChangeCount
TInt
| iPrevChangeCount | [private] |
TBool
iRenderScaleBuffer
TBool
| iRenderScaleBuffer | [private] |
RArray< TReal > iScaleUndoBuf
Undo buffer for scale parameter
CFbsBitmap * iScreenBitmap
TSize
iScreenSize
TSize
| iScreenSize | [private] |
TSize
iSourceSize
TSize
| iSourceSize | [private] |
CSystemParameters * iSysPars
TSize
iThumbSize
TSize
| iThumbSize | [private] |
EXIF thumbnail dimensions
RArray< TInt > iUndoPoints
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.