MCameraOverlay Class Reference
This is a mixin class to be implemented by providers of the camera extension API for image overlays.
Member Functions Documentation
CreateOverlayL(const CCamera::CCameraOverlay::TOverlayParameters &, CFbsBitmap *)
Creates an image overlay object on the ECam implementation, returning a handle to the newly created object.
-
leave
-
KErrNoMemory if out of memory; also any system wide error.
-
leave
-
KErrArgument if the member variables in TOverlayParameters are such that they create mutual exclusion.
Parameters
const
CCamera::CCameraOverlay::TOverlayParameters
& aParameters
|
The parameters characterizing the overlay to be created.
|
CFbsBitmap * aBitmap
|
The image that is to become the overlay. By default this is set to NULL, allowing the client to provide the image at some point after the overlay object has been created, by using SetOverlayBitmapL().
|
GetAllOverlaysInZOrderL(RArray< TUint > &)
void
|
GetAllOverlaysInZOrderL
|
(
|
RArray
<
TUint
> &
|
aOverlayHandles
|
)
|
[pure virtual]
|
Gets all the overlay handles maintained by the ECam implementation, in order of their Z-Value.
-
leave
-
KErrNoMemory if out of memory; also any system wide error.
Parameters
RArray
<
TUint
> & aOverlayHandles
|
Returned list, in Z-Value order, of all the overlay handles maintained on the ECam implementation. The topmost overlay is the first element of the array.
|
GetOverlayBitmapL(TUint, CFbsBitmap *)
void
|
GetOverlayBitmapL
|
(
|
TUint
|
aOverlayHandle,
|
|
CFbsBitmap *
|
aBitmap
|
|
)
|
[pure virtual]
|
Gets the overlay image data for a specified overlay.
-
leave
-
KErrArgument if aOverlayHandle is out of range; also any system wide error.
-
leave
-
KErrNotSupported if a sharing client (which did not create the given overlay) tries to retrieve the overlay bitmap and the implementation may not be interested in providing the overlay.
Note:
The ECam implementation will transfer the ownership of the aBitmap to the client.
Parameters
TUint
aOverlayHandle
|
The handle of the overlay whose overlay image data is to be obtained.
|
CFbsBitmap * aBitmap
|
A CFbsBitmap that will receive the returned image data for the overlay.
|
GetOverlayParametersL(TUint, CCamera::CCameraOverlay::TOverlayParameters &)
Gets the parameters that characterize a given overlay.
-
leave
-
KErrArgument if aOverlayHandle is out of range; also any system wide error.
GetOverlaySupport(CCamera::CCameraOverlay::TOverlaySupportInfo &)
Gets information on the overlay functionality supported by the ECam implementation.
Release()
void
|
Release
|
(
|
)
|
[pure virtual]
|
Releases and destroys all overlay handles on the ECam implementation. This function is called from the destructor of
CCamera::CCameraOverlay
.
ReleaseOverlay(TUint)
void
|
ReleaseOverlay
|
(
|
TUint
|
aOverlayHandle
|
)
|
[pure virtual]
|
Releases the specified overlay handle.
Note:
If the handle specified in aOverlayHandle is invalid (out of range) the function call is ignored and no error is reported.
Parameters
TUint
aOverlayHandle
|
The handle of the overlay that is to be released.
|
SetAllOverlaysInZOrderL(const RArray< TUint > &)
void
|
SetAllOverlaysInZOrderL
|
(
|
const
RArray
<
TUint
> &
|
aOverlayHandles
|
)
|
[pure virtual]
|
Sets Z-Order of all the overlay handles known by this CCameraOverlay object.
-
leave
-
KErrNoMemory if out of memory; also any system wide error.
Parameters
const
RArray
<
TUint
> & aOverlayHandles
|
The overlay handles in aOverlayHandles array. This must be the complete current set of handles known to this CCameraOverlay object. The client specifies the desired order by placing the topmost overlay in the first element of the array.
|
SetOverlayBitmapL(TUint, const CFbsBitmap *)
void
|
SetOverlayBitmapL
|
(
|
TUint
|
aOverlayHandle,
|
|
const CFbsBitmap *
|
aBitmap
|
|
)
|
[pure virtual]
|
Allows the overlay image data to be changed for a specified overlay. Use this function to set the overlay image data if it was not specified when the overlay was created using
CreateOverlayL()
.
-
leave
-
KErrArgument if aOverlayHandle is out of range; also any system wide error.
Note:
Once this method is called, overlay size should not be changed for the given overlay. Hence, SetOverlayParametersL should not be called after this method.
Parameters
TUint
aOverlayHandle
|
The handle of the overlay whose overlay image data is to be changed.
|
const CFbsBitmap * aBitmap
|
The new image data for the overlay.
|
SetOverlayParametersL(TUint, const CCamera::CCameraOverlay::TOverlayParameters &)
Sets new parameters that characterize a given overlay.
-
leave
-
KErrNotSupported if TOverlayCameraMode passed in TOverlayParameters is not supported; also any system wide error.
-
leave
-
KErrArgument if the member variables in TOverlayParameters are such that they create mutual exclusion.
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.