equal
deleted
inserted
replaced
87 void CMccVideoSourceWrapper::OpenL( |
87 void CMccVideoSourceWrapper::OpenL( |
88 MDataSource* aAudioSource, |
88 MDataSource* aAudioSource, |
89 TInt aCameraHandle, |
89 TInt aCameraHandle, |
90 const TDesC8& aVideoMimeType, |
90 const TDesC8& aVideoMimeType, |
91 TFourCC aAudioType, |
91 TFourCC aAudioType, |
92 TUid aEncoderUid ) |
92 TUid aEncoderUid, |
|
93 TBool aForceEncapsulationType ) |
93 { |
94 { |
94 __V_SOURCESINK_CONTROLL( "CMccVideoSourceWrapper::OpenL" ) |
95 __V_SOURCESINK_CONTROLL( "CMccVideoSourceWrapper::OpenL" ) |
95 |
96 |
96 __ASSERT_ALWAYS( !iMediaRecorder, User::Leave( KErrAlreadyExists ) ); |
97 __ASSERT_ALWAYS( !iMediaRecorder, User::Leave( KErrAlreadyExists ) ); |
97 iMediaRecorder = CCMRMediaRecorder::NewL(); |
98 iMediaRecorder = CCMRMediaRecorder::NewL(); |
107 if ( aEncoderUid != KNullUid ) |
108 if ( aEncoderUid != KNullUid ) |
108 { |
109 { |
109 __V_SOURCESINK_CONTROLL_INT1( "SetPreferredVideoEncoderL, uid:", |
110 __V_SOURCESINK_CONTROLL_INT1( "SetPreferredVideoEncoderL, uid:", |
110 aEncoderUid.iUid ) |
111 aEncoderUid.iUid ) |
111 iMediaRecorder->SetPreferredVideoEncoderL( aEncoderUid ); |
112 iMediaRecorder->SetPreferredVideoEncoderL( aEncoderUid ); |
|
113 } |
|
114 if ( aForceEncapsulationType ) |
|
115 { |
112 __V_SOURCESINK_CONTROLL( "SetPreferredVideoEncapsulationL" ) |
116 __V_SOURCESINK_CONTROLL( "SetPreferredVideoEncapsulationL" ) |
113 iMediaRecorder->SetPreferredVideoEncapsulationL( EDuElementaryStream ); |
117 iMediaRecorder->SetPreferredVideoEncapsulationL( EDuElementaryStream ); |
114 } |
118 } |
115 |
119 |
116 __V_SOURCESINK_CONTROLL( "SetVideoCodingOptionsL" ) |
120 __V_SOURCESINK_CONTROLL( "SetVideoCodingOptionsL" ) |
117 //set mediarecorder to insert GOB:s |
121 //set mediarecorder to insert GOB:s |
118 TCCMRVideoCodingOptions CodingOptions; |
122 TCCMRVideoCodingOptions CodingOptions; |
119 CodingOptions.iSyncIntervalInPicture = 1; |
123 CodingOptions.iSyncIntervalInPicture = 1; |