os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 //
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description: 
    15 //
    16 //
    17 //! @file
    18 //! @SYMTestSuiteName mm-mmf-devvideo-playback-mpeg4-pause-resume-automated
    19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
    20 //
    21 // Tests all public elements of the MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
    22 // classes as a means of confidence that the APIs work as expected.
    23 // 
    24 // The purpose is to provide a regression test suite of PublishedAll
    25 // APIs for: MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
    26 // The tests are fully automated.
    27 //
    28 
    29 
    30 
    31 LOAD_SUITE t_devvideo
    32 
    33 
    34 DELAY 2000
    35 
    36 
    37 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0001
    38 
    39 //!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0001
    40 //!@SYMAPI
    41 //!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
    42 //!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
    43 //!                CMMFDevVideoPlay::SelectDecoderL(TUid);
    44 //!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
    45 //!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
    46 //!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
    47 //!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
    48 //!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
    49 //!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
    50 //!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
    51 //!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
    52 //!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
    53 //!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
    54 //!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
    55 //!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
    56 //!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
    57 //!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
    58 //!                CMMFDevVideoPlay:: Initialize();
    59 //!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
    60 //!                CMMFDevVideoPlay:: Start();
    61 //!                CMMFDevVideoPlay:: Stop();
    62 //!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
    63 //!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
    64 //!                CMMFDevVideoPlay:: Resume();
    65 //!@SYMAuthor			alavariega
    66 //!@SYMCreationDate		16/6/2008
    67 //!@SYMTestCaseDesc		 NCP MPEG4 NTSC Video Play Pause resume stop at 30 fps 4Mbps
    68 //!@SYMTestActions
    69 //!                1. NewL(inputfile =  akiyo_ntsc_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
    70 //!                2. SelectDecoderL(dec = {MPEG4, uid})
    71 //!                3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid}) 
    72 //!                4. SetInputFormat (mimeType= {MIME,MP4V}; useDecoder = TRUE)
    73 //!                5. GetOutputFormatListL (useDecoder = TRUE)
    74 //!                6. PostProcessorInfoLC
    75 //!                7. FindCommonFormat
    76 //!                8. SetOutputFormatL(useDecoder = TRUE)
    77 //!                9. SetInputFormat (mimeType= {MIME,MP4V}; useDecoder = FALSE)
    78 //!                10. GetOutputFormatListL (useDecoder = TRUE)
    79 //!                11. SetOutputFormatL(useDecoder = FALSE)
    80 //!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KMP4MaxCodedSizeVGA})
    81 //!                13. ReturnHeader
    82 //!                14. SetVideoDestScreenL
    83 //!                15. SetPostProcessTypesL(combination = 44)
    84 //!                16. GetBufferOptions
    85 //!                17. SetBufferOptionsL
    86 //!                18. SetClockSource (synch = 1; framerate = 30)
    87 //!                19. Initialize
    88 //!                20. StartDirectScreenAccess (displayMode = EColor64K)
    89 //!                21. Start
    90 //!                ASYNC_DELAY 2000000 
    91 //!                22. Pause
    92 //!                DELAY 500000
    93 //!                23. Resume
    94 //!                ASYNC_DELAY 500000
    95 //!                24. Pause
    96 //!                DELAY 500000
    97 //!                25. Resume
    98 //!                OUTSTANDING
    99 //!                26. Stop
   100 //!                27. AbortDirectScreenAccess
   101 //!                28. ~
   102 //!@SYMTestStatus		Verified
   103 //!@SYMTestPriority		Normal
   104 //!@SYMTestExpectedResults
   105 //!                Video must be played with play pause action without any blurrness.
   106 //!@SYMTestType			CIT
   107 
   108 	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.ini
   109 		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   110 		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-NewL_command01
   111 		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SelectDecoderL_command02
   112 		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SelectPostProcessorL_command03
   113 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SetInputFormat_command04
   114 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-GetOutputFormatListL_command05
   115 		COMMAND		mmfdvplay		PostProcessorInfoLC
   116 		COMMAND		mmfdvplay		FindCommonFormat
   117 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SetOutputFormatL_command08
   118 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SetInputFormat_command09
   119 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-GetOutputFormatListL_command10
   120 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SetOutputFormatL_command11
   121 		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-GetHeaderInformationL_command12
   122 		COMMAND		mmfdvplay		ReturnHeader
   123 		COMMAND		mmfdvplay		SetVideoDestScreenL
   124 		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SetPostProcessTypesL_command15
   125 		COMMAND		mmfdvplay		GetBufferOptions
   126 		COMMAND		mmfdvplay		SetBufferOptionsL
   127 		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-SetClockSource_command18
   128 		COMMAND		mmfdvplay		Initialize
   129 		OUTSTANDING
   130 		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0001-0001-StartDirectScreenAccess_command20
   131 		COMMAND		mmfdvplay		Start
   132 		ASYNC_DELAY  2000000 
   133 		COMMAND		mmfdvplay		Pause
   134 		DELAY  500000 
   135 		COMMAND		mmfdvplay		Resume
   136 		ASYNC_DELAY  500000 
   137 		COMMAND		mmfdvplay		Pause
   138 		DELAY  500000 
   139 		COMMAND		mmfdvplay		Resume
   140 		OUTSTANDING
   141 		COMMAND		mmfdvplay		Stop
   142 		COMMAND		mmfdvplay		AbortDirectScreenAccess
   143 		COMMAND		mmfdvplay		~
   144 	END_TEST_BLOCK
   145 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0001
   146 
   147 
   148 
   149 
   150 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0002
   151 
   152 //!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0002
   153 //!@SYMAPI
   154 //!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
   155 //!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
   156 //!                CMMFDevVideoPlay::SelectDecoderL(TUid);
   157 //!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
   158 //!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
   159 //!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
   160 //!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
   161 //!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
   162 //!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
   163 //!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
   164 //!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
   165 //!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
   166 //!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
   167 //!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
   168 //!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
   169 //!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
   170 //!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
   171 //!                CMMFDevVideoPlay:: Initialize();
   172 //!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
   173 //!                CMMFDevVideoPlay:: Start();
   174 //!                CMMFDevVideoPlay:: Stop();
   175 //!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
   176 //!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
   177 //!                CMMFDevVideoPlay:: Resume();
   178 //!@SYMAuthor			alavariega
   179 //!@SYMCreationDate		16/6/2008
   180 //!@SYMTestCaseDesc		 NCP MPEG4 PAL Video Play Pause resume stop at 25 fps 4Mbps
   181 //!@SYMTestActions
   182 //!                1. NewL( inputfile =akiyo_pal_25fps_4M_dec.m4v; screen = TRUE;codec =EMPEG4;synch = 1; inputPath = {PATHVIDEOS, inputPath})
   183 //!                2. SelectDecoderL (dec = {MPEG4, uid})
   184 //!                3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid})
   185 //!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V})
   186 //!                5. GetOutputFormatListL(useDecoder = TRUE)
   187 //!                6. PostProcessorInfoLC
   188 //!                7. FindCommonFormat
   189 //!                8. SetOutputFormatL(useDecoder = TRUE)
   190 //!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V})
   191 //!                10. GetOutputFormatListL(useDecoder = FALSE)
   192 //!                11. SetOutputFormatL(useDecoder = FALSE)
   193 //!                12. GetHeaderInformationL(buffer = {BUFFER_SIZE, KMP4MaxCodedSizeVGA})
   194 //!                13. ReturnHeader
   195 //!                14. SetVideoDestScreenL
   196 //!                15. SetPostProcessTypesL(combination = 44)
   197 //!                16. GetBufferOptions
   198 //!                17. SetBufferOptionsL
   199 //!                18. SetClockSource(synch = 1; framerate = 25)
   200 //!                19. Initialize
   201 //!                OUTSTANDING
   202 //!                20. StartDirectScreenAccess (displayMode = EColor64K)
   203 //!                21. Start 
   204 //!                ASYNC_DELAY 2000000
   205 //!                22. Pause
   206 //!                DELAY 500000
   207 //!                23. Resume
   208 //!                ASYNC_DELAY 500000
   209 //!                24. Pause
   210 //!                DELAY 500000
   211 //!                25. Resume
   212 //!                OUTSTANDING
   213 //!                26. Stop
   214 //!                27. AbortDirectScreenAccess
   215 //!                28. ~
   216 //!@SYMTestStatus		Verified
   217 //!@SYMTestPriority		Normal
   218 //!@SYMTestExpectedResults
   219 //!                Video must be played with play pause action without any blurrness.
   220 //!@SYMTestType			CIT
   221 
   222 	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.ini
   223 		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   224 		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-NewL_command01
   225 		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SelectDecoderL_command02
   226 		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SelectPostProcessorL_command03
   227 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SetInputFormat_command04
   228 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-GetOutputFormatListL_command05
   229 		COMMAND		mmfdvplay		PostProcessorInfoLC
   230 		COMMAND		mmfdvplay		FindCommonFormat
   231 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SetOutputFormatL_command08
   232 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SetInputFormat_command09
   233 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-GetOutputFormatListL_command10
   234 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SetOutputFormatL_command11
   235 		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-GetHeaderInformationL_command12
   236 		COMMAND		mmfdvplay		ReturnHeader
   237 		COMMAND		mmfdvplay		SetVideoDestScreenL
   238 		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SetPostProcessTypesL_command15
   239 		COMMAND		mmfdvplay		GetBufferOptions
   240 		COMMAND		mmfdvplay		SetBufferOptionsL
   241 		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-SetClockSource_command18
   242 		COMMAND		mmfdvplay		Initialize
   243 		OUTSTANDING
   244 		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0002-0001-StartDirectScreenAccess_command20
   245 		COMMAND		mmfdvplay		Start
   246 		ASYNC_DELAY  2000000 
   247 		COMMAND		mmfdvplay		Pause
   248 		DELAY  500000 
   249 		COMMAND		mmfdvplay		Resume
   250 		ASYNC_DELAY  500000 
   251 		COMMAND		mmfdvplay		Pause
   252 		DELAY  500000 
   253 		COMMAND		mmfdvplay		Resume
   254 		OUTSTANDING
   255 		COMMAND		mmfdvplay		Stop
   256 		COMMAND		mmfdvplay		AbortDirectScreenAccess
   257 		COMMAND		mmfdvplay		~
   258 	END_TEST_BLOCK
   259 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0002
   260 
   261 
   262 
   263 
   264 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0003
   265 
   266 //!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0003
   267 //!@SYMAPI
   268 //!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
   269 //!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
   270 //!                CMMFDevVideoPlay::SelectDecoderL(TUid);
   271 //!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
   272 //!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
   273 //!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
   274 //!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
   275 //!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
   276 //!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
   277 //!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
   278 //!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
   279 //!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
   280 //!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
   281 //!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
   282 //!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
   283 //!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
   284 //!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
   285 //!                CMMFDevVideoPlay:: Initialize();
   286 //!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
   287 //!                CMMFDevVideoPlay:: Start();
   288 //!                CMMFDevVideoPlay:: Stop();
   289 //!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
   290 //!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
   291 //!                CMMFDevVideoPlay:: Resume();
   292 //!@SYMAuthor			alavariega
   293 //!@SYMCreationDate		16/6/2008
   294 //!@SYMTestCaseDesc		 NCP MPEG -4  CIF Video Play, Pause, resume, stop at 30 fps 3Mbps
   295 //!@SYMTestActions
   296 //!                1. NewL(inputfile =  paris_cif_30fps_3M_dec.m4v; screen = TRUE; codec =EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
   297 //!                2. SelectDecoderL (dec = {MPEG4, uid})
   298 //!                3. SelectPostProcessorL(postprocessor = {POSTPROCESSOR, uid}) 
   299 //!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V})
   300 //!                5. GetOutputFormatListL (useDecoder = TRUE)
   301 //!                6. PostProcessorInfoLC
   302 //!                7. FindCommonFormat
   303 //!                8. SetOutputFormatL(useDecoder = TRUE)
   304 //!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V})
   305 //!                10. GetOutputFormatListL (useDecoder = FALSE)
   306 //!                11. SetOutputFormatL (useDecoder = FALSE)
   307 //!                12. GetHeaderInformationL(buffer = {BUFFER_SIZE, KMP4MaxCodedSizeVGA})
   308 //!                13. ReturnHeader
   309 //!                14. SetVideoDestScreenL
   310 //!                15. SetPostProcessTypesL(combination = 40)
   311 //!                16. GetBufferOptions
   312 //!                17. SetBufferOptionsL
   313 //!                18. SetClockSource(synch = 1; framerate = 30)
   314 //!                19. Initialize
   315 //!                OUTSTANDING
   316 //!                20. StartDirectScreenAccess (displayMode = EColor64K)
   317 //!                21. Start 
   318 //!                ASYNC_DELAY 500000
   319 //!                22. Pause
   320 //!                DELAY 500000
   321 //!                23. Resume
   322 //!                ASYNC_DELAY 500000
   323 //!                24. Pause
   324 //!                DELAY 500000
   325 //!                25. Resume
   326 //!                OUTSTANDING
   327 //!                26. Stop
   328 //!                27. AbortDirectScreenAccess
   329 //!                28. ~
   330 //!@SYMTestStatus		Verified
   331 //!@SYMTestPriority		Normal
   332 //!@SYMTestExpectedResults
   333 //!                Video must be played with play pause action without any blurrness.
   334 //!@SYMTestType			CIT
   335 
   336 	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.ini
   337 		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   338 		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-NewL_command01
   339 		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SelectDecoderL_command02
   340 		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SelectPostProcessorL_command03
   341 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SetInputFormat_command04
   342 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-GetOutputFormatListL_command05
   343 		COMMAND		mmfdvplay		PostProcessorInfoLC
   344 		COMMAND		mmfdvplay		FindCommonFormat
   345 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SetOutputFormatL_command08
   346 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SetInputFormat_command09
   347 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-GetOutputFormatListL_command10
   348 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SetOutputFormatL_command11
   349 		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-GetHeaderInformationL_command12
   350 		COMMAND		mmfdvplay		ReturnHeader
   351 		COMMAND		mmfdvplay		SetVideoDestScreenL
   352 		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SetPostProcessTypesL_command15
   353 		COMMAND		mmfdvplay		GetBufferOptions
   354 		COMMAND		mmfdvplay		SetBufferOptionsL
   355 		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-SetClockSource_command18
   356 		COMMAND		mmfdvplay		Initialize
   357 		OUTSTANDING
   358 		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0003-0001-StartDirectScreenAccess_command20
   359 		COMMAND		mmfdvplay		Start
   360 		ASYNC_DELAY  500000 
   361 		COMMAND		mmfdvplay		Pause
   362 		DELAY  500000 
   363 		COMMAND		mmfdvplay		Resume
   364 		ASYNC_DELAY  500000 
   365 		COMMAND		mmfdvplay		Pause
   366 		DELAY  500000 
   367 		COMMAND		mmfdvplay		Resume
   368 		OUTSTANDING
   369 		COMMAND		mmfdvplay		Stop
   370 		COMMAND		mmfdvplay		AbortDirectScreenAccess
   371 		COMMAND		mmfdvplay		~
   372 	END_TEST_BLOCK
   373 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0003
   374 
   375 
   376 
   377 
   378 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0004
   379 
   380 //!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0004
   381 //!@SYMAPI
   382 //!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
   383 //!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
   384 //!                CMMFDevVideoPlay::SelectDecoderL(TUid);
   385 //!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
   386 //!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
   387 //!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
   388 //!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
   389 //!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
   390 //!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
   391 //!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
   392 //!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
   393 //!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
   394 //!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
   395 //!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
   396 //!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
   397 //!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
   398 //!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
   399 //!                CMMFDevVideoPlay:: Initialize();
   400 //!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
   401 //!                CMMFDevVideoPlay:: Start();
   402 //!                CMMFDevVideoPlay:: Stop();
   403 //!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
   404 //!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
   405 //!                CMMFDevVideoPlay:: Resume();
   406 //!@SYMAuthor			alavariega
   407 //!@SYMCreationDate		16/6/2008
   408 //!@SYMTestCaseDesc		 NCP MPEG -4  QCIF Video Play, Pause, resume, stop at 30 fps 3Mbps
   409 //!@SYMTestActions
   410 //!                1. NewL (inputfile =  paris_qcif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
   411 //!                2. SelectDecoderL(dec = {MPEG4, uid})
   412 //!                3. SelectPostProcessorL(postprocessor = {POSTPROCESSOR, uid}) 
   413 //!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V})
   414 //!                5. GetOutputFormatListL (useDecoder = TRUE)
   415 //!                6. PostProcessorInfoLC 
   416 //!                7. FindCommonFormat
   417 //!                8. SetOutputFormatL(useDecoder = TRUE)
   418 //!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V})
   419 //!                10. GetOutputFormatListL(useDecoder = FALSE)
   420 //!                11. SetOutputFormatL (useDecoder = FALSE)
   421 //!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KMP4MaxCodedSizeCIF})
   422 //!                13. ReturnHeader
   423 //!                14. SetVideoDestScreenL
   424 //!                15. SetPostProcessTypesL(combination = 40)
   425 //!                16. GetBufferOptions
   426 //!                17. SetBufferOptionsL
   427 //!                18. SetClockSource (synch = 1; framerate = 30)
   428 //!                19. Initialize
   429 //!                OUTSTANDING
   430 //!                20. StartDirectScreenAccess(displayMode = EColor64K)
   431 //!                21. Start 
   432 //!                ASYNC_DELAY 500000
   433 //!                22. Pause
   434 //!                DELAY 500000
   435 //!                23. Resume
   436 //!                ASYNC_DELAY 500000
   437 //!                24. Pause
   438 //!                DELAY 500000
   439 //!                25. Resume
   440 //!                OUTSTANDING
   441 //!                26. Stop
   442 //!                27. AbortDirectScreenAccess
   443 //!                28. ~
   444 //!                
   445 //!@SYMTestStatus		Verified
   446 //!@SYMTestPriority		Normal
   447 //!@SYMTestExpectedResults
   448 //!                Video must be played with play pause action without any blurrness.
   449 //!@SYMTestType			CIT
   450 
   451 	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.ini
   452 		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   453 		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-NewL_command01
   454 		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SelectDecoderL_command02
   455 		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SelectPostProcessorL_command03
   456 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SetInputFormat_command04
   457 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-GetOutputFormatListL_command05
   458 		COMMAND		mmfdvplay		PostProcessorInfoLC
   459 		COMMAND		mmfdvplay		FindCommonFormat
   460 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SetOutputFormatL_command08
   461 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SetInputFormat_command09
   462 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-GetOutputFormatListL_command10
   463 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SetOutputFormatL_command11
   464 		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-GetHeaderInformationL_command12
   465 		COMMAND		mmfdvplay		ReturnHeader
   466 		COMMAND		mmfdvplay		SetVideoDestScreenL
   467 		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SetPostProcessTypesL_command15
   468 		COMMAND		mmfdvplay		GetBufferOptions
   469 		COMMAND		mmfdvplay		SetBufferOptionsL
   470 		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-SetClockSource_command18
   471 		COMMAND		mmfdvplay		Initialize
   472 		OUTSTANDING
   473 		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0004-0001-StartDirectScreenAccess_command20
   474 		COMMAND		mmfdvplay		Start
   475 		ASYNC_DELAY  500000 
   476 		COMMAND		mmfdvplay		Pause
   477 		DELAY  500000 
   478 		COMMAND		mmfdvplay		Resume
   479 		ASYNC_DELAY  500000 
   480 		COMMAND		mmfdvplay		Pause
   481 		DELAY  500000 
   482 		COMMAND		mmfdvplay		Resume
   483 		OUTSTANDING
   484 		COMMAND		mmfdvplay		Stop
   485 		COMMAND		mmfdvplay		AbortDirectScreenAccess
   486 		COMMAND		mmfdvplay		~
   487 	END_TEST_BLOCK
   488 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0004
   489 
   490 
   491 
   492 
   493 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0005
   494 
   495 //!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0005
   496 //!@SYMAPI
   497 //!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
   498 //!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
   499 //!                CMMFDevVideoPlay::SelectDecoderL(TUid);
   500 //!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
   501 //!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
   502 //!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
   503 //!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
   504 //!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
   505 //!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
   506 //!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
   507 //!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
   508 //!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
   509 //!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
   510 //!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
   511 //!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
   512 //!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
   513 //!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
   514 //!                CMMFDevVideoPlay:: Initialize();
   515 //!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
   516 //!                CMMFDevVideoPlay:: Start();
   517 //!                CMMFDevVideoPlay:: Stop();
   518 //!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
   519 //!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
   520 //!                CMMFDevVideoPlay:: Resume();
   521 //!@SYMAuthor			alavariega
   522 //!@SYMCreationDate		16/6/2008
   523 //!@SYMTestCaseDesc		 NCP MPEG -4  QVGA Video Play, Pause, resume, stop at 30 fps 3Mbps
   524 //!@SYMTestActions
   525 //!                1. NewL(inputfile =  MPEG4_QVGA_30fps_3M_dec.m4v; screen = TRUE;codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
   526 //!                2. SelectDecoderL (dec = {MPEG4, uid})
   527 //!                3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid})
   528 //!                4. SetInputFormat(useDecoder = TRUE; mimeType= {MIME,MP4V})
   529 //!                5. GetOutputFormatListL (useDecoder = TRUE)
   530 //!                6. PostProcessorInfoLC
   531 //!                7. FindCommonFormat
   532 //!                8. SetOutputFormatL (useDecoder = TRUE)
   533 //!                9. SetInputFormat(useDecoder = FALSE; mimeType= {MIME,MP4V})
   534 //!                10. GetOutputFormatListL(useDecoder = FALSE)
   535 //!                11. SetOutputFormatL(useDecoder = FALSE)
   536 //!                12. GetHeaderInformationL(buffer = {BUFFER_SIZE, KMP4MaxCodedSizeVGA})
   537 //!                13. ReturnHeader
   538 //!                14. SetVideoDestScreenL
   539 //!                15. SetPostProcessTypesL(combination = 40)
   540 //!                16. GetBufferOptions
   541 //!                17. SetBufferOptionsL
   542 //!                18. SetClockSource(synch = 1; framerate = 30)
   543 //!                19. Initialize
   544 //!                OUTSTANDING
   545 //!                20. StartDirectScreenAccess(displayMode = EColor64K)
   546 //!                21. Start 
   547 //!                ASYNC_DELAY 500000
   548 //!                22. Pause
   549 //!                DELAY 500000
   550 //!                23. Resume
   551 //!                ASYNC_DELAY 500000
   552 //!                24. Pause
   553 //!                DELAY 500000
   554 //!                25. Resume
   555 //!                OUTSTANDING
   556 //!                26. Stop
   557 //!                27. AbortDirectScreenAccess
   558 //!                28. ~
   559 //!                
   560 //!@SYMTestStatus		Verified
   561 //!@SYMTestPriority		Normal
   562 //!@SYMTestExpectedResults
   563 //!                Video must be played with play pause action without any blurrness.
   564 //!@SYMTestType			CIT
   565 
   566 	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.ini
   567 		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   568 		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-NewL_command01
   569 		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SelectDecoderL_command02
   570 		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SelectPostProcessorL_command03
   571 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SetInputFormat_command04
   572 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-GetOutputFormatListL_command05
   573 		COMMAND		mmfdvplay		PostProcessorInfoLC
   574 		COMMAND		mmfdvplay		FindCommonFormat
   575 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SetOutputFormatL_command08
   576 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SetInputFormat_command09
   577 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-GetOutputFormatListL_command10
   578 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SetOutputFormatL_command11
   579 		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-GetHeaderInformationL_command12
   580 		COMMAND		mmfdvplay		ReturnHeader
   581 		COMMAND		mmfdvplay		SetVideoDestScreenL
   582 		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SetPostProcessTypesL_command15
   583 		COMMAND		mmfdvplay		GetBufferOptions
   584 		COMMAND		mmfdvplay		SetBufferOptionsL
   585 		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-SetClockSource_command18
   586 		COMMAND		mmfdvplay		Initialize
   587 		OUTSTANDING
   588 		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0005-0001-StartDirectScreenAccess_command20
   589 		COMMAND		mmfdvplay		Start
   590 		ASYNC_DELAY  500000 
   591 		COMMAND		mmfdvplay		Pause
   592 		DELAY  500000 
   593 		COMMAND		mmfdvplay		Resume
   594 		ASYNC_DELAY  500000 
   595 		COMMAND		mmfdvplay		Pause
   596 		DELAY  500000 
   597 		COMMAND		mmfdvplay		Resume
   598 		OUTSTANDING
   599 		COMMAND		mmfdvplay		Stop
   600 		COMMAND		mmfdvplay		AbortDirectScreenAccess
   601 		COMMAND		mmfdvplay		~
   602 	END_TEST_BLOCK
   603 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0005
   604 
   605 
   606 
   607 
   608 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0006
   609 
   610 //!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0006
   611 //!@SYMAPI
   612 //!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
   613 //!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
   614 //!                CMMFDevVideoPlay::SelectDecoderL(TUid);
   615 //!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
   616 //!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
   617 //!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
   618 //!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
   619 //!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
   620 //!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
   621 //!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
   622 //!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
   623 //!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
   624 //!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
   625 //!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
   626 //!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
   627 //!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
   628 //!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
   629 //!                CMMFDevVideoPlay:: Initialize();
   630 //!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
   631 //!                CMMFDevVideoPlay:: Start();
   632 //!                CMMFDevVideoPlay:: Stop();
   633 //!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
   634 //!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
   635 //!                CMMFDevVideoPlay:: Resume();
   636 //!@SYMAuthor			alavariega
   637 //!@SYMCreationDate		16/6/2008
   638 //!@SYMTestCaseDesc		 NCP MPEG -4  SQCIF Video Play, Pause, resume, stop at 30 fps 3Mbps
   639 //!@SYMTestActions
   640 //!                1. NewL(inputfile = foreman_sqcif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
   641 //!                2. SelectDecoderL(dec = {MPEG4, uid})
   642 //!                3. SelectPostProcessorL(postprocessor = {POSTPROCESSOR, uid}) 
   643 //!                4. SetInputFormat(useDecoder = TRUE; mimeType= {MIME,MP4V})
   644 //!                5. GetOutputFormatListL(useDecoder = TRUE)
   645 //!                6. PostProcessorInfoLC
   646 //!                7. FindCommonFormat
   647 //!                8. SetOutputFormatL(useDecoder = TRUE)
   648 //!                9. SetInputFormat(useDecoder = FALSE; mimeType= {MIME,MP4V})
   649 //!                10. GetOutputFormatListL(useDecoder = FALSE)
   650 //!                11. SetOutputFormatL(useDecoder = FALSE)
   651 //!                12. GetHeaderInformationL(buffer = {BUFFER_SIZE, KMP4MaxCodedSizeQCIF})
   652 //!                13. ReturnHeader
   653 //!                14. SetVideoDestScreenL
   654 //!                15. SetPostProcessTypesL(combination = 40)
   655 //!                16. GetBufferOptions
   656 //!                17. SetBufferOptionsL
   657 //!                18. SetClockSource(synch = 1; framerate = 30)
   658 //!                19. Initialize
   659 //!                OUTSTANDING
   660 //!                20. StartDirectScreenAccess(displayMode = EColor64K)
   661 //!                21. Start 
   662 //!                ASYNC_DELAY 500000
   663 //!                22. Pause
   664 //!                DELAY 500000
   665 //!                23. Resume
   666 //!                ASYNC_DELAY 500000
   667 //!                24. Pause
   668 //!                DELAY 500000
   669 //!                25. Resume
   670 //!                OUTSTANDING
   671 //!                26. Stop
   672 //!                27. AbortDirectScreenAccess
   673 //!                28. ~
   674 //!                
   675 //!@SYMTestStatus		Verified
   676 //!@SYMTestPriority		Normal
   677 //!@SYMTestExpectedResults
   678 //!                Video must be played with play pause action without any blurrness.
   679 //!@SYMTestType			CIT
   680 
   681 	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.ini
   682 		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   683 		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-NewL_command01
   684 		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SelectDecoderL_command02
   685 		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SelectPostProcessorL_command03
   686 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SetInputFormat_command04
   687 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-GetOutputFormatListL_command05
   688 		COMMAND		mmfdvplay		PostProcessorInfoLC
   689 		COMMAND		mmfdvplay		FindCommonFormat
   690 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SetOutputFormatL_command08
   691 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SetInputFormat_command09
   692 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-GetOutputFormatListL_command10
   693 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SetOutputFormatL_command11
   694 		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-GetHeaderInformationL_command12
   695 		COMMAND		mmfdvplay		ReturnHeader
   696 		COMMAND		mmfdvplay		SetVideoDestScreenL
   697 		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SetPostProcessTypesL_command15
   698 		COMMAND		mmfdvplay		GetBufferOptions
   699 		COMMAND		mmfdvplay		SetBufferOptionsL
   700 		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-SetClockSource_command18
   701 		COMMAND		mmfdvplay		Initialize
   702 		OUTSTANDING
   703 		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0006-0001-StartDirectScreenAccess_command20
   704 		COMMAND		mmfdvplay		Start
   705 		ASYNC_DELAY  500000 
   706 		COMMAND		mmfdvplay		Pause
   707 		DELAY  500000 
   708 		COMMAND		mmfdvplay		Resume
   709 		ASYNC_DELAY  500000 
   710 		COMMAND		mmfdvplay		Pause
   711 		DELAY  500000 
   712 		COMMAND		mmfdvplay		Resume
   713 		OUTSTANDING
   714 		COMMAND		mmfdvplay		Stop
   715 		COMMAND		mmfdvplay		AbortDirectScreenAccess
   716 		COMMAND		mmfdvplay		~
   717 	END_TEST_BLOCK
   718 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0006
   719 
   720 
   721 
   722 
   723 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0007
   724 
   725 //!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0007
   726 //!@SYMAPI
   727 //!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
   728 //!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
   729 //!                CMMFDevVideoPlay::SelectDecoderL(TUid);
   730 //!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
   731 //!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
   732 //!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
   733 //!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
   734 //!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
   735 //!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
   736 //!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
   737 //!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
   738 //!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
   739 //!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
   740 //!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
   741 //!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
   742 //!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
   743 //!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
   744 //!                CMMFDevVideoPlay:: Initialize();
   745 //!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
   746 //!                CMMFDevVideoPlay:: Start();
   747 //!                CMMFDevVideoPlay:: Stop();
   748 //!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
   749 //!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
   750 //!                CMMFDevVideoPlay:: Resume();
   751 //!@SYMAuthor			alavariega
   752 //!@SYMCreationDate		16/6/2008
   753 //!@SYMTestCaseDesc		 NCP MPEG -4  VGA Video Play Pause resume stop at 30 fps 3Mbps
   754 //!@SYMTestActions
   755 //!                1. NewL(inputfile =  MPEG4_VGA_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
   756 //!                2. SelectDecoderL(dec = {MPEG4, uid})
   757 //!                3. SelectPostProcessorL(postprocessor = {POSTPROCESSOR, uid}) 
   758 //!                4. SetInputFormat(useDecoder = TRUE; mimeType= {MIME,MP4V})
   759 //!                5. GetOutputFormatListL(useDecoder = TRUE)
   760 //!                6. PostProcessorInfoLC
   761 //!                7. FindCommonFormat
   762 //!                8. SetOutputFormatL(useDecoder = TRUE)
   763 //!                9. SetInputFormat(useDecoder = FALSE; mimeType= {MIME,MP4V})
   764 //!                10. GetOutputFormatListL(useDecoder = FALSE)
   765 //!                11. SetOutputFormatL(useDecoder = FALSE)
   766 //!                12. GetHeaderInformationL(buffer = {BUFFER_SIZE, KMP4MaxCodedSizeVGA})
   767 //!                13. ReturnHeader
   768 //!                14. SetVideoDestScreenL
   769 //!                15. SetPostProcessTypesL(combination = 40)
   770 //!                16. GetBufferOptions
   771 //!                17. SetBufferOptionsL
   772 //!                18. SetClockSource(synch = 1; framerate = 25)
   773 //!                19. Initialize
   774 //!                OUTSTANDING
   775 //!                20. StartDirectScreenAccess(displayMode = EColor64K)
   776 //!                21. Start 
   777 //!                ASYNC_DELAY 500000
   778 //!                22. Pause
   779 //!                DELAY 500000
   780 //!                23. Resume
   781 //!                ASYNC_DELAY 500000
   782 //!                24. Pause
   783 //!                DELAY 500000
   784 //!                25. Resume
   785 //!                OUTSTANDING
   786 //!                26. Stop
   787 //!                27. AbortDirectScreenAccess
   788 //!                28. ~
   789 //!@SYMTestStatus		Verified
   790 //!@SYMTestPriority		Normal
   791 //!@SYMTestExpectedResults
   792 //!                Video must be played with play pause action without any blurrness.
   793 //!@SYMTestType			CIT
   794 
   795 	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-pause-resume-automated.ini
   796 		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   797 		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-NewL_command01
   798 		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SelectDecoderL_command02
   799 		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SelectPostProcessorL_command03
   800 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SetInputFormat_command04
   801 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-GetOutputFormatListL_command05
   802 		COMMAND		mmfdvplay		PostProcessorInfoLC
   803 		COMMAND		mmfdvplay		FindCommonFormat
   804 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SetOutputFormatL_command08
   805 		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SetInputFormat_command09
   806 		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-GetOutputFormatListL_command10
   807 		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SetOutputFormatL_command11
   808 		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-GetHeaderInformationL_command12
   809 		COMMAND		mmfdvplay		ReturnHeader
   810 		COMMAND		mmfdvplay		SetVideoDestScreenL
   811 		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SetPostProcessTypesL_command15
   812 		COMMAND		mmfdvplay		GetBufferOptions
   813 		COMMAND		mmfdvplay		SetBufferOptionsL
   814 		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-SetClockSource_command18
   815 		COMMAND		mmfdvplay		Initialize
   816 		OUTSTANDING
   817 		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Pause-Resume-0007-0001-StartDirectScreenAccess_command20
   818 		COMMAND		mmfdvplay		Start
   819 		ASYNC_DELAY  500000 
   820 		COMMAND		mmfdvplay		Pause
   821 		DELAY  500000 
   822 		COMMAND		mmfdvplay		Resume
   823 		ASYNC_DELAY  500000 
   824 		COMMAND		mmfdvplay		Pause
   825 		DELAY  500000 
   826 		COMMAND		mmfdvplay		Resume
   827 		OUTSTANDING
   828 		COMMAND		mmfdvplay		Stop
   829 		COMMAND		mmfdvplay		AbortDirectScreenAccess
   830 		COMMAND		mmfdvplay		~
   831 	END_TEST_BLOCK
   832 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-PAUSE-RESUME-AUTOMATED-0007