MCameraClientViewFinder Class Reference

class MCameraClientViewFinder

Mixin class for implementation of camera client viewfinder.

Member Functions Documentation

CreateHistogramImplFactoryL(MImplementationFactory *&)

voidCreateHistogramImplFactoryL(MImplementationFactory *&aImplFactoryPtr)const [pure virtual]

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 *& aImplFactoryPtrThe concrete factory handle for the histogram implementation specific to the given view finder.

GetClientViewFinderPropertiesL(TInt &, CCamera::TFormat &, TSize &, TRect &)

voidGetClientViewFinderPropertiesL(TInt &aScreenNumber,
CCamera::TFormat &aImageFormat,
TSize &aSize,
TRect &aClipRect
)const [pure virtual]

Retrieves the parameters associated with the client viewfinder.

leave
May leave with any error code.

Parameters

TInt & aScreenNumberRetrieves the screen number on which the client viewfinder is supposed to run.
CCamera::TFormat & aImageFormatRetrieves the image format of the client viewfinder.
TSize & aSizeRetrieves the size used for the client viewfinder.
TRect & aClipRectRetrieves 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 &)

voidGetClientViewFinderStateL(TBool &aIsActive)const [pure virtual]

Retrieves the state of the client viewfinder.

leave
May leave with any error code.

Parameters

TBool & aIsActiveETrue indicates that client viewfinder is active. EFalse indicates that client viewfinder is not active.

GetImageProcessingImplFactoryL(MImplementationFactory *&)

voidGetImageProcessingImplFactoryL(MImplementationFactory *&aImplFactoryPtr)const [pure virtual]

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 *& aImplFactoryPtrThe concrete factory handle for the image processing implementation specific to the given view finder.

GetViewFinderBufferL(MCameraBuffer2 &)

voidGetViewFinderBufferL(MCameraBuffer2 &aClientViewFinderBuffer)const [pure virtual]

Retrieves the client viewfinder buffer. Client calls this method after being notified about availability of viewfinder data via MClientViewFinderObserver::ViewFinderBufferReady().

leave
May leave with any error code.

Parameters

MCameraBuffer2 & aClientViewFinderBufferReference to MCameraBuffer2 which retrieves the client viewfinder data.

Release(CCamera::CCameraClientViewFinder *)

voidRelease(CCamera::CCameraClientViewFinder *aClientViewFinderHandle)[pure virtual]

Releases the interface.

Parameters

CCamera::CCameraClientViewFinder * aClientViewFinderHandleThe pointer to the client viewfinder class object which would be destroyed by the client.

SetClientViewFinderHandle(CCamera::CCameraClientViewFinder *)

voidSetClientViewFinderHandle(CCamera::CCameraClientViewFinder *aClientViewFinderHandle)[pure virtual]

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

Parameters

CCamera::CCameraClientViewFinder * aClientViewFinderHandle

SetClientViewFinderObserver(MClientViewFinderObserver &)

voidSetClientViewFinderObserver(MClientViewFinderObserver &aClientViewFinderObserver)[pure virtual]

The observer for the client view finder is passed to the implementation for passing callbacks on it.

Parameters

MClientViewFinderObserver & aClientViewFinderObserverThe reference to the client view finder observer.

StartClientViewFinderL(TInt, CCamera::TFormat, TSize &)

voidStartClientViewFinderL(TIntaScreenNumber,
CCamera::TFormataImageFormat,
TSize &aSize
)[pure virtual]

Creates a new viewfinder and starts transfer of view finder data.

Availability of viewfinder data is notified by MClientViewFinderObserver::ViewFinderBufferReady().

leave
May leave with any error code.
Note:

KECamDefaultViewFinderHandle is used to refer to the viewfinder started using CCamera methods.

CCamera::StartViewFinderL(TFormat aImageFormat,TSize& aSize)

Parameters

TInt aScreenNumberThe screen number on which the client viewfinder is supposed to run.
CCamera::TFormat aImageFormatThe image format requested by the client.
TSize & aSizeOn 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 &)

voidStartClientViewFinderL(TIntaScreenNumber,
CCamera::TFormataImageFormat,
TSize &aSize,
TRect &aClipRect
)[pure virtual]

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.

leave
May leave with any error code.
Note:

KECamDefaultViewFinderHandle is used to refer viewfinder started using CCamera methods.

CCamera::StartViewFinderL(TFormat aImageFormat,TSize& aSize,TRect& aClipRect)

Parameters

TInt aScreenNumberThe screen number on which the client viewfinder is supposed to run.
CCamera::TFormat aImageFormatThe image format.
TSize & aSizeOn return, the size used. The size may be modified by the implementation because of hardware constraints and byte alignment.
TRect & aClipRectRequired clip rectangle. May be modified if, for example, the camera only supports certain byte alignments.

StopClientViewFinder()

voidStopClientViewFinder()[pure virtual]

Stop the client viewfinder.