diff -r 6b87b143d312 -r 71da52165949 photosgallery/viewframework/tvout/src/glxhdmicontroller.cpp --- a/photosgallery/viewframework/tvout/src/glxhdmicontroller.cpp Fri Feb 19 22:51:01 2010 +0200 +++ b/photosgallery/viewframework/tvout/src/glxhdmicontroller.cpp Fri Mar 12 15:42:44 2010 +0200 @@ -26,10 +26,6 @@ #include "glxhdmicontroller.h" -// 720p image size -const TInt KHdTvWidth = 1280; -const TInt KHdTvHeight = 720; - // ----------------------------------------------------------------------------- // NewLC // ----------------------------------------------------------------------------- @@ -67,23 +63,12 @@ { TRACER("CGlxHdmiController::SetImageL()"); if (aStore) + { + iImageSupported = ETrue; StoreImageInfoL(aImageFile, aImageDimensions, aFrameCount); - + } if (iGlxTvOut->IsHDMIConnected()) { - if(aImageDimensions.iHeight<=KHdTvHeight && - aImageDimensions.iWidth<= KHdTvWidth && aFrameCount > 0) - { - GLX_LOG_INFO("CGlxHdmiController::SetImageL() - 1"); - DestroySurfaceUpdater(); - if (!iHdmiContainer) - { - CreateHdmiContainerL(); - } - CreateSurfaceUpdaterL(aImageFile, aImageDimensions, aFrameCount); - } - else - { GLX_LOG_INFO("CGlxHdmiController::SetImageL() - 2"); // do not close the surface , use the same surface instead. // Call a function to pass imagefile, imagedimension, framecount @@ -99,11 +84,10 @@ } else { - GLX_LOG_INFO("CGlxHdmiController::SetImageL() - 3"); - iSurfaceUpdater->UpdateNewImageL(aImageFile, aFrameCount); - } - iHdmiContainer->DrawNow(); + GLX_LOG_INFO("CGlxHdmiController::SetImageL() - 3"); + iSurfaceUpdater->UpdateNewImageL(aImageFile, aFrameCount,aImageDimensions); } + iHdmiContainer->DrawNow(); } } @@ -113,6 +97,7 @@ EXPORT_C void CGlxHdmiController::IsVideo() { TRACER("CGlxHdmiController::IsVideo()"); + iImageSupported = EFalse; if (iGlxTvOut->IsHDMIConnected()) { DestroySurfaceUpdater(); @@ -263,7 +248,7 @@ TRACER("CGlxHdmiController::HandleTvStatusChangedL()"); if ( aChangeType == ETvConnectionChanged ) { - if ( iGlxTvOut->IsHDMIConnected() ) + if ( iGlxTvOut->IsHDMIConnected() && iImageSupported) { GLX_LOG_INFO("CGlxHdmiController::HandleTvStatusChangedL() - HDMI Connected"); // Calling SetImageL() with appropriate parameters