os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-mpeg4-scale-automated.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
//
sl@0
    17
//! @file
sl@0
    18
//! @SYMTestSuiteName mm-mmf-devvideo-playback-mpeg4-scale-automated
sl@0
    19
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
sl@0
    20
//
sl@0
    21
// Tests all public elements of the MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
sl@0
    22
// classes as a means of confidence that the APIs work as expected.
sl@0
    23
// 
sl@0
    24
// The purpose is to provide a regression test suite of PublishedAll
sl@0
    25
// APIs for: MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
sl@0
    26
// The tests are fully automated.
sl@0
    27
//
sl@0
    28
sl@0
    29
sl@0
    30
sl@0
    31
LOAD_SUITE t_devvideo
sl@0
    32
sl@0
    33
DELAY 2000
sl@0
    34
sl@0
    35
sl@0
    36
sl@0
    37
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0001
sl@0
    38
sl@0
    39
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0001
sl@0
    40
//!@SYMAPI
sl@0
    41
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
    42
//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
sl@0
    43
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
    44
//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
sl@0
    45
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
    46
//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
sl@0
    47
//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
sl@0
    48
//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
sl@0
    49
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
sl@0
    50
//!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
sl@0
    51
//!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
sl@0
    52
//!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
sl@0
    53
//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
sl@0
    54
//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
sl@0
    55
//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
sl@0
    56
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
sl@0
    57
//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
sl@0
    58
//!                CMMFDevVideoPlay:: Initialize();
sl@0
    59
//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
sl@0
    60
//!                CMMFDevVideoPlay:: Start();
sl@0
    61
//!                CMMFDevVideoPlay:: Stop();
sl@0
    62
//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
sl@0
    63
//!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
sl@0
    64
//!                CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool )
sl@0
    65
//!@SYMAuthor			alavariega
sl@0
    66
//!@SYMCreationDate		16/6/2008
sl@0
    67
//!@SYMTestCaseDesc		 NCP MPEG -4  QCIF Video FULL SCREEN  at 30 fps 3Mbps
sl@0
    68
//!@SYMTestActions
sl@0
    69
//!                1. NewL (inputfile = paris_qcif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
sl@0
    70
//!                2. SelectDecoderL (dec = {DECODERS, MPEG4}) 
sl@0
    71
//!                3. SelectPostProcessorL  (postprocessor = {POSTPROCESSOR, uid})
sl@0
    72
//!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V})
sl@0
    73
//!                5. GetOutputFormatListL (useDecoder = TRUE) 
sl@0
    74
//!                6. PostProcessorInfoLC
sl@0
    75
//!                7. FindCommonFormat
sl@0
    76
//!                8. SetOutputFormatL  (useDecoder = TRUE)
sl@0
    77
//!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V})
sl@0
    78
//!                10. GetOutputFormatListL (useDecoder = FALSE)
sl@0
    79
//!                11. SetOutputFormatL(useDecoder = TRUE) 
sl@0
    80
//!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
sl@0
    81
//!                13. ReturnHeader
sl@0
    82
//!                14. SetVideoDestScreenL
sl@0
    83
//!                15. SetPostProcessTypesL (combination = 48)
sl@0
    84
//!                16. GetBufferOptions
sl@0
    85
//!                17. SetBufferOptionsL
sl@0
    86
//!                18. SetClockSource  (synch = 1; framerate = 30)
sl@0
    87
//!                19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
sl@0
    88
//!                20. Initialize
sl@0
    89
//!                OUTSTANDING
sl@0
    90
//!                21. StartDirectScreenAccess (displayMode = EColor64K)
sl@0
    91
//!                22. Start 
sl@0
    92
//!                OUTSTANDING
sl@0
    93
//!                23. Stop
sl@0
    94
//!                24. AbortDirectScreenAccess
sl@0
    95
//!                25. ~
sl@0
    96
//!@SYMTestStatus		Verified
sl@0
    97
//!@SYMTestPriority		Normal
sl@0
    98
//!@SYMTestExpectedResults
sl@0
    99
//!                Video must be played on the full screen without any blurrness.
sl@0
   100
//!@SYMTestType			CIT
sl@0
   101
sl@0
   102
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-scale-automated.ini
sl@0
   103
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
   104
		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-NewL_command01
sl@0
   105
		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SelectDecoderL_command02
sl@0
   106
		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SelectPostProcessorL_command03
sl@0
   107
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetInputFormat_command04
sl@0
   108
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-GetOutputFormatListL_command05
sl@0
   109
		COMMAND		mmfdvplay		PostProcessorInfoLC
sl@0
   110
		COMMAND		mmfdvplay		FindCommonFormat
sl@0
   111
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetOutputFormatL_command08
sl@0
   112
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetInputFormat_command09
sl@0
   113
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-GetOutputFormatListL_command10
sl@0
   114
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetOutputFormatL_command11
sl@0
   115
		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-GetHeaderInformationL_command12
sl@0
   116
		COMMAND		mmfdvplay		ReturnHeader
sl@0
   117
		COMMAND		mmfdvplay		SetVideoDestScreenL
sl@0
   118
		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetPostProcessTypesL_command15
sl@0
   119
		COMMAND		mmfdvplay		GetBufferOptions
sl@0
   120
		COMMAND		mmfdvplay		SetBufferOptionsL
sl@0
   121
		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetClockSource_command18
sl@0
   122
		COMMAND		mmfdvplay		SetScaleOptionsL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetScaleOptionsL_command19
sl@0
   123
		COMMAND		mmfdvplay		Initialize
sl@0
   124
		OUTSTANDING
sl@0
   125
		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-StartDirectScreenAccess_command21
sl@0
   126
		COMMAND		mmfdvplay		Start
sl@0
   127
		OUTSTANDING
sl@0
   128
		COMMAND		mmfdvplay		Stop
sl@0
   129
		COMMAND		mmfdvplay		AbortDirectScreenAccess
sl@0
   130
		COMMAND		mmfdvplay		~
sl@0
   131
	END_TEST_BLOCK
sl@0
   132
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0001
sl@0
   133
sl@0
   134
sl@0
   135
sl@0
   136
sl@0
   137
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0002
sl@0
   138
sl@0
   139
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0002
sl@0
   140
//!@SYMAPI
sl@0
   141
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
   142
//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
sl@0
   143
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
   144
//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
sl@0
   145
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
   146
//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
sl@0
   147
//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
sl@0
   148
//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
sl@0
   149
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
sl@0
   150
//!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
sl@0
   151
//!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
sl@0
   152
//!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
sl@0
   153
//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
sl@0
   154
//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
sl@0
   155
//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
sl@0
   156
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
sl@0
   157
//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
sl@0
   158
//!                CMMFDevVideoPlay:: Initialize();
sl@0
   159
//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
sl@0
   160
//!                CMMFDevVideoPlay:: Start();
sl@0
   161
//!                CMMFDevVideoPlay:: Stop();
sl@0
   162
//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
sl@0
   163
//!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
sl@0
   164
//!                CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool )
sl@0
   165
//!@SYMAuthor			alavariega
sl@0
   166
//!@SYMCreationDate		16/6/2008
sl@0
   167
//!@SYMTestCaseDesc		 NCP MPEG -4  SQCIF Video FULL SCREEN  at 30 fps 3Mbps
sl@0
   168
//!@SYMTestActions
sl@0
   169
//!                1. NewL (inputfile = foreman_sqcif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
sl@0
   170
//!                2. SelectDecoderL (dec = {DECODERS, MPEG4}) 
sl@0
   171
//!                3. SelectPostProcessorL  (postprocessor = {POSTPROCESSOR, uid})
sl@0
   172
//!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V})
sl@0
   173
//!                5. GetOutputFormatListL (useDecoder = TRUE) 
sl@0
   174
//!                6. PostProcessorInfoLC
sl@0
   175
//!                7. FindCommonFormat
sl@0
   176
//!                8. SetOutputFormatL  (useDecoder = TRUE)
sl@0
   177
//!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V})
sl@0
   178
//!                10. GetOutputFormatListL (useDecoder = FALSE)
sl@0
   179
//!                11. SetOutputFormatL(useDecoder = TRUE) 
sl@0
   180
//!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
sl@0
   181
//!                13. ReturnHeader
sl@0
   182
//!                14. SetVideoDestScreenL
sl@0
   183
//!                15. SetPostProcessTypesL (combination = 48)
sl@0
   184
//!                16. GetBufferOptions
sl@0
   185
//!                17. SetBufferOptionsL
sl@0
   186
//!                18. SetClockSource  (synch = 1; framerate = 30)
sl@0
   187
//!                19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
sl@0
   188
//!                20. Initialize
sl@0
   189
//!                OUTSTANDING
sl@0
   190
//!                21. StartDirectScreenAccess (displayMode = EColor64K)
sl@0
   191
//!                22. Start 
sl@0
   192
//!                OUTSTANDING
sl@0
   193
//!                23. Stop
sl@0
   194
//!                24. AbortDirectScreenAccess
sl@0
   195
//!                25. ~
sl@0
   196
//!@SYMTestStatus		Verified
sl@0
   197
//!@SYMTestPriority		Normal
sl@0
   198
//!@SYMTestExpectedResults
sl@0
   199
//!                Video must be played on the full screen without any blurrness.
sl@0
   200
//!@SYMTestType			CIT
sl@0
   201
sl@0
   202
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-scale-automated.ini
sl@0
   203
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
   204
		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-NewL_command01
sl@0
   205
		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SelectDecoderL_command02
sl@0
   206
		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SelectPostProcessorL_command03
sl@0
   207
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetInputFormat_command04
sl@0
   208
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-GetOutputFormatListL_command05
sl@0
   209
		COMMAND		mmfdvplay		PostProcessorInfoLC
sl@0
   210
		COMMAND		mmfdvplay		FindCommonFormat
sl@0
   211
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetOutputFormatL_command08
sl@0
   212
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetInputFormat_command09
sl@0
   213
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-GetOutputFormatListL_command10
sl@0
   214
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetOutputFormatL_command11
sl@0
   215
		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-GetHeaderInformationL_command12
sl@0
   216
		COMMAND		mmfdvplay		ReturnHeader
sl@0
   217
		COMMAND		mmfdvplay		SetVideoDestScreenL
sl@0
   218
		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetPostProcessTypesL_command15
sl@0
   219
		COMMAND		mmfdvplay		GetBufferOptions
sl@0
   220
		COMMAND		mmfdvplay		SetBufferOptionsL
sl@0
   221
		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetClockSource_command18
sl@0
   222
		COMMAND		mmfdvplay		SetScaleOptionsL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetScaleOptionsL_command19
sl@0
   223
		COMMAND		mmfdvplay		Initialize
sl@0
   224
		OUTSTANDING
sl@0
   225
		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-StartDirectScreenAccess_command21
sl@0
   226
		COMMAND		mmfdvplay		Start
sl@0
   227
		OUTSTANDING
sl@0
   228
		COMMAND		mmfdvplay		Stop
sl@0
   229
		COMMAND		mmfdvplay		AbortDirectScreenAccess
sl@0
   230
		COMMAND		mmfdvplay		~
sl@0
   231
	END_TEST_BLOCK
sl@0
   232
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0002
sl@0
   233
sl@0
   234
sl@0
   235
sl@0
   236
sl@0
   237
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0003
sl@0
   238
sl@0
   239
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0003
sl@0
   240
//!@SYMAPI
sl@0
   241
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
   242
//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
sl@0
   243
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
   244
//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
sl@0
   245
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
   246
//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
sl@0
   247
//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
sl@0
   248
//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
sl@0
   249
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
sl@0
   250
//!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
sl@0
   251
//!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
sl@0
   252
//!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
sl@0
   253
//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
sl@0
   254
//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
sl@0
   255
//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
sl@0
   256
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
sl@0
   257
//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
sl@0
   258
//!                CMMFDevVideoPlay:: Initialize();
sl@0
   259
//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
sl@0
   260
//!                CMMFDevVideoPlay:: Start();
sl@0
   261
//!                CMMFDevVideoPlay:: Stop();
sl@0
   262
//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
sl@0
   263
//!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
sl@0
   264
//!                CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool )
sl@0
   265
//!@SYMAuthor			alavariega
sl@0
   266
//!@SYMCreationDate		16/6/2008
sl@0
   267
//!@SYMTestCaseDesc		NCP MPEG -4  CIF Video FULL SCREEN  at 30 fps 3Mbps
sl@0
   268
//!@SYMTestActions
sl@0
   269
//!                1. NewL (inputfile = paris_cif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
sl@0
   270
//!                2. SelectDecoderL (dec = {DECODERS, MPEG4}) 
sl@0
   271
//!                3. SelectPostProcessorL  (postprocessor = {POSTPROCESSOR, uid})
sl@0
   272
//!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V})
sl@0
   273
//!                5. GetOutputFormatListL (useDecoder = TRUE) 
sl@0
   274
//!                6. PostProcessorInfoLC
sl@0
   275
//!                7. FindCommonFormat
sl@0
   276
//!                8. SetOutputFormatL  (useDecoder = TRUE)
sl@0
   277
//!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V})
sl@0
   278
//!                10. GetOutputFormatListL (useDecoder = FALSE)
sl@0
   279
//!                11. SetOutputFormatL(useDecoder = TRUE) 
sl@0
   280
//!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
sl@0
   281
//!                13. ReturnHeader
sl@0
   282
//!                14. SetVideoDestScreenL
sl@0
   283
//!                15. SetPostProcessTypesL (combination = 48)
sl@0
   284
//!                16. GetBufferOptions
sl@0
   285
//!                17. SetBufferOptionsL
sl@0
   286
//!                18. SetClockSource  (synch = 1; framerate = 30)
sl@0
   287
//!                19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
sl@0
   288
//!                20. Initialize
sl@0
   289
//!                OUTSTANDING
sl@0
   290
//!                21. StartDirectScreenAccess (displayMode = EColor64K)
sl@0
   291
//!                22. Start 
sl@0
   292
//!                OUTSTANDING
sl@0
   293
//!                23. Stop
sl@0
   294
//!                24. AbortDirectScreenAccess
sl@0
   295
//!                25. ~
sl@0
   296
//!@SYMTestStatus		Verified
sl@0
   297
//!@SYMTestPriority		Normal
sl@0
   298
//!@SYMTestExpectedResults
sl@0
   299
//!                Video must be played on the full screen without any blurrness.
sl@0
   300
//!@SYMTestType			CIT
sl@0
   301
sl@0
   302
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-scale-automated.ini
sl@0
   303
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
   304
		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-NewL_command01
sl@0
   305
		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SelectDecoderL_command02
sl@0
   306
		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SelectPostProcessorL_command03
sl@0
   307
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetInputFormat_command04
sl@0
   308
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-GetOutputFormatListL_command05
sl@0
   309
		COMMAND		mmfdvplay		PostProcessorInfoLC
sl@0
   310
		COMMAND		mmfdvplay		FindCommonFormat
sl@0
   311
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetOutputFormatL_command08
sl@0
   312
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetInputFormat_command09
sl@0
   313
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-GetOutputFormatListL_command10
sl@0
   314
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetOutputFormatL_command11
sl@0
   315
		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-GetHeaderInformationL_command12
sl@0
   316
		COMMAND		mmfdvplay		ReturnHeader
sl@0
   317
		COMMAND		mmfdvplay		SetVideoDestScreenL
sl@0
   318
		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetPostProcessTypesL_command15
sl@0
   319
		COMMAND		mmfdvplay		GetBufferOptions
sl@0
   320
		COMMAND		mmfdvplay		SetBufferOptionsL
sl@0
   321
		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetClockSource_command18
sl@0
   322
		COMMAND		mmfdvplay		SetScaleOptionsL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetScaleOptionsL_command19
sl@0
   323
		COMMAND		mmfdvplay		Initialize
sl@0
   324
		OUTSTANDING
sl@0
   325
		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-StartDirectScreenAccess_command21
sl@0
   326
		COMMAND		mmfdvplay		Start
sl@0
   327
		OUTSTANDING
sl@0
   328
		COMMAND		mmfdvplay		Stop
sl@0
   329
		COMMAND		mmfdvplay		AbortDirectScreenAccess
sl@0
   330
		COMMAND		mmfdvplay		~
sl@0
   331
	END_TEST_BLOCK
sl@0
   332
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0003
sl@0
   333
sl@0
   334
sl@0
   335
sl@0
   336
sl@0
   337
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0004
sl@0
   338
sl@0
   339
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0004
sl@0
   340
//!@SYMAPI
sl@0
   341
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
   342
//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
sl@0
   343
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
   344
//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
sl@0
   345
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
   346
//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
sl@0
   347
//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
sl@0
   348
//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
sl@0
   349
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
sl@0
   350
//!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
sl@0
   351
//!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
sl@0
   352
//!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
sl@0
   353
//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
sl@0
   354
//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
sl@0
   355
//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
sl@0
   356
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
sl@0
   357
//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
sl@0
   358
//!                CMMFDevVideoPlay:: Initialize();
sl@0
   359
//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
sl@0
   360
//!                CMMFDevVideoPlay:: Start();
sl@0
   361
//!                CMMFDevVideoPlay:: Stop();
sl@0
   362
//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
sl@0
   363
//!                CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref})
sl@0
   364
//!                CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool )
sl@0
   365
//!@SYMAuthor			alavariega
sl@0
   366
//!@SYMCreationDate		16/6/2008
sl@0
   367
//!@SYMTestCaseDesc		NCP MPEG -4  QVGA Video FULL SCREEN  at 30 fps 3Mbps
sl@0
   368
//!@SYMTestActions
sl@0
   369
//!                1. NewL (inputfile = MPEG4_QVGA_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath})
sl@0
   370
//!                2. SelectDecoderL (dec = {DECODERS, MPEG4}) 
sl@0
   371
//!                3. SelectPostProcessorL  (postprocessor = {POSTPROCESSOR, uid})
sl@0
   372
//!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V})
sl@0
   373
//!                5. GetOutputFormatListL (useDecoder = TRUE) 
sl@0
   374
//!                6. PostProcessorInfoLC
sl@0
   375
//!                7. FindCommonFormat
sl@0
   376
//!                8. SetOutputFormatL  (useDecoder = TRUE)
sl@0
   377
//!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V})
sl@0
   378
//!                10. GetOutputFormatListL (useDecoder = FALSE)
sl@0
   379
//!                11. SetOutputFormatL(useDecoder = TRUE) 
sl@0
   380
//!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
sl@0
   381
//!                13. ReturnHeader
sl@0
   382
//!                14. SetVideoDestScreenL
sl@0
   383
//!                15. SetPostProcessTypesL (combination = 48)
sl@0
   384
//!                16. GetBufferOptions
sl@0
   385
//!                17. SetBufferOptionsL
sl@0
   386
//!                18. SetClockSource  (synch = 1; framerate = 30)
sl@0
   387
//!                19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
sl@0
   388
//!                20. Initialize
sl@0
   389
//!                OUTSTANDING
sl@0
   390
//!                21. StartDirectScreenAccess (displayMode = EColor64K)
sl@0
   391
//!                22. Start 
sl@0
   392
//!                OUTSTANDING
sl@0
   393
//!                23. Stop
sl@0
   394
//!                24. AbortDirectScreenAccess
sl@0
   395
//!                25. ~
sl@0
   396
//!@SYMTestStatus		Verified
sl@0
   397
//!@SYMTestPriority		Normal
sl@0
   398
//!@SYMTestExpectedResults
sl@0
   399
//!                Video must be played on the full screen without any blurrness.
sl@0
   400
//!@SYMTestType			CIT
sl@0
   401
sl@0
   402
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-mpeg4-scale-automated.ini
sl@0
   403
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
   404
		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-NewL_command01
sl@0
   405
		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SelectDecoderL_command02
sl@0
   406
		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SelectPostProcessorL_command03
sl@0
   407
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetInputFormat_command04
sl@0
   408
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-GetOutputFormatListL_command05
sl@0
   409
		COMMAND		mmfdvplay		PostProcessorInfoLC
sl@0
   410
		COMMAND		mmfdvplay		FindCommonFormat
sl@0
   411
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetOutputFormatL_command08
sl@0
   412
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetInputFormat_command09
sl@0
   413
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-GetOutputFormatListL_command10
sl@0
   414
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetOutputFormatL_command11
sl@0
   415
		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-GetHeaderInformationL_command12
sl@0
   416
		COMMAND		mmfdvplay		ReturnHeader
sl@0
   417
		COMMAND		mmfdvplay		SetVideoDestScreenL
sl@0
   418
		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetPostProcessTypesL_command15
sl@0
   419
		COMMAND		mmfdvplay		GetBufferOptions
sl@0
   420
		COMMAND		mmfdvplay		SetBufferOptionsL
sl@0
   421
		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetClockSource_command18
sl@0
   422
		COMMAND		mmfdvplay		SetScaleOptionsL			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetScaleOptionsL_command19
sl@0
   423
		COMMAND		mmfdvplay		Initialize
sl@0
   424
		OUTSTANDING
sl@0
   425
		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-StartDirectScreenAccess_command21
sl@0
   426
		COMMAND		mmfdvplay		Start
sl@0
   427
		OUTSTANDING
sl@0
   428
		COMMAND		mmfdvplay		Stop
sl@0
   429
		COMMAND		mmfdvplay		AbortDirectScreenAccess
sl@0
   430
		COMMAND		mmfdvplay		~
sl@0
   431
	END_TEST_BLOCK
sl@0
   432
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0004