class MCameraSnapshot |
This is a mixin class to be implemented by providers of the extension API for the camera snapshot.
This class is intended for sub classing by licensees only.
Public Member Functions | |
---|---|
TBool | IsSnapshotActive() |
void | PrepareSnapshotL(CCamera::TFormat, const TPoint &, const TSize &, const TRgb &, TBool) |
void | PrepareSnapshotL(CCamera::TFormat, const TSize &, TBool) |
void | Release() |
void | SetBgColorL(const TRgb &) |
void | SetPositionL(const TPoint &) |
MCameraBuffer & | SnapshotDataL(RArray< TInt > &) |
void | StartSnapshot() |
void | StopSnapshot() |
TUint32 | SupportedFormats() |
TBool | IsSnapshotActive | ( | ) | const [pure virtual] |
Use void MCameraSnapshot2::GetSnapshotStatusL(CCamera::CCameraSnapshot::TSnapshotState& aSnapshotState) const;
Determines if the snapshot feature is active.
void | PrepareSnapshotL | ( | CCamera::TFormat | aFormat, |
const TPoint & | aPosition, | |||
const TSize & | aSize, | |||
const TRgb & | aBgColor, | |||
TBool | aMaintainAspectRatio | |||
) | [pure virtual] |
Sets the properties of the snapshot data including the background colour and the position of the snapshot.
CCamera::TFormat aFormat | The image format that the snapshot must have. |
const TPoint & aPosition | The top left corner position (in pixels) which determines the layout of the snapshot image within the dimensions provided by the aSize parameter when the snapshot has been scaled maintaining its aspect ratio. See also SetPositionL(). |
const TSize & aSize | The size of the snapshot in pixels. |
const TRgb & aBgColor | The background colour to be used if the snapshot has been scaled (maintaining its aspect ratio) and does not fully fill the dimension provided by the aSize parameter. See also SetBgColorL(). |
TBool aMaintainAspectRatio | Set to ETrue if the aspect ratio of the snapshot image must be maintained when scaling down. |
void | PrepareSnapshotL | ( | CCamera::TFormat | aFormat, |
const TSize & | aSize, | |||
TBool | aMaintainAspectRatio | |||
) | [pure virtual] |
Sets the properties of the snapshot data, excluding the background colour and the position of the snapshot. This method can be used when the client wishes to determine the layout and background colour after the snapshot image has been generated. See also SetPositionL() and SetBgColorL().
CCamera::TFormat aFormat | The image format that the snapshot must have. |
const TSize & aSize | The size of the snapshot in pixels. |
TBool aMaintainAspectRatio | Set to ETrue if the aspect ratio of the snapshot image must be maintained when scaling down. |
void | Release | ( | ) | [pure virtual] |
Destroys the object of this class on the ECam implementation. This function is called from the destructor of CCamera::CCameraSnapshot.
void | SetBgColorL | ( | const TRgb & | aBgColor | ) | [pure virtual] |
Sets the background colour to be used if the snapshot has been scaled (maintaining its aspect ratio) and does not fully fill the snapshot size as specified in PrepareSnapshot().
const TRgb & aBgColor | The new background colour. |
void | SetPositionL | ( | const TPoint & | aPosition | ) | [pure virtual] |
Sets the top left corner position (in pixels), where the snapshot should be laid out after scaling down (maintaining its aspect ratio). The position is within the dimensions provided by the snapshot size specified in PrepareSnapshot().
const TPoint & aPosition | The top left corner position in pixels of the snapshot. |
MCameraBuffer & | SnapshotDataL | ( | RArray< TInt > & | aFrameIndexOrder | ) | [pure virtual] |
Use callbacks: MCaptureImageObserver::ClientSnapshotForImageReady and MCaptureVideoObserver:: ClientSnapshotReady
Returns the snapshot data from ECam implementation to the client.
The data is returned in an MCameraBuffer object. In the case where the driving mode returns more than one image (burst mode, bracket mode, etc.) the buffer contains several snapshots which may be returned in any order. The aFrameIndexOrder array provides the image sequence numbers in the order in which the snapshots for those images are returned within the MCameraBuffer.
void | StartSnapshot | ( | ) | [pure virtual] |
Use void MCameraSnapshot2::EnableSnapshotL();
Activates the snapshot feature. Calls to this method when the snapshot feature is already active will be ignored.
The client will not receive snapshot notifications until the snapshot feature is activated.
void | StopSnapshot | ( | ) | [pure virtual] |
Use void MCameraSnapshot2::DisableSnapshotL();
Deactivates the snapshot feature if it is active.
Once the snapshot has been deactivated, the client will no longer receive notifications about snapshots.
TUint32 | SupportedFormats | ( | ) | [pure virtual] |
Gets a list of camera formats for which the ECam implementation supports snapshots.
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.