epoc32/include/videorecorder.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
   115 
   115 
   116 public:
   116 public:
   117 
   117 
   118 
   118 
   119 	~CVideoRecorderUtility();
   119 	~CVideoRecorderUtility();
   120 	IMPORT_C static CVideoRecorderUtility* NewL(MVideoRecorderUtilityObserver& aObserver,TInt aPriority=EMdaPriorityNormal,TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality);
   120 	IMPORT_C static CVideoRecorderUtility* NewL(MVideoRecorderUtilityObserver& aObserver,
       
   121 												TInt aPriority=EMdaPriorityNormal,
       
   122 												TInt aPref=EMdaPriorityPreferenceTimeAndQuality);
   121 	IMPORT_C void OpenFileL(const TDesC& aFileName,
   123 	IMPORT_C void OpenFileL(const TDesC& aFileName,
   122 							TInt aCameraHandle,
   124 							TInt aCameraHandle,
   123 							TUid aControllerUid,
   125 							TUid aControllerUid,
   124 							TUid aVideoFormat,
   126 							TUid aVideoFormat,
   125 							const TDesC8& aVideoType = KNullDesC8,
   127 							const TDesC8& aVideoType = KNullDesC8,
   146     IMPORT_C void Close();
   148     IMPORT_C void Close();
   147     IMPORT_C void Prepare();
   149     IMPORT_C void Prepare();
   148     IMPORT_C void Record();
   150     IMPORT_C void Record();
   149     IMPORT_C TInt Stop();
   151     IMPORT_C TInt Stop();
   150     IMPORT_C void PauseL();
   152     IMPORT_C void PauseL();
   151     IMPORT_C void SetPriorityL(TInt aPriority, TMdaPriorityPreference aPref);
   153     IMPORT_C void SetPriorityL(TInt aPriority, TInt aPref);
   152     IMPORT_C void GetPriorityL(TInt& aPriority, TMdaPriorityPreference& aPref) const;
   154     IMPORT_C void GetPriorityL(TInt& aPriority, TMdaPriorityPreference& aPref) const;
   153     IMPORT_C void SetVideoFrameRateL(TReal32 aFrameRate);
   155     IMPORT_C void SetVideoFrameRateL(TReal32 aFrameRate);
   154     IMPORT_C TReal32 VideoFrameRateL() const;
   156     IMPORT_C TReal32 VideoFrameRateL() const;
   155     IMPORT_C void SetVideoFrameSizeL(const TSize& aSize);
   157     IMPORT_C void SetVideoFrameSizeL(const TSize& aSize);
   156     IMPORT_C void GetVideoFrameSizeL(TSize& aSize) const;
   158     IMPORT_C void GetVideoFrameSizeL(TSize& aSize) const;
   189     IMPORT_C TUint AudioChannelsL() const;
   191     IMPORT_C TUint AudioChannelsL() const;
   190     IMPORT_C void GetSupportedAudioChannelsL(RArray<TUint>& aChannels) const;
   192     IMPORT_C void GetSupportedAudioChannelsL(RArray<TUint>& aChannels) const;
   191     IMPORT_C void SetAudioSampleRateL(const TUint aSampleRate);    
   193     IMPORT_C void SetAudioSampleRateL(const TUint aSampleRate);    
   192     IMPORT_C TUint AudioSampleRateL() const;
   194     IMPORT_C TUint AudioSampleRateL() const;
   193     IMPORT_C void GetSupportedAudioSampleRatesL(RArray<TUint> &aSampleRates) const;
   195     IMPORT_C void GetSupportedAudioSampleRatesL(RArray<TUint> &aSampleRates) const;
   194 
       
   195     // SetVideoEnabledL() is publishedPartner and prototype as it is not yet used by licensees,
       
   196     // and there is a possibility that it may change on licensee request for a short period.
       
   197     // It will eventually be moved to publishedAll and released.
       
   198     IMPORT_C void SetVideoEnabledL(TBool aEnabled);
   196     IMPORT_C void SetVideoEnabledL(TBool aEnabled);
   199 
       
   200     // VideoEnabledL() is publishedPartner and prototype as it is not yet used by licensees,
       
   201     // and there is a possibility that it may change on licensee request for a short period.
       
   202     // It will eventually be moved to publishedAll and released.
       
   203     IMPORT_C TBool VideoEnabledL() const;
   197     IMPORT_C TBool VideoEnabledL() const;
   204 
       
   205     // SetVideoQualityL() is publishedPartner and prototype as it is not yet used by licensees,
       
   206     // and there is a possibility that it may change on licensee request for a short period.
       
   207     // It will eventually be moved to publishedAll and released.
       
   208     IMPORT_C void SetVideoQualityL(TInt aQuality);
   198     IMPORT_C void SetVideoQualityL(TInt aQuality);
   209 
       
   210     // VideoQualityL() is publishedPartner and prototype as it is not yet used by licensees,
       
   211     // and there is a possibility that it may change on licensee request for a short period.
       
   212     // It will eventually be moved to publishedAll and released.
       
   213     IMPORT_C TInt VideoQualityL() const;
   199     IMPORT_C TInt VideoQualityL() const;
   214 
       
   215     // SetVideoFrameRateFixedL() is publishedPartner and prototype as it is not yet used by licensees,
       
   216     // and there is a possibility that it may change on licensee request for a short period.
       
   217     // It will eventually be moved to publishedAll and released.
       
   218     IMPORT_C void SetVideoFrameRateFixedL(TBool aFixedFrameRate);
   200     IMPORT_C void SetVideoFrameRateFixedL(TBool aFixedFrameRate);
   219 
       
   220     // VideoFrameRateFixedL() is publishedPartner and prototype as it is not yet used by licensees,
       
   221     // and there is a possibility that it may change on licensee request for a short period.
       
   222     // It will eventually be moved to publishedAll and released.
       
   223     IMPORT_C TBool VideoFrameRateFixedL() const;
   201     IMPORT_C TBool VideoFrameRateFixedL() const;
       
   202 
   224 private:
   203 private:
   225 	enum TMMFVideoRecorderState
   204 	enum TMMFVideoRecorderState
   226 		{
   205 		{
   227 		EStopped,
   206 		EStopped,
   228 		EOpening,
   207 		EOpening,