MCameraClientViewFinder Class Reference
class MCameraClientViewFinder |
Mixin class for implementation of camera client viewfinder.
Member Functions Documentation
CreateHistogramImplFactoryL(MImplementationFactory *&)
Retrieves the concrete factory handle for the histogram implementation in order to use it specifically for a particular viewfinder.
-
leave
- May leave with any error code.
Parameters
MImplementationFactory *& aImplFactoryPtr | The concrete factory handle for the histogram implementation specific to the given view finder. |
GetClientViewFinderPropertiesL(TInt &, CCamera::TFormat &, TSize &, TRect &)
Retrieves the parameters associated with the client viewfinder.
-
leave
- May leave with any error code.
Parameters
TInt & aScreenNumber | Retrieves the screen number on which the client viewfinder is supposed to run. |
CCamera::TFormat & aImageFormat | Retrieves the image format of the client viewfinder. |
TSize & aSize | Retrieves the size used for the client viewfinder. |
TRect & aClipRect | Retrieves the clip rectangle. If not specified, the clipping is retrieved as a TRect having origin as top left corner and the size as 'aSize'. |
GetClientViewFinderStateL(TBool &)
void | GetClientViewFinderStateL | ( | TBool & | aIsActive | ) | const [pure virtual] |
Retrieves the state of the client viewfinder.
-
leave
- May leave with any error code.
Parameters
TBool & aIsActive | ETrue indicates that client viewfinder is active. EFalse indicates that client viewfinder is not active. |
GetImageProcessingImplFactoryL(MImplementationFactory *&)
Retrieves the concrete factory handle for the image processing implementation in order to use it specifically for a particular viewfinder.
-
leave
- May leave with any error code.
Parameters
MImplementationFactory *& aImplFactoryPtr | The concrete factory handle for the image processing implementation specific to the given view finder. |
GetViewFinderBufferL(MCameraBuffer2 &)
void | GetViewFinderBufferL | ( | MCameraBuffer2 & | aClientViewFinderBuffer | ) | const [pure virtual] |
Parameters
MCameraBuffer2 & aClientViewFinderBuffer | Reference to MCameraBuffer2 which retrieves the client viewfinder data. |
Release(CCamera::CCameraClientViewFinder *)
SetClientViewFinderHandle(CCamera::CCameraClientViewFinder *)
The pointer to the client view finder class used to pass back to the client via observer callbacks. Implementation is not supposed to destroy this object.
MClientViewFinderObserver
SetClientViewFinderObserver(MClientViewFinderObserver &)
The observer for the client view finder is passed to the implementation for passing callbacks on it.
StartClientViewFinderL(TInt, CCamera::TFormat, TSize &)
Parameters
TInt aScreenNumber | The screen number on which the client viewfinder is supposed to run. |
CCamera::TFormat aImageFormat | The image format requested by the client. |
TSize & aSize | On return, the size used. The size may be modified by the implementation because of hardware constraints and byte alignment. |
StartClientViewFinderL(TInt, CCamera::TFormat, TSize &, TRect &)
Creates a new viewfinder and starts transfer of view finder data. Also, clips the picture to the specified clip rectangle.
Availability of viewfinder data is notified by MClientViewFinderObserver::ViewFinderBufferReady().
The picture is the size of the intersection of aSize and aClipRect, not simply aSize padded with white space.
Parameters
TInt aScreenNumber | The screen number on which the client viewfinder is supposed to run. |
CCamera::TFormat aImageFormat | The image format. |
TSize & aSize | On return, the size used. The size may be modified by the implementation because of hardware constraints and byte alignment. |
TRect & aClipRect | Required clip rectangle. May be modified if, for example, the camera only supports certain byte alignments. |
StopClientViewFinder()
void | StopClientViewFinder | ( | ) | [pure virtual] |
Stop the client viewfinder.
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.