class CCamera::CCameraSnapshot::TSnapshotParameters |
Specifes the parameters necessary for client snapshots.
Public Member Functions | |
---|---|
TSnapshotParameters() | |
IMPORT_C TBool | IsAspectRatioMaintained() |
IMPORT_C void | SetAspectRatioState(TBool) |
IMPORT_C TUint | Size() |
IMPORT_C TUint | Version() |
Public Attributes | |
---|---|
CCamera::TFormat | iFormat |
TPoint | iPosition |
TSize | iSnapshotSize |
Private Attributes | |
---|---|
TUint | iIsAspectRatioMaintained |
TInt | iReserved1 |
TInt | iReserved2 |
TInt | iReserved3 |
TUint | iReserved4 |
TInt | iReserved5 |
TInt | iReserved6 |
TInt | iReserved7 |
TUint | iSize |
TUint | iVersion |
IMPORT_C | TSnapshotParameters | ( | ) |
Constructor for the TSnapshotParameters class. Sets the size and version of this class.
IMPORT_C TBool | IsAspectRatioMaintained | ( | ) | const |
Indicates whether the aspect ratio of the snapshot image has to maintained (if ETrue) or not (if EFalse) while scaling down.
CCamera::CCameraSnapshot::TSnapshotParameters::iIsAspectRatioMaintained
IMPORT_C void | SetAspectRatioState | ( | TBool | aIsAspectRatioMaintained | ) |
Sets the state to inform whether the aspect ratio of the snapshot image has to be maintained or not while scaling down.
CCamera::CCameraSnapshot::TSnapshotParameters::iIsAspectRatioMaintained
TBool aIsAspectRatioMaintained | ETrue implies must be maintained, EFalse otherwise. |
IMPORT_C TUint | Size | ( | ) | const |
Returns the size of the class. Used for extensibility by deriving from this base class and adding new member variables. Intended to be used for implementation of methods where this class reference is passed as function arguments. Implementation of such methods can find out the whether the actual class passed is base or the derived one. So, if a new application is made to run on an old implementation, an error may occur once the old implementation detects this by getting the size information of the T class passed. Also, if an old application is made to run on a new implementation, this can be corrrectly handled if the derived class variables handling is done in a proper 'if-else' statement.
The size will be modified when the T-class gets updated.
IMPORT_C TUint | Version | ( | ) | const |
Returns the version of the class. Used for extensibility specially when the class members are not added but the Reserved members get used at a later stage.
The version will be modified when the T-class gets updated.
TUint | iIsAspectRatioMaintained | [private] |
Set to ETrue if the aspect ratio of the snapshot image must be maintained when scaling down
TPoint | iPosition |
The top left corner position (in pixels) which determines the layout of the snapshot image within the dimensions provided by the iSnapshotSize parameter when the snapshot has been scaled maintaining its aspect ratio. ECam implementation is supposed to calculate the proportion between the top left corner and the snapshot size and hence use it, in case, the snapshot size used is different.
TSize | iSnapshotSize |
The size of the snapshot in pixels. The snapshot size may be changed by the implementation to meet hardware requirements, performance etc.
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.