multimediacommscontroller/mmccfilesourcesink/src/mccfilevideo.cpp
changeset 34 fc48eff9c76c
parent 19 f58ead8cf73c
child 30 4c9e1ec7a69e
equal deleted inserted replaced
28:434647e7f45b 34:fc48eff9c76c
   229     __ASSERT_ALWAYS( IsAVC(), User::Leave( KErrNotSupported ) );
   229     __ASSERT_ALWAYS( IsAVC(), User::Leave( KErrNotSupported ) );
   230     HBufC8* configKey = NULL;
   230     HBufC8* configKey = NULL;
   231     ExtractH264ParameterSetNALUsL( &configKey, ETrue );
   231     ExtractH264ParameterSetNALUsL( &configKey, ETrue );
   232     return configKey;
   232     return configKey;
   233     }
   233     }
   234     
   234 
       
   235 // -----------------------------------------------------------------------------
       
   236 // CMccFileVideo::VideoType
       
   237 // -----------------------------------------------------------------------------
       
   238 //
       
   239 TUint32 CMccFileVideo::VideoType() const
       
   240     {
       
   241     return iType;
       
   242     }
       
   243 
   235 // -----------------------------------------------------------------------------
   244 // -----------------------------------------------------------------------------
   236 // CMccFileVideo::Position
   245 // CMccFileVideo::Position
   237 // -----------------------------------------------------------------------------
   246 // -----------------------------------------------------------------------------
   238 //
   247 //
   239 TUint32 CMccFileVideo::Position()
   248 TUint32 CMccFileVideo::Position()
   277 // CMccFileVideo::VideoFrameRateL
   286 // CMccFileVideo::VideoFrameRateL
   278 // -----------------------------------------------------------------------------
   287 // -----------------------------------------------------------------------------
   279 //
   288 //
   280 TReal CMccFileVideo::VideoFrameRateL()
   289 TReal CMccFileVideo::VideoFrameRateL()
   281 	{
   290 	{
   282 	// Round to have zero decimals for clearness sake
   291     TReal modFrameRate;
   283 	TReal roundedFrameRate;
   292     MccConversionUtility::FrameRateSanitize( modFrameRate, iFrameRate, iType );
   284 	User::LeaveIfError( Math::Round( roundedFrameRate, iFrameRate, 0 ) );
   293     return modFrameRate;
   285     return roundedFrameRate;	
       
   286 	}
   294 	}
   287  
   295  
   288 // -----------------------------------------------------------------------------
   296 // -----------------------------------------------------------------------------
   289 // CMccFileVideo::StartTimerL
   297 // CMccFileVideo::StartTimerL
   290 // -----------------------------------------------------------------------------
   298 // -----------------------------------------------------------------------------