201037 PDK_4.0.a
authorhgs
Tue, 21 Sep 2010 11:21:54 -0500
changeset 36 20d2741ccdad
parent 33 e1b6d78dfe6a
201037
tsrc/consoleplayer/group/bld.inf
tsrc/consoleplayer/player/group/consoleplayer.mmp
tsrc/consoleplayer/player/group/externalplayer.mmp
tsrc/consoleplayer/player/group/externalplayer2.mmp
tsrc/consoleplayer/player/src/openmax_al/openmaxplayerutility.cpp
tsrc/consoleplayer/player/src/openmax_al/openmaxplayerutility.h
tsrc/consoleplayer/player/src/openmax_al/opmaxplayerwindow.cpp
tsrc/consoleplayer/player/src/openmax_al/opmaxplayerwindow.h
tsrc/consoleplayer/thumbnail/group/thumbnailtester.mmp
--- a/tsrc/consoleplayer/group/bld.inf	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/group/bld.inf	Tue Sep 21 11:21:54 2010 -0500
@@ -13,5 +13,5 @@
 
 PRJ_MMPFILES
 
-#include "..\player\group\bld.inf"
-#include "..\thumbnail\group\bld.inf"
+#include "../player/group/bld.inf"
+#include "../thumbnail/group/bld.inf"
--- a/tsrc/consoleplayer/player/group/consoleplayer.mmp	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/player/group/consoleplayer.mmp	Tue Sep 21 11:21:54 2010 -0500
@@ -30,27 +30,27 @@
 EPOCHEAPSIZE    0x100000 0x1000000 //1MB-16MB
 
 START RESOURCE  consoleplayer_reg.rss
-TARGETPATH 	    \private\10003a3f\apps
+TARGETPATH 	    /private/10003a3f/apps
 END 
 
-USERINCLUDE     ..\..\common
-USERINCLUDE     ..\inc
-USERINCLUDE     ..\src\mmf
+USERINCLUDE     ../../common
+USERINCLUDE     ../inc
+USERINCLUDE     ../src\mmf
 
-SOURCEPATH      ..\..\common
+SOURCEPATH      ../../common
 SOURCE          testappbase.cpp
 SOURCE          timercallback.cpp
 
-SOURCEPATH      ..\src
+SOURCEPATH      ../src
 SOURCE          consoleplayer.cpp
 SOURCE          playerwindow.cpp
 
-SOURCEPATH      ..\src\mmf
+SOURCEPATH      ../src/mmf
 SOURCE          mmfplayerwindow.cpp
 
 MW_LAYER_SYSTEMINCLUDE
-SYSTEMINCLUDE   \epoc32\include
-SYSTEMINCLUDE   \epoc32\include\stdapis
+SYSTEMINCLUDE   /epoc32/include
+SYSTEMINCLUDE   /epoc32/include/stdapis
 
 LIBRARY         euser.lib
 LIBRARY         efsrv.lib
@@ -58,7 +58,7 @@
 LIBRARY	        gce.lib 
 LIBRARY         ws32.lib 
 LIBRARY         gdi.lib
-LIBRARY		    fntstr.lib
+LIBRARY		      fntstr.lib
 LIBRARY         fbscli.lib
 LIBRARY         estor.lib 
 LIBRARY         ecom.lib
@@ -80,14 +80,14 @@
 
 #ifdef FF_OPENMAX_AL
 
-SYSTEMINCLUDE   \epoc32\include\platform\mw\khronos
+SYSTEMINCLUDE   /epoc32/include/platform/mw/khronos
 
-USERINCLUDE  ..\src\openmax_al
-SOURCEPATH   ..\src\openmax_al
+USERINCLUDE  ../src/openmax_al
+SOURCEPATH   ../src/openmax_al
 
 SOURCE       opmaxplayerwindow.cpp
 SOURCE       openmaxplayerutility.cpp
-LIBRARY      openmaxal.lib
+LIBRARY      hxopenmaxal.lib
 LIBRARY      libc.lib
 
 #endif
--- a/tsrc/consoleplayer/player/group/externalplayer.mmp	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/player/group/externalplayer.mmp	Tue Sep 21 11:21:54 2010 -0500
@@ -28,20 +28,20 @@
 EPOCSTACKSIZE 0x5000           //20KB
 EPOCHEAPSIZE  0x400 0x1000000  //1KB-16MB
 
-USERINCLUDE   ..\..\common
-USERINCLUDE   ..\inc
-USERINCLUDE   ..\src\mmf
+USERINCLUDE   ../../common
+USERINCLUDE   ../inc
+USERINCLUDE   ../src/mmf
 
-SOURCEPATH    ..\src
+SOURCEPATH    ../src
 SOURCE        externalplayer.cpp
 SOURCE        playerwindow.cpp
 
-SOURCEPATH    ..\src\mmf
+SOURCEPATH    ../src/mmf
 SOURCE        mmfplayerwindow.cpp
 
 MW_LAYER_SYSTEMINCLUDE
 USERINCLUDE   .
-SYSTEMINCLUDE \epoc32\include
+SYSTEMINCLUDE /epoc32/include
 
 LIBRARY       euser.lib
 LIBRARY       efsrv.lib
--- a/tsrc/consoleplayer/player/group/externalplayer2.mmp	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/player/group/externalplayer2.mmp	Tue Sep 21 11:21:54 2010 -0500
@@ -28,20 +28,20 @@
 EPOCSTACKSIZE 0x5000           //20KB
 EPOCHEAPSIZE  0x400 0x1000000  //1KB-16MB
 
-USERINCLUDE   ..\..\common
-USERINCLUDE   ..\inc
-USERINCLUDE   ..\src\mmf
+USERINCLUDE   ../../common
+USERINCLUDE   ../inc
+USERINCLUDE   ../src/mmf
 
-SOURCEPATH    ..\src
+SOURCEPATH    ../src
 SOURCE        externalplayer.cpp
 SOURCE        playerwindow.cpp
 
-SOURCEPATH    ..\src\mmf
+SOURCEPATH    ../src\mmf
 SOURCE        mmfplayerwindow.cpp
 
 MW_LAYER_SYSTEMINCLUDE
 USERINCLUDE   .
-SYSTEMINCLUDE \epoc32\include
+SYSTEMINCLUDE /epoc32/include
 
 LIBRARY       euser.lib
 LIBRARY       efsrv.lib
@@ -49,5 +49,5 @@
 LIBRARY	      gce.lib 
 LIBRARY       ws32.lib 
 LIBRARY       gdi.lib
-LIBRARY		  fntstr.lib
+LIBRARY		    fntstr.lib
 LIBRARY       fbscli.lib
\ No newline at end of file
--- a/tsrc/consoleplayer/player/src/openmax_al/openmaxplayerutility.cpp	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/player/src/openmax_al/openmaxplayerutility.cpp	Tue Sep 21 11:21:54 2010 -0500
@@ -1,5 +1,23 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ * Source file for the main class of the ConsolePlayer test app.
+ *
+ */
+
 #include <string.h>
-#include <stdlib.h> 
+#include <stdlib.h>
 #include "openmaxplayerutility.h"
 
 #define FILE_EXTN "file:///"
@@ -13,7 +31,7 @@
     COpenMaxPlayerUtility* pSelf = (COpenMaxPlayerUtility*)pContext;
     if(event & XA_PLAYEVENT_HEADMOVING)
     {
-        strcpy(callback_string, "XA_PLAYEVENT_HEADMOVING");    
+        strcpy(callback_string, "XA_PLAYEVENT_HEADMOVING");
     }
     else if(event & XA_PLAYEVENT_HEADATEND)
     {
@@ -23,15 +41,15 @@
     }
     else if(event & XA_PLAYEVENT_HEADATMARKER)
     {
-        strcpy(callback_string, "XA_PLAYEVENT_HEADATMARKER");    
+        strcpy(callback_string, "XA_PLAYEVENT_HEADATMARKER");
     }
     else if(event & XA_PLAYEVENT_HEADATNEWPOS)
     {
-        strcpy(callback_string, "XA_PLAYEVENT_HEADATNEWPOS");    
+        strcpy(callback_string, "XA_PLAYEVENT_HEADATNEWPOS");
     }
     else if(event & XA_PLAYEVENT_HEADSTALLED)
     {
-        strcpy(callback_string, "XA_PLAYEVENT_HEADSTALLED");    
+        strcpy(callback_string, "XA_PLAYEVENT_HEADSTALLED");
     }
     //LOGFILE (callback_string);
 }
@@ -45,10 +63,10 @@
 {
     /* Destroy the player */
     DestroyPlayer ();
-    
+
     /* Destroy Output Mix object */
     (*m_outputMix)->Destroy(m_outputMix);
-    
+
     /* Shutdown OpenMAX AL */
     (*m_engine)->Destroy(m_engine);
 }
@@ -66,15 +84,15 @@
     };
 
     /* Create OpenMAX AL */
-   res = xaCreateEngine(&m_engine, 1, EngineOption, 0, NULL, NULL); 
+   res = xaCreateEngine(&m_engine, 1, EngineOption, 0, NULL, NULL);
    CheckErr(res, "xaCreateEngine");
 
     /* Realizing the XA Engine in synchronous mode. */
-   res = (*m_engine)->Realize(m_engine, XA_BOOLEAN_FALSE); 
+   res = (*m_engine)->Realize(m_engine, XA_BOOLEAN_FALSE);
    CheckErr(res, "Realize(engine)");
 
     /* Get the XA Engine Interface which is implicit */
-   res = (*m_engine)->GetInterface(m_engine, XA_IID_ENGINE, (void**) &m_EngineItf); 
+   res = (*m_engine)->GetInterface(m_engine, XA_IID_ENGINE, (void**) &m_EngineItf);
    CheckErr(res, "GetInterface(engine)");
 
     /* Initialize arrays required[] and iidArray[] */
@@ -91,20 +109,20 @@
     m_iidArray[1] = XA_IID_EQUALIZER;
 
     /* Create Output Mix object to be used by player */
-    res = (*m_EngineItf)->CreateOutputMix(m_EngineItf, &m_outputMix, 2, m_iidArray, m_required); 
+    res = (*m_EngineItf)->CreateOutputMix(m_EngineItf, &m_outputMix, 2, m_iidArray, m_required);
     CheckErr(res, "CreateOutputMix");
 
     /* Realizing the Output Mix object in synchronous mode. */
-    res = (*m_outputMix)->Realize(m_outputMix, XA_BOOLEAN_FALSE); 
+    res = (*m_outputMix)->Realize(m_outputMix, XA_BOOLEAN_FALSE);
     CheckErr(res, "Realize(outputMix)");
 
     /* Get volume and equalizer interfaces */
-    res = (*m_outputMix)->GetInterface(m_outputMix, XA_IID_VOLUME, (void**) &m_volumeItf); 
+    res = (*m_outputMix)->GetInterface(m_outputMix, XA_IID_VOLUME, (void**) &m_volumeItf);
     CheckErr(res, "GetInterface(volume)");
-    res = (*m_outputMix)->GetInterface(m_outputMix, XA_IID_EQUALIZER, (void**) &m_equalizerItf); 
+    res = (*m_outputMix)->GetInterface(m_outputMix, XA_IID_EQUALIZER, (void**) &m_equalizerItf);
     CheckErr(res, "GetInterface(equalizer)");
 
-    // Setup the audio sink structure 
+    // Setup the audio sink structure
     m_locator_outputmix.locatorType = XA_DATALOCATOR_OUTPUTMIX;
     m_locator_outputmix.outputMix = m_outputMix;
     m_audioSink.pLocator = (void*) &m_locator_outputmix;
@@ -116,14 +134,14 @@
     m_required[1] = XA_BOOLEAN_FALSE;
     m_iidArray[1] = XA_IID_NULL;
 
-    // Setup the video sink structure 
-    // Set nativeWindowHandle and nativeDisplayHandle to platform specific values 
+    // Setup the video sink structure
+    // Set nativeWindowHandle and nativeDisplayHandle to platform specific values
     XANativeHandle nativeWindowHandle = NULL;
     XANativeHandle nativeDisplayHandle = NULL;
-    
+
     m_locator_displayregion.locatorType = XA_DATALOCATOR_NATIVEDISPLAY;
     m_locator_displayregion.hDisplay = nativeDisplayHandle;
-    m_locator_displayregion.hWindow = nativeWindowHandle; 
+    m_locator_displayregion.hWindow = nativeWindowHandle;
     m_videoSink.pLocator = (void*) &m_locator_displayregion;
     m_videoSink.pFormat = NULL;
 
@@ -133,8 +151,8 @@
     res = (*m_volumeItf)->GetMaxVolumeLevel (m_volumeItf, &maxVol);
     CheckErr(res, "GetMaxVolumeLevel");
 
-    // before Play, set volume 
-    res = (*m_volumeItf)->SetVolumeLevel(m_volumeItf, minVol); 
+    // before Play, set volume
+    res = (*m_volumeItf)->SetVolumeLevel(m_volumeItf, minVol);
     CheckErr(res, "SetVolumeLevel");
 }
 
@@ -145,14 +163,14 @@
     /* Stop the music */
     res = (*m_playItf)->GetPlayState(m_playItf, &playState);
     CheckErr(res, "GetPlayState");
-    
+
     if ( playState != XA_PLAYSTATE_STOPPED )
         {
-        res = (*m_playItf)->SetPlayState(m_playItf, XA_PLAYSTATE_STOPPED); 
+        res = (*m_playItf)->SetPlayState(m_playItf, XA_PLAYSTATE_STOPPED);
         CheckErr(res, "SetPlayState(stopped)");
         }
-    
-    // Destroy the player caused app to crash 
+
+    // Destroy the player caused app to crash
 //    (*player)->Destroy(player);
     }
 
@@ -169,15 +187,15 @@
     XAmilliHertz maxFreq;
     int band;
     XAresult res;
-    res = (*m_equalizerItf)->GetNumberOfBands(m_equalizerItf, &numBands); 
+    res = (*m_equalizerItf)->GetNumberOfBands(m_equalizerItf, &numBands);
     CheckErr(res, "GetNumberOfBands(equalizerItf)");
-    res = (*m_equalizerItf)->GetBandLevelRange(m_equalizerItf, &minLevel, &maxLevel); 
+    res = (*m_equalizerItf)->GetBandLevelRange(m_equalizerItf, &minLevel, &maxLevel);
     CheckErr(res, "GetBandLevelRange(equalizerItf)");
     for (band = 0; band<numBands; band++)
     {
-        res = (*m_equalizerItf)->GetBandFreqRange(m_equalizerItf, (XAint16) band, &minFreq, &maxFreq); 
+        res = (*m_equalizerItf)->GetBandFreqRange(m_equalizerItf, (XAint16) band, &minFreq, &maxFreq);
         CheckErr(res, "GetBandFreqRange(equalizerItf)");
-        res = (*m_equalizerItf)->GetBandLevel(m_equalizerItf, (XAint16)band, &bandLevel); 
+        res = (*m_equalizerItf)->GetBandLevel(m_equalizerItf, (XAint16)band, &bandLevel);
         CheckErr(res, "GetBandLevel(equalizerItf)");
  //       drawEQBand(minFreq, maxFreq, bandLevel);
     }
@@ -220,7 +238,7 @@
 void COpenMaxPlayerUtility::SetVolume(TInt aVolume)
     {
     m_nVolume = aVolume;
-    XAresult res = (*m_volumeItf)->SetVolumeLevel(m_volumeItf, (XAmillibel)m_nVolume); 
+    XAresult res = (*m_volumeItf)->SetVolumeLevel(m_volumeItf, (XAmillibel)m_nVolume);
     CheckErr(res, "SetVolumeL");
     }
 
@@ -230,36 +248,36 @@
 
 void COpenMaxPlayerUtility::SetPosition(const TTimeIntervalMicroSeconds& /*aPosition*/)
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::SetRotation(const RWindow& /*aWindow*/, TVideoRotation /*aRotation*/)
     {
-    
+
     }
 
-void COpenMaxPlayerUtility::SetScaleFactor(const RWindow& /*aWindow*/, TReal32 /*aWidthPercentage*/, 
+void COpenMaxPlayerUtility::SetScaleFactor(const RWindow& /*aWindow*/, TReal32 /*aWidthPercentage*/,
         TReal32 /*aHeightPercentage*/)
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::SetAutoScale(const RWindow& /*aWindow*/, TAutoScaleType /*aScaleType*/)
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::StepFrame(TInt /*aStep*/)
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::OpenFile(const TDesC& aFileName, TUid /*aControllerUid*/)
     {
     const TUint16 *pFile = aFileName.Ptr();
     TInt len = aFileName.Length();
-    
-    if (pFile) 
+
+    if (pFile)
         {
         strcpy((char*)m_sourceName, FILE_EXTN);
         len = wcstombs((char*)&m_sourceName[FILE_EXTN_LEN], (const wchar_t *)pFile, len);
@@ -268,7 +286,7 @@
         uri.URI = (XAchar*) m_sourceName;
         m_mime.formatType = XA_DATAFORMAT_MIME;
         m_mime.mimeType = (XAchar *) "audio/ra";
-        
+
 		//Do we need this here?
         PlaySource (uri);
         }
@@ -276,30 +294,30 @@
 
 void COpenMaxPlayerUtility::OpenUrl(const TDesC& /*aUrl*/)
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::Prepare()
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::Close()
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::Pause()
     {
     XAresult res;
-    res = (*m_playItf)->SetPlayState(m_playItf, XA_PLAYSTATE_PAUSED); 
+    res = (*m_playItf)->SetPlayState(m_playItf, XA_PLAYSTATE_PAUSED);
     CheckErr(res, "SetPlayState(paused)");
     }
 
 void COpenMaxPlayerUtility::Play()
     {
     XAresult res;
-    res = (*m_playItf)->SetPlayState(m_playItf, XA_PLAYSTATE_PLAYING); 
+    res = (*m_playItf)->SetPlayState(m_playItf, XA_PLAYSTATE_PLAYING);
     CheckErr(res, "SetPlayState(playing)");
     }
 
@@ -317,12 +335,12 @@
 
 void COpenMaxPlayerUtility::SetWindowClipRect(const RWindow& /*aWindow*/, const TRect& /*aWindowClipRect*/)
     {
-    
+
     }
 
 void COpenMaxPlayerUtility::SetVideoExtent(const RWindow& /*aWindow*/, const TRect& /*aVideoExtent*/)
     {
-    
+
     }
 
 /* Checks for error. If any errors exit the application! */
@@ -343,10 +361,10 @@
     XAmillibel maxLevel;
     XAresult res;
 
-    res = (*m_equalizerItf)->GetNumberOfBands(m_equalizerItf, &numBands); 
+    res = (*m_equalizerItf)->GetNumberOfBands(m_equalizerItf, &numBands);
     CheckErr(res, "GetNumberOfBands");
 
-    res = (*m_equalizerItf)->GetBandLevelRange(m_equalizerItf, &minLevel, &maxLevel); 
+    res = (*m_equalizerItf)->GetBandLevelRange(m_equalizerItf, &minLevel, &maxLevel);
     CheckErr(res, "GetBandLevelRange");
     if (band >= numBands)
     {
@@ -354,7 +372,7 @@
         exit(0);
     }
 
-    res = (*m_equalizerItf)->GetBandLevel(m_equalizerItf, band, &bandLevel); 
+    res = (*m_equalizerItf)->GetBandLevel(m_equalizerItf, band, &bandLevel);
     CheckErr(res, "GetBandLevel");
 
     if (increase==XA_BOOLEAN_TRUE)
@@ -364,7 +382,7 @@
         bandLevel = bandLevel + 100;
         if(bandLevel < maxLevel)
         {
-            res = (*m_equalizerItf)->SetBandLevel(m_equalizerItf, band, bandLevel); 
+            res = (*m_equalizerItf)->SetBandLevel(m_equalizerItf, band, bandLevel);
             CheckErr(res);
             DrawEQDisplay();
         }
@@ -376,7 +394,7 @@
         bandLevel = bandLevel - 100;
         if( bandLevel > minLevel )
         {
-            res = (*m_equalizerItf)->SetBandLevel(m_equalizerItf, band, bandLevel); 
+            res = (*m_equalizerItf)->SetBandLevel(m_equalizerItf, band, bandLevel);
             CheckErr(res);
             DrawEQDisplay();
         }
@@ -390,38 +408,38 @@
 
     // Create the music player //
     XAresult res;
-    res = (*m_EngineItf)->CreateMediaPlayer ( m_EngineItf, &player, &m_dataSource, NULL, &m_audioSink, 
-            &m_videoSink, NULL, NULL, 1, m_iidArray, m_required); 
+    res = (*m_EngineItf)->CreateMediaPlayer ( m_EngineItf, &player, &m_dataSource, NULL, &m_audioSink,
+            &m_videoSink, NULL, NULL, 1, m_iidArray, m_required);
     CheckErr(res, "CreateMediaPlayer");
-    
-    // Realizing the player in synchronous mode. 
-    res = (*player)->Realize(player, XA_BOOLEAN_FALSE); 
+
+    // Realizing the player in synchronous mode.
+    res = (*player)->Realize(player, XA_BOOLEAN_FALSE);
     CheckErr(res, "Realize(player)");
 
-    // Get the play interface 
-    res = (*player)->GetInterface(player, XA_IID_PLAY, (void**) &m_playItf); 
+    // Get the play interface
+    res = (*player)->GetInterface(player, XA_IID_PLAY, (void**) &m_playItf);
     CheckErr(res, "GetInterface(player)");
 
 /*    XADynamicSourceItf sourceItf;
-    res = (*player)->GetInterface(player, XA_IID_DYNAMICSOURCE, (void**) &sourceItf); 
+    res = (*player)->GetInterface(player, XA_IID_DYNAMICSOURCE, (void**) &sourceItf);
     CheckErr(res, "GetDynamicSource");
 
     res = (*sourceItf)->SetSource (sourceItf, &m_dataSource);
     CheckErr(res, "SetSource");
 */
-    // before Play, set volume 
-    res = (*m_volumeItf)->SetVolumeLevel(m_volumeItf, m_nVolume); 
+    // before Play, set volume
+    res = (*m_volumeItf)->SetVolumeLevel(m_volumeItf, m_nVolume);
     CheckErr(res, "SetVolumeLevel");
 
     XAmillisecond playDuration = 0;
-    res = (*m_playItf)->GetDuration(m_playItf, &playDuration); 
+    res = (*m_playItf)->GetDuration(m_playItf, &playDuration);
     bool b = CheckErr(res, "GetDuration");
     //if ( b && (playDuration != XA_DURATION_UNKNOWN) )
         //SetDurationL ((playDuration/1000));
 
-    res = (*m_playItf)->SetCallbackEventsMask(m_playItf, XA_PLAYEVENT_HEADATEND | XA_PLAYEVENT_HEADMOVING); 
+    res = (*m_playItf)->SetCallbackEventsMask(m_playItf, XA_PLAYEVENT_HEADATEND | XA_PLAYEVENT_HEADMOVING);
     CheckErr(res, "SetCallbackEventsMask");
-    
+
     res = (*m_playItf)->RegisterCallback(m_playItf, PlayCallbackFun, this);
     CheckErr(res, "RegisterCallback");
 	//Do we need this here?
@@ -442,7 +460,7 @@
 
 void COpenMaxPlayerUtility::MuteChanged(bool bChecked)
     {
-    XAresult res = (*m_volumeItf)->SetMute(m_volumeItf, (XAboolean)bChecked); 
+    XAresult res = (*m_volumeItf)->SetMute(m_volumeItf, (XAboolean)bChecked);
     CheckErr(res, "MuteChanged");
     }
 
--- a/tsrc/consoleplayer/player/src/openmax_al/openmaxplayerutility.h	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/player/src/openmax_al/openmaxplayerutility.h	Tue Sep 21 11:21:54 2010 -0500
@@ -1,3 +1,21 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ * Source file for the main class of the ConsolePlayer test app.
+ *
+ */
+
 #ifndef OPENMAX_PLAYER_UTILITY_H
 #define OPENMAX_PLAYER_UTILITY_H
 
@@ -15,7 +33,7 @@
 public:
     COpenMaxPlayerUtility();
     ~COpenMaxPlayerUtility();
-    
+
     void VideoFrameSize(TSize& aSize) const;
     TTimeIntervalMicroSeconds Position() const;
     TTimeIntervalMicroSeconds Duration() const;
@@ -23,7 +41,7 @@
     TInt MaxVolume() const;
     TInt Balance()const;
     TVideoRotation Rotation() const;
-    
+
     void SetVolume(TInt aVolume);
     void SetBalance(TInt aBalance);
     void SetPosition(const TTimeIntervalMicroSeconds& aPosition);
@@ -31,7 +49,7 @@
     void SetScaleFactor(const RWindow& aWindow, TReal32 aWidthPercentage, TReal32 aHeightPercentage);
     void SetAutoScale(const RWindow& aWindow, TAutoScaleType aScaleType);
     void StepFrame(TInt aStep);
-    
+
     void OpenFile(const TDesC& aFileName,TUid aControllerUid = KNullUid);
     void OpenUrl(const TDesC& aUrl);
     void Prepare();
@@ -54,11 +72,11 @@
     void PlayPause(bool);
     void MuteChanged(bool);
     TInt SetPlayVelocity( TInt aVelocity );
-    
+
 protected:
     void StartBackLightTimer();
     void CancelBackLightTimer();
-    
+
 private:
     XAObjectItf m_engine; /* OpenMAX AL Engine */
     XAObjectItf player;
@@ -79,7 +97,7 @@
     XADataLocator_OutputMix m_locator_outputmix;
     XADataLocator_NativeDisplay m_locator_displayregion;
     XADataLocator_URI uri;
-    
+
     TRect   m_displayRect;
     int     m_nVolume;
     int     m_Velocity;
--- a/tsrc/consoleplayer/player/src/openmax_al/opmaxplayerwindow.cpp	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/player/src/openmax_al/opmaxplayerwindow.cpp	Tue Sep 21 11:21:54 2010 -0500
@@ -1,3 +1,21 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ * Source file for the main class of the ConsolePlayer test app.
+ *
+ */
+
 #include "opmaxplayerwindow.h"
 #include "openmaxplayerutility.h"
 
@@ -11,7 +29,7 @@
 const TInt KMMFBalanceMaxRight = 100;
 #endif
 
-COpMaxPlayerWindow* COpMaxPlayerWindow::NewL( RFs& aFs, 
+COpMaxPlayerWindow* COpMaxPlayerWindow::NewL( RFs& aFs,
                                           RWsSession& aWs,
                                           CWsScreenDevice& aScreenDevice,
                                           const RWindowTreeNode &aParentWindow,
@@ -25,16 +43,16 @@
     CleanupStack::PushL( self );
     self->ConstructL( aParentWindow, aTopRight, aSize, aTransparent, aBackgroundColor );
     CleanupStack::Pop();
-    return self;   
+    return self;
     }
-    
+
 COpMaxPlayerWindow::COpMaxPlayerWindow( RFs& aFs, RWsSession& aWs, CWsScreenDevice& aScreenDevice, bool aSuppressGraphicsContext ) :
     CPlayerWindow( aFs, aWs, aScreenDevice, aSuppressGraphicsContext )
-    {    
+    {
     }
 
 COpMaxPlayerWindow::~COpMaxPlayerWindow()
-    {    
+    {
     delete iVideoPlayer;
     }
 
@@ -47,17 +65,17 @@
     }
 
 
-void COpMaxPlayerWindow::InitializeParameters( TSize& aVideoSize, 
-                                             TTimeIntervalMicroSeconds& aDuration, 
-                                             TInt& aMaxVolume, 
+void COpMaxPlayerWindow::InitializeParameters( TSize& aVideoSize,
+                                             TTimeIntervalMicroSeconds& aDuration,
+                                             TInt& aMaxVolume,
                                              TInt& aCurrentVolume,
                                              TInt& aBalanceCenter,
                                              TInt& aBalanceMaxLeft,
                                              TInt& aBalanceMaxRight,
-                                             TInt& aDefaultBalance, 
+                                             TInt& aDefaultBalance,
                                              TInt& aCurrentBalance )
     {
-    iVideoPlayer->VideoFrameSize(aVideoSize);               
+    iVideoPlayer->VideoFrameSize(aVideoSize);
     aDuration = iVideoPlayer->Duration();
     aMaxVolume = iVideoPlayer->MaxVolume();
     aCurrentVolume = iVideoPlayer->Volume();
@@ -83,15 +101,15 @@
             break;
         }
     iDefaultAutoScale = iAutoScale;
-    iVideoPlayer->SetAutoScale(iWindow, iAutoScale);                        
-    }    
+    iVideoPlayer->SetAutoScale(iWindow, iAutoScale);
+    }
 
 void COpMaxPlayerWindow::PreparePlayerWithFile( RFile& aFile )
     {
     TFileName fileName;
     aFile.FullName(fileName);
     iVideoPlayer->OpenFile(fileName);
-    
+
     // Now wait for MvpuoOpenComplete callback.
     PlayInitiated();
     }
@@ -99,8 +117,8 @@
 void COpMaxPlayerWindow::PreparePlayerWithUrl( const TDesC& aUrl )
     {
     iVideoPlayer->OpenFile(aUrl);
-    
-    // Now wait for MvpuoOpenComplete callback.            
+
+    // Now wait for MvpuoOpenComplete callback.
     }
 
 TInt COpMaxPlayerWindow::DoExecuteOperation( TInt /*aOperation*/ )
@@ -188,7 +206,7 @@
         case EAutoScaleStretch:
             iAutoScale = EAutoScaleNone;
             break;
-        }     
+        }
     iVideoPlayer->SetAutoScale(iWindow, iAutoScale);
     return 0;
     }
@@ -282,11 +300,11 @@
 void COpMaxPlayerWindow::MvpuoOpenComplete(TInt aError)
     {
     RDebug::Printf( "CONSOLEPLAYER MvpuoOpenComplete(%i)", aError );
-    
+
     if( aError == KErrNone )
         {
         iVideoPlayer->Prepare();
-    
+
         // Now wait for MvpuoPrepareComplete callback.
         }
     else
@@ -298,7 +316,7 @@
 void COpMaxPlayerWindow::MvpuoPrepareComplete(TInt aError)
     {
     RDebug::Printf( "CONSOLEPLAYER MvpuoPrepareComplete(%i)", aError );
-    
+
     if( aError == KErrNone )
         {
         iVideoPlayer->AddDisplayWindow( iWs, iScreenDevice, iWindow );
@@ -315,7 +333,7 @@
 void COpMaxPlayerWindow::MvpuoFrameReady(CFbsBitmap& /*aFrame*/,TInt aError)
     {
     RDebug::Printf( "CONSOLEPLAYER MvpuoFrameReady(%i)", aError );
-    
+
     if( aError != KErrNone )
         {
         Error( aError );
@@ -325,7 +343,7 @@
 void COpMaxPlayerWindow::MvpuoPlayComplete(TInt aError)
     {
     RDebug::Printf( "CONSOLEPLAYER MvpuoPlayComplete(%i)", aError );
-    
+
     if( aError == KErrNone )
         {
         PlayComplete();
@@ -337,8 +355,8 @@
     }
 
 void COpMaxPlayerWindow::MvpuoEvent(const TMMFEvent& aEvent)
-    {   
-    RDebug::Printf( "CONSOLEPLAYER MvpuoEvent event=%x error=%i", aEvent.iEventType.iUid, aEvent.iErrorCode );    
+    {
+    RDebug::Printf( "CONSOLEPLAYER MvpuoEvent event=%x error=%i", aEvent.iEventType.iUid, aEvent.iErrorCode );
 
     if( aEvent.iErrorCode != KErrNone )
         {
--- a/tsrc/consoleplayer/player/src/openmax_al/opmaxplayerwindow.h	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/player/src/openmax_al/opmaxplayerwindow.h	Tue Sep 21 11:21:54 2010 -0500
@@ -1,3 +1,21 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ * Source file for the main class of the ConsolePlayer test app.
+ *
+ */
+
 #ifndef __OPMAX_PLAYER_WINDOW_H__
 #define __OPMAX_PLAYER_WINDOW_H__
 
@@ -15,7 +33,7 @@
     {
 public:
 
-    static COpMaxPlayerWindow* NewL( RFs& aFs, 
+    static COpMaxPlayerWindow* NewL( RFs& aFs,
                                    RWsSession& aWs,
                                    CWsScreenDevice& aScreenDevice,
                                    const RWindowTreeNode &aParentWindow,
@@ -24,7 +42,7 @@
                                    bool aTransparent,
                                    TRgb aBackgroundColor,
                                    bool aSuppressGraphicsContext);
-    
+
     virtual ~COpMaxPlayerWindow();
 
     // inherited from CPlayerWindow
@@ -48,38 +66,38 @@
     virtual TInt StepBackward();
     virtual TInt SetPlayVelocity( TInt aVelocity );
     virtual TInt DoExecuteOperation( TInt aOperation );
-    virtual void InitializeParameters( TSize& aVideoSize, 
-                                       TTimeIntervalMicroSeconds& aDuration, 
-                                       TInt& aMaxVolume, 
+    virtual void InitializeParameters( TSize& aVideoSize,
+                                       TTimeIntervalMicroSeconds& aDuration,
+                                       TInt& aMaxVolume,
                                        TInt& aCurrentVolume,
                                        TInt& aBalanceCenter,
                                        TInt& aBalanceMaxLeft,
                                        TInt& aBalanceMaxRight,
-                                       TInt& aDefaultBalance, 
+                                       TInt& aDefaultBalance,
                                        TInt& aCurrentBalance );
-    virtual void SetDefaultAutoscaleMode( TAutoscaleMode aDefaultAutoscale );    
+    virtual void SetDefaultAutoscaleMode( TAutoscaleMode aDefaultAutoscale );
     virtual void PreparePlayerWithFile( RFile& aFile );
     virtual void PreparePlayerWithUrl( const TDesC& aUrl );
-    
-    
+
+
 private:
-    
+
     COpMaxPlayerWindow( RFs& aFs, RWsSession& aWs, CWsScreenDevice& aScreenDevice, bool aSuppressGraphicsContext );
-    
+
     void ConstructL( const RWindowTreeNode &aParentWindow, TPoint aTopRight, TSize aSize, bool aTransparent, TRgb aBackgroundColor );
-    
+
     // inherited from MVideoPlayerUtilityObserver
     virtual void MvpuoOpenComplete(TInt aError);
     virtual void MvpuoPrepareComplete(TInt aError);
     virtual void MvpuoFrameReady(CFbsBitmap& aFrame,TInt aError);
     virtual void MvpuoPlayComplete(TInt aError);
     virtual void MvpuoEvent(const TMMFEvent& aEvent);
-    
-    COpenMaxPlayerUtility*   iVideoPlayer;    
+
+    COpenMaxPlayerUtility*   iVideoPlayer;
     TVideoRotation          iRotation;
-    TAutoScaleType          iDefaultAutoScale;    
-    TAutoScaleType          iAutoScale;    
-  
+    TAutoScaleType          iDefaultAutoScale;
+    TAutoScaleType          iAutoScale;
+
     };
 
-#endif 
+#endif
--- a/tsrc/consoleplayer/thumbnail/group/thumbnailtester.mmp	Fri Sep 03 19:37:02 2010 -0500
+++ b/tsrc/consoleplayer/thumbnail/group/thumbnailtester.mmp	Tue Sep 21 11:21:54 2010 -0500
@@ -29,23 +29,23 @@
 EPOCHEAPSIZE  0x100000 0x1000000 //1MB-16MB
 
 START RESOURCE  thumbnailtester_reg.rss
-TARGETPATH 	    \private\10003a3f\apps
+TARGETPATH 	    /private/10003a3f/apps
 END 
 
-USERINCLUDE   ..\..\common
+USERINCLUDE   ../../common
 
-SOURCEPATH    ..\..\common
+SOURCEPATH    ../../common
 SOURCE        testappbase.cpp
 
-SOURCEPATH    ..\src
+SOURCEPATH    ../src
 SOURCE        thumbnailtester.cpp
 SOURCE        yuv2rgb24.cpp
 
 MW_LAYER_SYSTEMINCLUDE
-SYSTEMINCLUDE \epoc32\include
-SYSTEMINCLUDE \epoc32\include\stdapis
-USERINCLUDE   \sf\mw\helix\helix_ren\src\datatype\tools\metadataeng\common\pub
-USERINCLUDE   \sf\mw\helix\helix_ren\src\datatype\tools\metadataeng\utility\platform\symbian
+SYSTEMINCLUDE /epoc32/include
+SYSTEMINCLUDE /epoc32/include\stdapis
+USERINCLUDE   /sf/mw/helix/helix_ren/src/datatype/tools/metadataeng/common/pub
+USERINCLUDE   /sf/mw/helix/helix_ren/src/datatype/tools/metadataeng/utility/platform/symbian
 
 STATICLIBRARY hxmetadatautil.lib
 LIBRARY       flogger.lib