MCameraVideoCaptureControl Class Reference

class MCameraVideoCaptureControl

Mixin class for implementation by providers of the Video Capture Control Camera Extension API. CCamera Video Capture Control class exposes an API for controlling advanced video capture related settings and control.

Member Functions Documentation

CreateHistogramImplFactoryL(MImplementationFactory *&)

voidCreateHistogramImplFactoryL(MImplementationFactory *&aImplFactoryPtr)const [pure virtual]

Retrieves the concrete factory handle for the histogram implementation in order to use it specifically for the video capture.

leave
May leave with any error code.

Parameters

MImplementationFactory *& aImplFactoryPtrThe concrete factory handle for the histogram implementation specific to the video capture.

GetDisabledSettingsL(RArray< TUid > &)

voidGetDisabledSettingsL(RArray< TUid > &aDisabledSettings)const [pure virtual]

Retrieves the camera settings whose value got affected once the desired video settings (frame rate/frame size) are in place. This method may be called by the client after receiving the notification KUidECamEventVideoCaptureControlSettingsDisabled.

leave
May leave with any error code.
PrepareVideoCapture(const TPrepareVideoParameters& aPrepareVideoParameters)

Parameters

RArray< TUid > & aDisabledSettingsRetrieves the list of disabled settings

GetEmbeddedStillCaptureSupportInfoL(TInt &)

voidGetEmbeddedStillCaptureSupportInfoL(TInt &aSupportedEmbeddedStillCaptureTypes)const [pure virtual]

Informs whether or not the 'embedded still capture' feature is supported. Allowing still image capture in between on-going video capture is referred to as embedded still capture.

leave
May leave with any error code.

Parameters

TInt & aSupportedEmbeddedStillCaptureTypesRetrieves the supported embedded still capture. The TInt is retrieved as a bit field of supported TEmbeddedStillCaptureTypes.

GetFadingEffectStateL(CCamera::CCameraVideoCaptureControl::TFadingEffectState &)

voidGetFadingEffectStateL(CCamera::CCameraVideoCaptureControl::TFadingEffectState &aFadingEffectState)const [pure virtual]

Retrieves the fading effect state for video capture.

leave
May leave with any error code.

Parameters

CCamera::CCameraVideoCaptureControl::TFadingEffectState & aFadingEffectStateRetrieves the current fading effect state for video capture.

GetImageProcessingImplFactoryL(MImplementationFactory *&)

voidGetImageProcessingImplFactoryL(MImplementationFactory *&aImplFactoryPtr)const [pure virtual]

Retrieves the concrete factory handle for the image processing implementation in order to use it specifically for the video capture.

leave
May leave with any error code.

Parameters

MImplementationFactory *& aImplFactoryPtrThe concrete factory handle for the image processing implementation specific to the video capture.

GetPixelAspectsSupportedL(TUint &, CCamera::TFormat, const TSize &)

voidGetPixelAspectsSupportedL(TUint &aPixelAspectsSupported,
CCamera::TFormataVideoFormat,
const TSize &aSize
)const [pure virtual]

Retrieves the supported pixel aspect ratio for a given resolution in case of video.

leave
May leave with any error code.

Parameters

TUint & aPixelAspectsSupportedA bit field which retrieves the supported pixel aspect ratio for a given resolution. Pixel aspect ratio have been defined as CCamera::CCameraAdvancedSettings::TPixelAspectRatio
CCamera::TFormat aVideoFormatThe video format for which the supported pixel aspect ratio have to be retrieved.
const TSize & aSizeThe resolution (or size) for which the supported pixel aspect ratio have to be retrieved.

GetPrepareVideoParametersL(CCamera::CCameraVideoCaptureControl::TPrepareVideoParameters &)

voidGetPrepareVideoParametersL(CCamera::CCameraVideoCaptureControl::TPrepareVideoParameters &aPrepareVideoParameters)const [pure virtual]

Retrieves the current prepare video parameters.

leave
May leave with any error code.

Parameters

CCamera::CCameraVideoCaptureControl::TPrepareVideoParameters & aPrepareVideoParametersRetrieves the current prepare video parameters.

GetRangeAffectedSettingsL(RArray< TUid > &)

voidGetRangeAffectedSettingsL(RArray< TUid > &aRangeAffectedSettings)const [pure virtual]

Retrieves the camera settings whose range got affected once the desired video settings (frame rate/frame size) are in place. This method may be called by the client after receiving the notification KUidECamEventVideoCaptureControlSettingsRangeChanged.

leave
May leave with any error code.
PrepareVideoCapture(const TPrepareVideoParameters& aPrepareVideoParameters)

Parameters

RArray< TUid > & aRangeAffectedSettingsRetrieves the list of range affected settings

GetSnapshotImplFactoryL(MImplementationFactory *&)

voidGetSnapshotImplFactoryL(MImplementationFactory *&aImplFactoryPtr)const [pure virtual]

Retrieves the concrete factory handle for the snapshot implementation in order to use it specifically for the video capture.

leave
May leave with any error code.

Parameters

MImplementationFactory *& aImplFactoryPtrThe concrete factory handle for the snapshot implementation specific to the video capture.

GetValueAffectedSettingsL(RArray< TUid > &)

voidGetValueAffectedSettingsL(RArray< TUid > &aValueAffectedSettings)const [pure virtual]

Retrieves the camera settings whose value got affected once the desired video settings (frame rate/frame size) are in place. This method may be called by the client after receiving the notification KUidECamEventVideoCaptureControlSettingsValueChanged.

leave
May leave with any error code.
PrepareVideoCapture(const TPrepareVideoParameters& aPrepareVideoParameters)

Parameters

RArray< TUid > & aValueAffectedSettingsRetrieves the list of value affected settings

GetVideoCaptureStateL(CCamera::CCameraVideoCaptureControl::TVideoCaptureState &)

voidGetVideoCaptureStateL(CCamera::CCameraVideoCaptureControl::TVideoCaptureState &aVideoCaptureState)const [pure virtual]

Retrieves the current video capture state.

leave
May leave with any error code.

Parameters

CCamera::CCameraVideoCaptureControl::TVideoCaptureState & aVideoCaptureStateRetrieves the current video capture state.

GetVideoCaptureSupportInfoL(TInt &)

voidGetVideoCaptureSupportInfoL(TInt &aSupportedVideoCaptureTypes)const [pure virtual]
Retrieves the various types of video capture supported.
leave
May leave with any error code.

Parameters

TInt & aSupportedVideoCaptureTypesRetrieves the supported video capture type. The TInt is retrieved as a bit field of supported TVideoCaptureType.

GetVideoFormatsSupportedL(TUint &, const TSize &)

voidGetVideoFormatsSupportedL(TUint &aVideoFormatsSupported,
const TSize &aSize
)const [pure virtual]

Retrieves the supported video formats for a given resolution.

leave
May leave with any error code.

Parameters

TUint & aVideoFormatsSupportedA bit field which retrieves the supported video formats for a given resolution. Formats have been defined as CCamera::TFormat
const TSize & aSizeThe resolution (or size) for which the total number of supported video formats have to be retrieved.

PauseVideoCapture()

voidPauseVideoCapture()[pure virtual]

Pauses the on-going video capture. MCaptureVideoObserver::VideoBufferReady(MCameraBuffer2& aVideoBuffer, TInt aErrorCode) callback will not be received by the client until the video capture is resumed.

PrepareVideoCapture(const CCamera::CCameraVideoCaptureControl::TPrepareVideoParameters &)

voidPrepareVideoCapture(const CCamera::CCameraVideoCaptureControl::TPrepareVideoParameters &aPrepareVideoParameters)[pure virtual]

Asynchronous method to prepare for video capture.

Performs setup and allocation of memory prior to calling StartVideoCapture() to keep the latency of that function to a minimum.

Note:

Event KUidECamEventVideoCaptureControlPrepareComplete is used to notify clients about completing the preparation for video capture.

Next PrepareVideoCapture can be called only after receiving the notification KUidECamEventReadyForNextPrepare.

If some camera settings get affected because of desired video settings such as frame rate/frame size, specific notifications will be sent to the client about camera settings being affected.

Event KUidECamEventVideoCaptureControlSettingsRangeChanged: informs that range of certain camera settings have been changed. Client may call GetRangeAffectedSettingsL(RArray<TUid>& aRangeAffectedSettings) const to get the list of affected camera settings.

Event KUidECamEventVideoCaptureControlSettingsValueChanged: informs that value of certain camera settings have been changed. Client may call GetValueAffectedSettingsL(RArray<TUid>& aValueAffectedSettings) const to get the list of affected camera settings.

Event KUidECamEventVideoCaptureControlSettingsDisabled: informs that certain camera settings have been disabled. Client may call GetDisabledSettingsL(RArray<TUid>& aDisabledSettings) const to get the list of affected camera settings.

CCamera::PrepareVideoCaptureL(TFormat aFormat,TInt aSizeIndex,TInt aRateIndex,TInt aBuffersToUse,TInt aFramesPerBuffer) ReleaseVideoResource()

Parameters

const CCamera::CCameraVideoCaptureControl::TPrepareVideoParameters & aPrepareVideoParametersParameters necessary to prepare for video capture.

Release()

voidRelease()[pure virtual]

Releases the interface.

ReleaseVideoResource()

voidReleaseVideoResource()[pure virtual]

Frees the video resources which were set up as a result of CCameraVideoCaptureControl::PrepareVideoCapture call. If this methid is called while PrepareVideoCapture call is outstanding, then this will be equivalent to cancelling the PrepareVideoCapture call and release any allocated resources.

ResumeVideoCaptureL()

voidResumeVideoCaptureL()[pure virtual]

Resumes the on-going video capture. MCaptureVideoObserver::VideoBufferReady(MCameraBuffer2& aVideoBuffer, TInt aErrorCode) callback will again be received by the client.

leave
May leave with any error code.

SetCaptureVideoObserver(MCaptureVideoObserver &)

voidSetCaptureVideoObserver(MCaptureVideoObserver &aCaptureVideoObserver)[pure virtual]

The observer for the video capture is passed to the implementation for passing callbacks on it.

Parameters

MCaptureVideoObserver & aCaptureVideoObserverThe reference to the capture video observer.

SetFadingEffectState(CCamera::CCameraVideoCaptureControl::TFadingEffectState)

voidSetFadingEffectState(CCamera::CCameraVideoCaptureControl::TFadingEffectStateaFadingEffectState)[pure virtual]

Sets the fading effect state for video capture.

Note:

Triggers a KUidECamEventVideoCaptureControlFadingEffect event notification.

Parameters

CCamera::CCameraVideoCaptureControl::TFadingEffectState aFadingEffectStateThe desired fading effect state for video capture.

StartVideoCaptureL()

voidStartVideoCaptureL()[pure virtual]

Starts the video capture. This operation gives priority to the low latency aspects.

Video frames are send to client via MCaptureVideoObserver::VideoBufferReady(MCameraBuffer2& aVideoBuffer, TInt aErrorCode).

leave
May leave with any error code.
Note:

This method is recommended to be used rather than CCamera::StartVideoCaptureL().

StopVideoCapture()

voidStopVideoCapture()[pure virtual]

Stops the video capture. This operation gives priority to the low latency aspects.

Note:

This method is recommended to be used rather than CCamera::StopVideoCapture().