CCamera::CCameraDirectSnapshot::TDirectSnapshotParameters Class Reference

class CCamera::CCameraDirectSnapshot::TDirectSnapshotParameters

Specifes the parameters necessary for direct snapshots. The screen co-ordinates used for direct snapshot will be the same as used for the parent direct viewfinder screen co-ordinates. This screen co-ordinate for direct snapshot may be changed by the implementation in certain cases for alignment.

Constructor & Destructor Documentation

TDirectSnapshotParameters()

IMPORT_CTDirectSnapshotParameters()

Constructor for the TDirectSnapshotParameters class. Sets the size and version of this class.

Member Functions Documentation

IsAspectRatioMaintained()

IMPORT_C TBoolIsAspectRatioMaintained()const

Indicates whether the aspect ratio of the direct snapshot image has to maintained (if ETrue) or not (if EFalse) while scaling down.

CCamera::CCameraDirectSnapshot::TDirectSnapshotParameters::iIsAspectRatioMaintained

SetAspectRatioState(TBool)

IMPORT_C voidSetAspectRatioState(TBoolaIsAspectRatioMaintained)

Sets the state to inform whether the aspect ratio of the direct snapshot image has to be maintained or not while scaling down.

CCamera::CCameraDirectSnapshot::TDirectSnapshotParameters::iIsAspectRatioMaintained

Parameters

TBool aIsAspectRatioMaintainedETrue implies must be maintained, EFalse otherwise.

Size()

IMPORT_C TUintSize()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 old application is made to run on a new implementation, this can be handled correctly if the derived class variables handling is done in a proper 'if-else' statement.

Note:

The size will be modified when the T-class gets updated.

Version()

IMPORT_C TUintVersion()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.

Note:

The version will be modified when the T-class gets updated.

Member Data Documentation

TRgb iBgColor

TRgb iBgColor

The background colour to be used if the snapshot has been scaled (maintaining its aspect ratio) and does not fully fill the dimension as per the direct view finder screen size. The TRect supposed to be used for direct snapshot may be modified by the implementation in certain cases for alignment.

TTimeIntervalMicroSeconds32 iDisplayTime

TTimeIntervalMicroSeconds32 iDisplayTime

The time duration during which the snapshot data should appear on the screen. The implementation may internally change this display time if the client sets iDisplayTime to TTimeIntervalMicroSeconds32 (KECamSnapshotDefaultDisplayTime). This may happen when the client doesn't want to specify a specific duration and would rather let the implementation decide.

TUint iDriveModes

TUint iDriveModes

The bit field representing the drive modes for which the direct snapshot will be displayed if enabled. Refer CCamera::CCameraAdvancedSettings::TDriveMode.

TUint iIsAspectRatioMaintained

TUint iIsAspectRatioMaintained[private]

Set to ETrue if the aspect ratio of the direct snapshot image must be maintained when scaling down

TInt iReserved1

TInt iReserved1[private]

TInt iReserved2

TInt iReserved2[private]

TInt iReserved3

TInt iReserved3[private]

TUint iReserved4

TUint iReserved4[private]

TUint iSize

TUint iSize[private]

TUint iVersion

TUint iVersion[private]