CCaeEngine Class Reference

class CCaeEngine : public CBase

The Camera Application Engine interface (abstract base class).

CAEENGINE.LIB
Since
2.1

Inherits from

Public Member Functions
TInt Brightness()
TInt CCameraHandle()
IMPORT_C TIntCamerasAvailable()
voidCancelCaptureStill()
voidCaptureStill()
voidCloseVideoRecording()
TInt Contrast()
TAny *CustomInterface(TUid)
voidDisableVideoRecording()
voidEnableVideoRecording()
voidEnumerateStillCaptureSizes(TSize &, TInt, CCamera::TFormat)
TInt EnumerateVideoFrameSizeL(const TSize &)
TInt EstimatedStillSizeInBytes(TInt)
TInt EstimatedVideoRecordingBitRateL(TInt)
TInt EvCompensation()
CCamera::TExposure ExposureMode()
CCamera::TFlash FlashMode()
voidGetInfo(TCamAppEngineInfo &)
voidGetOrderL(RCaeOrderedFeatureList &)
voidGetStillFrameSize(TInt, TSize &)
voidGetVideoFrameSize(TInt, TSize &)
voidGetViewFinderSize(TSize &)
voidInitL(TBool)
voidInitL(TUid, TBool)
voidInitVideoRecorderL()
voidInitVideoRecorderL(TUid)
TBool IsVideoRecording()
TBool IsViewFinding()
TInt JpegQuality()
IMPORT_C CCaeEngine *NewL()
IMPORT_C CCaeEngine *NewL(TInt)
IMPORT_C CCaeEngine *NewL(TInt, TInt)
voidPauseVideoRecording()
voidPowerOff()
voidPowerOn()
voidPrepareStillCaptureL(TInt)
voidPrepareStillCaptureL(TInt, const TRect &)
voidPrepareStillCaptureL(const TSize &, CCamera::TFormat, TInt)
voidPrepareStillCaptureL(const TSize &, CCamera::TFormat, TInt, const TRect &)
voidPrepareStillCaptureL(TInt, TSize &)
voidPrepareStillCaptureL(const TSize &, CCamera::TFormat, TInt, const TRect &, TSize &)
voidPrepareVideoRecordingL(TInt)
voidPrepareVideoRecordingL(const TSize &, TReal32, TInt, TBool, const TDesC8 &, const TDesC &, const TDesC8 &, const TDesC8 &)
voidPrepareVideoRecordingL(const TSize &, TReal32, TInt, TBool, TInt, const TDesC8 &, const TDesC &, const TDesC8 &, const TDesC8 &)
voidProcessExtCancel()
voidProcessExtCapturedImageL(CFbsBitmap &, TBool)
voidProcessExtCapturedImageL(HBufC8 *, TBool)
voidProcessExtCapturedImageL(TDesC8 &, TBool)
voidProcessExtSnapImageL(CFbsBitmap &)
voidProcessExtViewFinderFrameReadyL(CFbsBitmap &)
voidRelease()
TTimeIntervalMicroSeconds RemainingVideoRecordingTime()
voidReserve()
voidResetToDefaultsL()
voidResumeVideoRecording()
TInt SetAsyncVideoStopMode(TBool)
voidSetBrightnessL(TInt)
voidSetCaeExtensionModeL(TBool, TBool)
voidSetCaeStillBurstObserver(MCaeStillBurstObserver &)
voidSetCamAppEngineObserver(MCamAppEngineObserver &)
voidSetContrastL(TInt)
voidSetEvCompensationL(TInt)
voidSetExposureModeL(CCamera::TExposure)
voidSetFlashModeL(CCamera::TFlash)
voidSetImageCodecsL(TUid, TUid)
voidSetJpegQuality(TInt)
voidSetOrderL(const RCaeOrderedFeatureList &)
voidSetSkippedExtensionList(RCaeOrderedFeatureList &)
voidSetSnapImageColorMode(TDisplayMode)
voidSetSnapImageCreation(TBool)
voidSetSnapImageSizeL(TSize &)
voidSetSnapImageSourceL(TSnapImageSource)
voidSetStillBurstCaptureIntervalL(TTimeIntervalMicroSeconds)
TInt SetStillCaptureImageCountL(TInt)
voidSetVideoAudioL(TBool)
voidSetVideoClipMaxSizeL(TInt)
voidSetVideoRecordingFileNameL(const TDesC &)
voidSetVideoTimesIntervalL(TTimeIntervalMicroSeconds)
voidSetViewFinderMirrorL(TBool)
voidSetWhiteBalanceModeL(CCamera::TWhiteBalance)
voidSetZoomModeL(TZoomMode)
voidSetZoomValueL(TInt)
voidSkippedExtensionListL(RCaeOrderedFeatureList &)
voidStartVideoRecording()
voidStartViewFinderBitmapsL(TSize &)
voidStartViewFinderBitmapsL(TSize &, TRect &)
voidStartViewFinderDirectL(RWsSession &, CWsScreenDevice &, RWindowBase &, TRect &)
voidStartViewFinderDirectL(RWsSession &, CWsScreenDevice &, RWindowBase &, TRect &, TRect &)
TTimeIntervalMicroSeconds StillBurstCaptureInterval()
TInt StillCaptureImageCount()
TInt StillQualityIndex()
voidStopStillBurstCapture()
voidStopVideoRecording()
voidStopViewFinder()
TBool VideoAudio()
TInt VideoClipMaxSize()
TReal32 VideoFrameRate(TInt)
TInt VideoQualityIndex()
TTimeIntervalMicroSeconds VideoTimesInterval()
TBool ViewFinderMirror()
CCamera::TWhiteBalance WhiteBalanceMode()
TZoomMode ZoomMode()
TInt ZoomValue()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTOperationMode { EOperationModeStill = 0x00, EOperationModeVideo = 0x01 }
enumTSnapImageSource { ESnapImageSourceOriginal, ESnapImageSourceThumbnail }
enumTViewFinder { EViewFinderBitmaps = 0x00, EViewFinderDirect = 0x01 }
enumTZoomMode { EZoomModeDigital = 0x00, EZoomModeOptical = 0x01, EZoomModeOpticalDigital = 0x02 }

Member Functions Documentation

Brightness()

TInt Brightness()const [pure virtual]
Gets the current brightness setting.
Since
2.1

CCameraHandle()

TInt CCameraHandle()const [pure virtual]
Gets the device-unique handle of camera object owned by the CCaeEngine.
Since
3.2

CamerasAvailable()

IMPORT_C TIntCamerasAvailable()[static]
Gets the number of cameras on the device.
Since
2.6

CancelCaptureStill()

voidCancelCaptureStill()[pure virtual]
Cancels the on-going still image (single/burst) capture request.
Since
2.1

CaptureStill()

voidCaptureStill()[pure virtual]
Captures a still image or a still image burst. Calls first observer method McaeoSnapImageReady() and then McaeoStillImageReady(). McaeoSnapImageReady() is not called if engine initialization has been done with parameter aCreateSnapImage == EFalse.
Since
2.1

CloseVideoRecording()

voidCloseVideoRecording()[pure virtual]
Closes (prepared) video recording to free resources.
Since
2.1

Contrast()

TInt Contrast()const [pure virtual]
Gets the current contrast setting.
Since
2.1

CustomInterface(TUid)

TAny *CustomInterface(TUidaInterface)[pure virtual]
Gets a custom interface. The client has to cast the returned pointer.
Since
2.6

Parameters

TUid aInterface

DisableVideoRecording()

voidDisableVideoRecording()[pure virtual]
Set CamAppEngine internal camera state to released and power state off.
Since
3.2

EnableVideoRecording()

voidEnableVideoRecording()[pure virtual]
Set CamAppEngine internal camera state to reserved and power state on. This method is used when client uses Camera-API directly through the duplicate instance in still mode, but wants to use CAE in video recording mode without using the CAE InitL.
Since
3.2

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

voidEnumerateStillCaptureSizes(TSize &aSize,
TIntaSizeIndex,
CCamera::TFormataFormat
)const [pure virtual]
Enumerates through the available image capture sizes. Returns the image size based on the specified size index and format. The largest image resolution is returned for index 0, the smallest for index TCamAppEngineInfo::iNumImageSizesSupported-1. The size index must be in the range 0 to TCamAppEngineInfo::iNumImageSizesSupported-1 inclusive.
Since
2.6

Parameters

TSize & aSizeReturned image size.
TInt aSizeIndexSize index.
CCamera::TFormat aFormatThe image format.

EnumerateVideoFrameSizeL(const TSize &)

TInt EnumerateVideoFrameSizeL(const TSize &aSize)[pure virtual]
Enumerate Video Frame Size.
Since
3.2

Parameters

const TSize & aSizeenumerated size

EstimatedStillSizeInBytes(TInt)

TInt EstimatedStillSizeInBytes(TIntaStillQualityIndex)const [pure virtual]
Gets the estimated still image size in bytes for the specified quality level.
Since
2.1

Parameters

TInt aStillQualityIndexStill capture quality index.

EstimatedVideoRecordingBitRateL(TInt)

TInt EstimatedVideoRecordingBitRateL(TIntaVideoQualityIndex)const [pure virtual]
Gets the estimated video recording bit rate including audio bit rate for the specified video quality level.
Since
2.1

Parameters

TInt aVideoQualityIndexVideo quality level index.

EvCompensation()

TInt EvCompensation()const [pure virtual]
Gets the current exposure value (EV) compensation index.
Since
2.1

ExposureMode()

CCamera::TExposure ExposureMode()const [pure virtual]
Gets the current exposure mode.
Since
2.1

FlashMode()

CCamera::TFlash FlashMode()const [pure virtual]
Gets the current flash mode.
Since
2.1

GetInfo(TCamAppEngineInfo &)

voidGetInfo(TCamAppEngineInfo &aInfo)const [pure virtual]
Gets information about the supported Camera Application Engine and Camera features.
Since
2.1

Parameters

TCamAppEngineInfo & aInfoInfo about supported features.

GetOrderL(RCaeOrderedFeatureList &)

voidGetOrderL(RCaeOrderedFeatureList &aOrderedFeatureList)[pure virtual]
Gets array of features per interfaces. Each feature is ordered in the current calling order e.g. when certain image prosessing operation is applied to the captured image. If SetOrder() has not yet been called, the returned order is the default order.
Since
2.8

Parameters

RCaeOrderedFeatureList & aOrderedFeatureList

GetStillFrameSize(TInt, TSize &)

voidGetStillFrameSize(TIntaStillQualityIndex,
TSize &aSize
)const [pure virtual]
Gets the still image frame size for the specified quality level.
Since
2.1

Parameters

TInt aStillQualityIndexStill capture quality index.
TSize & aSizeStill image frame size.

GetVideoFrameSize(TInt, TSize &)

voidGetVideoFrameSize(TIntaVideoQualityIndex,
TSize &aSize
)const [pure virtual]
Gets the video frame size for the specified video quality level.
Since
2.1

Parameters

TInt aVideoQualityIndexVideo quality level index.
TSize & aSize

GetViewFinderSize(TSize &)

voidGetViewFinderSize(TSize &aSize)[pure virtual]
Gets the current view finder size.
Since
2.1

Parameters

TSize & aSizeView finder size.

InitL(TBool)

voidInitL(TBoolaCreateSnapImage = ETrue)[pure virtual]
Initializes Camera Application Engine for still image capturing. Reserves the camera and switches the camera power on. Intialization must be done before all other operations, except SetCamAppEngineObserver and GetInfo. Calls observer method McaeoInitComplete().
Since
2.1

Parameters

TBool aCreateSnapImage = ETrueBoolean indicating if "snap-images" should be created, leading to calls of McaeoSnapImageReady.

InitL(TUid, TBool)

voidInitL(TUidaSdUidStillQltyLevels,
TBoolaCreateSnapImage = ETrue
)[pure virtual]
Initialize the engine for still image capturing. Switches also camera power on. Intialization must be done before all other operations, except SetCamAppEngineObserver and GetInfo. Calls observer method McaeoInitComplete().
Since
2.1

Parameters

TUid aSdUidStillQltyLevelsStill capturing quality levels Shared Data initialization file UID.
TBool aCreateSnapImage = ETrueBoolean indicating if "snap-images" should be created leading to calls of McaeoSnapImageReady.

InitVideoRecorderL()

voidInitVideoRecorderL()[pure virtual]
Initializes video recording. The initialization must be done before video recording operations.
Since
2.1

InitVideoRecorderL(TUid)

voidInitVideoRecorderL(TUidaSdUidVideoQltyLevels)[pure virtual]
Initializes video recording. The initialization must be done before video recording operations.
Since
2.1

Parameters

TUid aSdUidVideoQltyLevelsVideo recording quality levels Shared Data initialization file UID.

IsVideoRecording()

TBool IsVideoRecording()const [pure virtual]
Queries if video recording is running.
Since
2.1

IsViewFinding()

TBool IsViewFinding()const [pure virtual]
Queries if view finder is running.
Since
2.1

JpegQuality()

TInt JpegQuality()const [pure virtual]
Gets the currently set JPEG quality value. Returns 0 if not previously prepared or set.
Since
2.6

NewL()

IMPORT_C CCaeEngine *NewL()[static]
A static (factory) function to create the class instance.
Since
2.1

NewL(TInt)

IMPORT_C CCaeEngine *NewL(TIntaCameraIndex)[static]
A static (factory) function to create the class instance.
Since
2.6

Parameters

TInt aCameraIndexIndex from 0 to CamerasAvailable()-1 inclusive specifying the camera device to use.

NewL(TInt, TInt)

IMPORT_C CCaeEngine *NewL(TIntaCameraIndex,
TIntaDisplayIndex
)[static]
A static (factory) function to create the class instance.
Since
2.6

Parameters

TInt aCameraIndexIndex from 0 to CamerasAvailable()-1 inclusive specifying the camera device to use.
TInt aDisplayIndexDisplay index specifying the display to use.

PauseVideoRecording()

voidPauseVideoRecording()[pure virtual]
Pauses video recording. Calls observer method McaeoVideoRecordingPaused().
Since
2.1

PowerOff()

voidPowerOff()[pure virtual]
Switches the camera power off.
Since
2.1

PowerOn()

voidPowerOn()[pure virtual]
Switches the camera power on. Calls observer method McaeoInitComplete().
Since
2.1

PrepareStillCaptureL(TInt)

voidPrepareStillCaptureL(TIntaStillQualityIndex)[pure virtual]
Prepares Camera Application Engine for still image capture on specified quality level. Calls observer method McaeoStillPrepareComplete().
Since
2.1

Parameters

TInt aStillQualityIndexStill image quality level index. Imaging parameters linked to quality levels are defined by Shared Data ini-file.

PrepareStillCaptureL(TInt, const TRect &)

voidPrepareStillCaptureL(TIntaStillQualityIndex,
const TRect &aCropRect
)[pure virtual]
Prepares Camera Application Engine for still image capture on specified quality level. Calls observer method McaeoStillPrepareComplete().
Since
2.1

Parameters

TInt aStillQualityIndexStill image quality level index. Can have values 0 ... TCamAppEngineInfo::iNumStillQualityLevelsSupported - 1
const TRect & aCropRectDesired cropping/clipping rectangle.

PrepareStillCaptureL(const TSize &, CCamera::TFormat, TInt)

voidPrepareStillCaptureL(const TSize &aSize,
CCamera::TFormataFormat,
TIntaCompressionQuality
)[pure virtual]
Prepares Camera Application Engine for still image capture with specified image size and format. Calls observer method McaeoStillPrepareComplete().
Since
2.1

Parameters

const TSize & aSizeStill image size.
CCamera::TFormat aFormatStill image format.
TInt aCompressionQualityStill image compression quality [0...100].

PrepareStillCaptureL(const TSize &, CCamera::TFormat, TInt, const TRect &)

voidPrepareStillCaptureL(const TSize &aSize,
CCamera::TFormataFormat,
TIntaCompressionQuality,
const TRect &aCropRect
)[pure virtual]
Prepares Camera Application Engine for still image capture with specified image size and format. Calls observer method McaeoStillPrepareComplete().
Since
2.1

Parameters

const TSize & aSizeStill image size.
CCamera::TFormat aFormatStill image format.
TInt aCompressionQualityStill image compression quality [0...100].
const TRect & aCropRectDesired cropping/clipping rectangle.

PrepareStillCaptureL(TInt, TSize &)

voidPrepareStillCaptureL(TIntaStillQualityIndex,
TSize &aSnapSize
)[pure virtual]
Prepare Camera Application Engine for still image capture on specified quality level with desired snap image size. The returned snap image size is always equal or bigger in both dimensions than the given size. The returned size is stepwise downscaled from the captured image size. The parameter aSnapSize is ignored if the image format does not support it in the engine. Calls observer method McaeoStillPrepareComplete().
Since
2.1

Parameters

TInt aStillQualityIndexStill image quality level index. Can have values 0 ... TCamAppEngineInfo::iNumStillQualityLevelsSupported - 1
TSize & aSnapSizeDesired snap image size. Returns the real snap image size.

PrepareStillCaptureL(const TSize &, CCamera::TFormat, TInt, const TRect &, TSize &)

voidPrepareStillCaptureL(const TSize &aSize,
CCamera::TFormataFormat,
TIntaCompressionQuality,
const TRect &aCropRect,
TSize &aSnapSize
)[pure virtual]
Prepare Camera Application Engine for still image capture with specified image size, format, and desired snap image size. The returned snap image size is always equal or bigger in both dimensions than the given size. The returned size is stepwise downscaled from the captured image size. The parameter aSnapSize is ignored if the image format does not support it in the engine. Calls observer method McaeoStillPrepareComplete().
Since
2.1

Parameters

const TSize & aSizeStill image size.
CCamera::TFormat aFormatStill image format.
TInt aCompressionQualityStill image compression quality [0...100].
const TRect & aCropRectDesired cropping/clipping rectangle. The size (0,0) means that this parameter is ignored.
TSize & aSnapSizeDesired snap image size. Returns the real snap image size.

PrepareVideoRecordingL(TInt)

voidPrepareVideoRecordingL(TIntaVideoQualityIndex)[pure virtual]
Prepares Camera Application Engine for video recording on specified quality level. Calls observer method McaeoVideoPrepareComplete().
Since
2.1

Parameters

TInt aVideoQualityIndexVideo quality level index. Can have values 0 ... TCamAppEngineInfo::iNumVideoQualityLevelsSupported - 1

PrepareVideoRecordingL(const TSize &, TReal32, TInt, TBool, const TDesC8 &, const TDesC &, const TDesC8 &, const TDesC8 &)

voidPrepareVideoRecordingL(const TSize &aFrameSize,
TReal32aFrameRate,
TIntaBitRate,
TBoolaAudioEnabled,
const TDesC8 &aMimeType,
const TDesC &aPreferredSupplier,
const TDesC8 &aVideoType =  KNullDesC8 ,
const TDesC8 &aAudioType =  KNullDesC8
)[pure virtual]
Prepares Camera Application Engine for video recording with specified recording parameters. Calls observer method McaeoVideoPrepareComplete().
Since
2.1

Parameters

const TSize & aFrameSizeFrame size.
TReal32 aFrameRateFrame rate.
TInt aBitRateBit rate.
TBool aAudioEnabledBoolean indicating whether audio should be enabled or not.
const TDesC8 & aMimeTypeMIME type.
const TDesC & aPreferredSupplierPreferred supplier of video encoder.
const TDesC8 & aVideoType =  KNullDesC8 Video type.
const TDesC8 & aAudioType =  KNullDesC8 Audio type.

PrepareVideoRecordingL(const TSize &, TReal32, TInt, TBool, TInt, const TDesC8 &, const TDesC &, const TDesC8 &, const TDesC8 &)

voidPrepareVideoRecordingL(const TSize &aFrameSize,
TReal32aFrameRate,
TIntaBitRate,
TBoolaAudioEnabled,
TIntaAudioBitRate,
const TDesC8 &aMimeType,
const TDesC &aPreferredSupplier,
const TDesC8 &aVideoType,
const TDesC8 &aAudioType
)[pure virtual]
Prepares Camera Application Engine for video recording with specified recording parameters. Calls observer method McaeoVideoPrepareComplete().
Since
2.1

Parameters

const TSize & aFrameSizeFrame size.
TReal32 aFrameRateFrame rate.
TInt aBitRateBit rate.
TBool aAudioEnabledBoolean indicating whether audio should be enabled or not.
TInt aAudioBitRateAudio bit rate.
const TDesC8 & aMimeTypeMIME type.
const TDesC & aPreferredSupplierPreferred supplier of video encoder.
const TDesC8 & aVideoTypeVideo type.
const TDesC8 & aAudioTypeAudio type.

ProcessExtCancel()

voidProcessExtCancel()[pure virtual]
Cancels extensions processing
Since
3.2

ProcessExtCapturedImageL(CFbsBitmap &, TBool)

voidProcessExtCapturedImageL(CFbsBitmap &aBitmap,
TBoolaLastImage
)[pure virtual]
Process extension for captured image.
Since
3.2

Parameters

CFbsBitmap & aBitmapThe captured bitmap image. Does not transfer ownership.
TBool aLastImageSet when last image of the burst is completed.

ProcessExtCapturedImageL(HBufC8 *, TBool)

voidProcessExtCapturedImageL(HBufC8 *aImageData,
TBoolaLastImage
)[pure virtual]
Process extension for captured image.
Since
3.2

Parameters

HBufC8 * aImageDataThe captured image, if it is a formatted image and type of HBufC8. Ownership is transferred.
TBool aLastImageSet when last image of the burst is completed.

ProcessExtCapturedImageL(TDesC8 &, TBool)

voidProcessExtCapturedImageL(TDesC8 &aImageDataDes,
TBoolaLastImage
)[pure virtual]
Process extension for captured image.
Since
3.2

Parameters

TDesC8 & aImageDataDesThe captured image, if it is a formatted image and type of TDesC8. Does not transfer ownership.
TBool aLastImageSet when last image of the burst is completed.

ProcessExtSnapImageL(CFbsBitmap &)

voidProcessExtSnapImageL(CFbsBitmap &aSnapImage)[pure virtual]
Process extension for snap image.
Since
3.2

Parameters

CFbsBitmap & aSnapImageThe bitmap of snap image. Does not transfer ownership.

ProcessExtViewFinderFrameReadyL(CFbsBitmap &)

voidProcessExtViewFinderFrameReadyL(CFbsBitmap &aFrame)[pure virtual]
Process extension for view finder.
Since
3.2

Parameters

CFbsBitmap & aFrameThe view finder frame bitmap that is processed.

Release()

voidRelease()[pure virtual]
Switches the camera power off and releases the camera.
Since
2.1

RemainingVideoRecordingTime()

TTimeIntervalMicroSeconds RemainingVideoRecordingTime()const [pure virtual]
Gets the remaining video recording time before recording has started.
Since
2.1

Reserve()

voidReserve()[pure virtual]
Reserves the camera into use and switches the camera power on. Calls observer method McaeoInitComplete().
Since
2.1

ResetToDefaultsL()

voidResetToDefaultsL()[pure virtual]
Resets to the default setting values. Resets the following settings: exposure mode, white balance mode, zoom mode, zoom value, flash mode, brightness, and contrast.
Since
2.1

ResumeVideoRecording()

voidResumeVideoRecording()[pure virtual]
Resumes video recording after pause. Calls observer method McaeoVideoRecordingOn().
Since
2.1

SetAsyncVideoStopMode(TBool)

TInt SetAsyncVideoStopMode(TBoolaAsyncVideoStopEnabled)[pure virtual]
Set asynchronous video recording stop mode. When Enabled then StopVideoRecording will return quickly and MCamAppEngineObserver callbacks McaeoVideoRecordingStopped and McaeoVideoRecordingComplete are called asynchronously.
Since
5.0

Parameters

TBool aAsyncVideoStopEnabledThe async stop state.

SetBrightnessL(TInt)

voidSetBrightnessL(TIntaBrightness = 0)[pure virtual]
Sets the brightness.
Since
2.1

Parameters

TInt aBrightness = 0Brightness value in the range ECam.h SetBrightnessL allows.

SetCaeExtensionModeL(TBool, TBool)

voidSetCaeExtensionModeL(TBoolaExtModeActive,
TBoolaCreateSnapImage
)[pure virtual]
Sets CAE to Extension processing mode.
Since
3.2

Parameters

TBool aExtModeActiveBoolean indicating if extension mode is enabled or disabled.
TBool aCreateSnapImageBoolean indicating if "snap-images" should be created by CAE.

SetCaeStillBurstObserver(MCaeStillBurstObserver &)

voidSetCaeStillBurstObserver(MCaeStillBurstObserver &aObserver)[pure virtual]
Sets the Camera Application Engine still image burst capturing observer.
Since
2.1

Parameters

MCaeStillBurstObserver & aObserverCamera Application Engine still burst observer.

SetCamAppEngineObserver(MCamAppEngineObserver &)

voidSetCamAppEngineObserver(MCamAppEngineObserver &aObserver)[pure virtual]
Sets the Camera Application Engine observer.
Since
2.1

Parameters

MCamAppEngineObserver & aObserverReference to Camera Application Engine observer.

SetContrastL(TInt)

voidSetContrastL(TIntaContrast = 0)[pure virtual]
Sets the contrast.
Since
2.1

Parameters

TInt aContrast = 0Contrast value in the range ECam.h SetContrastL allows.

SetEvCompensationL(TInt)

voidSetEvCompensationL(TIntaEvIndex = 0)[pure virtual]
Sets the exposure value (EV) compensation index.
Since
2.1

Parameters

TInt aEvIndex = 0Exposure value compensation index to set.

SetExposureModeL(CCamera::TExposure)

voidSetExposureModeL(CCamera::TExposureaExposureMode = CCamera::EExposureAuto)[pure virtual]
Sets the exposure mode.
Since
2.1

Parameters

CCamera::TExposure aExposureMode = CCamera::EExposureAutoExposure mode in the range ECam.h SetExposureL allows.

SetFlashModeL(CCamera::TFlash)

voidSetFlashModeL(CCamera::TFlashaFlashMode = CCamera::EFlashNone)[pure virtual]
Sets the flash mode.
Since
2.1

Parameters

CCamera::TFlash aFlashMode = CCamera::EFlashNoneFlash mode in the range ECam.h SetFlashL allows.

SetImageCodecsL(TUid, TUid)

voidSetImageCodecsL(TUidaDecoderUid,
TUidaEncoderUid
)[pure virtual]
Sets the specific image codec implementation to be used in decoding and encoding.
Since
3.1

Parameters

TUid aDecoderUidThe UID of the specific image decoder to be used. KNullUid means the default decoder.
TUid aEncoderUidThe UID of the specific image encoder to be used. KNullUid means the default encoder.

SetJpegQuality(TInt)

voidSetJpegQuality(TIntaQuality)[pure virtual]
Sets the quality value to use with JPEG and Exif image formats.
Since
2.6

Parameters

TInt aQualityThe quality value to use, clamped to the range 1 to 100.

SetOrderL(const RCaeOrderedFeatureList &)

voidSetOrderL(const RCaeOrderedFeatureList &aOrderedFeatureList)[pure virtual]
Sets array of features per interfaces. Each feature should be ordered according to the wanted calling order e.g. to define when certain image prosessing operation is applied to the captured image. If this method leaves, the internal array has not been changed.
Since
2.8

Parameters

const RCaeOrderedFeatureList & aOrderedFeatureList

SetSkippedExtensionList(RCaeOrderedFeatureList &)

voidSetSkippedExtensionList(RCaeOrderedFeatureList &aSkippedExtensions)[pure virtual]
Set list of skipped extensions. Application may define which extensions are skipped during image processing. The GetOrderL() returns the list of all installed extensions.
Since
3.2

Parameters

RCaeOrderedFeatureList & aSkippedExtensionsThe list of installed and skipped extensions TUid.

SetSnapImageColorMode(TDisplayMode)

voidSetSnapImageColorMode(TDisplayModeaMode)[pure virtual]
Sets the color mode of the snap image bitmap
Since
2.8

Parameters

TDisplayMode aModeThe color mode of the snap bitmap.

SetSnapImageCreation(TBool)

voidSetSnapImageCreation(TBoolaCreateSnapImage = ETrue)[pure virtual]
Sets snap image creation on/off.
Since
2.1

Parameters

TBool aCreateSnapImage = ETrueBoolean indicating if "snap-images" for displaying should be created, leading to calls of McaeoSnapImageReady.

SetSnapImageSizeL(TSize &)

voidSetSnapImageSizeL(TSize &aSize)[pure virtual]
Sets the size of the snap image bitmap.
Since
2.8

Parameters

TSize & aSizeThe size of the snap bitmap. Corrected size is returned.

SetSnapImageSourceL(TSnapImageSource)

voidSetSnapImageSourceL(TSnapImageSourceaSnapImageSource)[pure virtual]
Sets the source of the snap image bitmap.
Since
2.8

Parameters

TSnapImageSource aSnapImageSourceThe source of the snap image bitmap.

SetStillBurstCaptureIntervalL(TTimeIntervalMicroSeconds)

voidSetStillBurstCaptureIntervalL(TTimeIntervalMicroSecondsaInterval)[pure virtual]
Sets the time interval between single captures in still burst.
Since
2.1

Parameters

TTimeIntervalMicroSeconds aIntervalTime interval in microseconds.

SetStillCaptureImageCountL(TInt)

TInt SetStillCaptureImageCountL(TIntaImageCount)[pure virtual]
Sets the image count for still image (burst) capturing. Note: Inputting value 1 switches back to normal still capturing.
Since
2.1

Parameters

TInt aImageCountThe desired count of images to capture (in a burst).

SetVideoAudioL(TBool)

voidSetVideoAudioL(TBoolaAudioEnabled)[pure virtual]
Sets audio enabled or disabled for video recording.
Since
2.1

Parameters

TBool aAudioEnabledBoolean indicating whether audio should be enabled or not for video recording.

SetVideoClipMaxSizeL(TInt)

voidSetVideoClipMaxSizeL(TIntaMaxClipSizeInBytes = 0)[pure virtual]
Sets the maximum size in bytes for a video clip.
Since
2.1

Parameters

TInt aMaxClipSizeInBytes = 0Maximum video clip size measured in bytes. If set to 0, then no limit but the available storage space.

SetVideoRecordingFileNameL(const TDesC &)

voidSetVideoRecordingFileNameL(const TDesC &aVideoClipFileName)[pure virtual]
Sets the file name for the video clip to be recorded.
Since
2.1

Parameters

const TDesC & aVideoClipFileNameFile name.

SetVideoTimesIntervalL(TTimeIntervalMicroSeconds)

voidSetVideoTimesIntervalL(TTimeIntervalMicroSecondsaInterval)[pure virtual]
Sets the time interval for video recording time info.
Since
2.1

Parameters

TTimeIntervalMicroSeconds aIntervalTime interval in microseconds for video recording time info. If zero is given as interval, then video recording time is not generated.

SetViewFinderMirrorL(TBool)

voidSetViewFinderMirrorL(TBoolaMirror = EFalse)[pure virtual]
Sets/resets view finder image mirroring.
Since
2.1

Parameters

TBool aMirror = EFalseBoolean indicating whether view finder image should be mirrored or not.

SetWhiteBalanceModeL(CCamera::TWhiteBalance)

voidSetWhiteBalanceModeL(CCamera::TWhiteBalanceaWhiteBalanceMode = CCamera::EWBAuto)[pure virtual]
Sets the white balance mode.
Since
2.1

Parameters

CCamera::TWhiteBalance aWhiteBalanceMode = CCamera::EWBAutoWhite balance mode in the range ECam.h SetWhiteBalanceL allows.

SetZoomModeL(TZoomMode)

voidSetZoomModeL(TZoomModeaZoomMode = EZoomModeDigital)[pure virtual]
Sets the zoom mode.
Since
2.1

Parameters

TZoomMode aZoomMode = EZoomModeDigitalZoom mode to set.

SetZoomValueL(TInt)

voidSetZoomValueL(TIntaZoomValue = 0)[pure virtual]
Sets the zoom value.
Since
2.1

Parameters

TInt aZoomValue = 0Index of the zoom factor to set.

SkippedExtensionListL(RCaeOrderedFeatureList &)

voidSkippedExtensionListL(RCaeOrderedFeatureList &aSkippedExtensions)[pure virtual]
Get list of skipped extensions. Application may define which extensions are skipped during image processing.
Since
3.2

Parameters

RCaeOrderedFeatureList & aSkippedExtensionsThe list of skipped extensions TUid.

StartVideoRecording()

voidStartVideoRecording()[pure virtual]
Starts video recording. Calls observer method McaeoVideoRecordingOn().
Since
2.1

StartViewFinderBitmapsL(TSize &)

voidStartViewFinderBitmapsL(TSize &aSize)[pure virtual]
Starts the bitmap-based view finder. The engine starts to call observer method McaeoViewFinderFrameReady() repeatedly.
Since
2.1

Parameters

TSize & aSizeDesired view finder size.

StartViewFinderBitmapsL(TSize &, TRect &)

voidStartViewFinderBitmapsL(TSize &aSize,
TRect &aCropRect
)[pure virtual]
Starts the bitmap-based view finder. The engine starts to call observer method McaeoViewFinderFrameReady() repeatedly.
Since
2.1

Parameters

TSize & aSizeDesired view finder size.
TRect & aCropRectDesired cropping/clipping rectangle.

StartViewFinderDirectL(RWsSession &, CWsScreenDevice &, RWindowBase &, TRect &)

voidStartViewFinderDirectL(RWsSession &aWs,
CWsScreenDevice &aScreenDevice,
RWindowBase &aWindow,
TRect &aScreenRect
)[pure virtual]
Starts the direct screen access view finder.
Since
2.1

Parameters

RWsSession & aWsWindow server session.
CWsScreenDevice & aScreenDeviceSoftware device screen.
RWindowBase & aWindowClient-side handle to a server-side window.
TRect & aScreenRectPortion of screen in screen co-ordinates.

StartViewFinderDirectL(RWsSession &, CWsScreenDevice &, RWindowBase &, TRect &, TRect &)

voidStartViewFinderDirectL(RWsSession &aWs,
CWsScreenDevice &aScreenDevice,
RWindowBase &aWindow,
TRect &aScreenRect,
TRect &aCropRect
)[pure virtual]
Starts the direct screen access view finder.
Since
2.1

Parameters

RWsSession & aWsWindow server session.
CWsScreenDevice & aScreenDeviceSoftware device screen.
RWindowBase & aWindowClient-side handle to a server-side window.
TRect & aScreenRectPortion of screen in screen co-ordinates.
TRect & aCropRectDesired cropping/clipping rectangle.

StillBurstCaptureInterval()

TTimeIntervalMicroSeconds StillBurstCaptureInterval()const [pure virtual]
Gets the time interval between single captures in still burst.
Since
2.1

StillCaptureImageCount()

TInt StillCaptureImageCount()const [pure virtual]
Gets the image count for still image (burst) capturing.
Since
2.1

StillQualityIndex()

TInt StillQualityIndex()const [pure virtual]
Gets the current prepared still quality level index.
Since
2.1

StopStillBurstCapture()

voidStopStillBurstCapture()[pure virtual]
Stops still image burst capturing. Delivers the burst images captured before call. This is different from CancelCaptureStill that cancels the operation and prevents delivering the captured image.
Since
2.1

StopVideoRecording()

voidStopVideoRecording()[pure virtual]
Stops video recording. Calls observer method McaeoVideoRecordingComplete().
Since
2.1

StopViewFinder()

voidStopViewFinder()[pure virtual]
Stops the view finder.
Since
2.1

VideoAudio()

TBool VideoAudio()const [pure virtual]
Queries if audio is enabled or disabled for video recording.
Since
2.1

VideoClipMaxSize()

TInt VideoClipMaxSize()const [pure virtual]
Gets the current maximum size in bytes for a video clip.
Since
2.1

VideoFrameRate(TInt)

TReal32 VideoFrameRate(TIntaVideoQualityIndex)const [pure virtual]
Gets the video frame rate for the specified video quality level.
Since
2.1

Parameters

TInt aVideoQualityIndexVideo quality level index.

VideoQualityIndex()

TInt VideoQualityIndex()const [pure virtual]
Gets the current prepared video quality level index.
Since
2.1

VideoTimesInterval()

TTimeIntervalMicroSeconds VideoTimesInterval()const [pure virtual]
Gets the current time interval for video recording time info.
Since
2.1

ViewFinderMirror()

TBool ViewFinderMirror()const [pure virtual]
Queries if view finder image mirroring is on.
Since
2.1

WhiteBalanceMode()

CCamera::TWhiteBalance WhiteBalanceMode()const [pure virtual]
Gets the current white balance mode.
Since
2.1

ZoomMode()

TZoomMode ZoomMode()const [pure virtual]
Gets the current zoom mode.
Since
2.1

ZoomValue()

TInt ZoomValue()const [pure virtual]
Gets the current zoom value.
Since
2.1

Member Enumerations Documentation

Enum TOperationMode

Enumerators

EOperationModeStill = 0x00
EOperationModeVideo = 0x01

Enum TSnapImageSource

Enumerators

ESnapImageSourceOriginal
ESnapImageSourceThumbnail

Enum TViewFinder

Enumerators

EViewFinderBitmaps = 0x00
EViewFinderDirect = 0x01

Enum TZoomMode

Enumerators

EZoomModeDigital = 0x00
EZoomModeOptical = 0x01
EZoomModeOpticalDigital = 0x02