mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h263-scale-automated.script
author hgs
Wed, 29 Sep 2010 13:59:21 +0100
changeset 60 9ea4d0cbd540
parent 26 c36d67f77f75
permissions -rw-r--r--
2010wk40
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     1
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     3
// All rights reserved.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     4
// This component and the accompanying materials are made available
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     5
// under the terms of "Eclipse Public License v1.0"
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     6
// which accompanies this distribution, and is available
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     8
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     9
// Initial Contributors:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    10
// Nokia Corporation - initial contribution.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    11
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    12
// Contributors:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    13
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    14
// Description: 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    15
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    16
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    17
//! @file
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    18
//! @SYMTestSuiteName mm-mmf-devvideo-playback-h263-scale-automated
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    19
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    20
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    21
// Tests all public elements of the MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    22
// classes as a means of confidence that the APIs work as expected.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    23
// 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    24
// The purpose is to provide a regression test suite of PublishedAll
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    25
// APIs for: MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    26
// The tests are fully automated.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    27
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    28
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    29
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    30
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    31
LOAD_SUITE t_devvideo
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    32
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    33
DELAY 2000
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    34
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    35
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    36
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    37
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    38
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    39
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    40
//!@SYMAPI
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    41
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    42
//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    43
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    44
//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    45
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    46
//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    47
//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    48
//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    49
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    50
//!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    51
//!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    52
//!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    53
//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    54
//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    55
//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    56
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    57
//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    58
//!                CMMFDevVideoPlay:: Initialize();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    59
//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    60
//!                CMMFDevVideoPlay:: Start();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    61
//!                CMMFDevVideoPlay:: Stop();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    62
//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    63
//!@SYMAuthor			alavariega
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    64
//!@SYMCreationDate		16/6/2008
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    65
//!@SYMTestCaseDesc		 NCP H.263 QCIF Video FULL SCREEN  at  15fps 128 Kbps
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    66
//!@SYMTestActions
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    67
//!                1. NewL (inputfile = football_qcif_15fps_128k_dec.h263; screen = TRUE; codec = EH263; synch = 1; inputPath = {PATHVIDEOS, inputPath})
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    68
//!                2. SelectDecoderL (dec = {DECODERS, H263}) 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    69
//!                3. SelectPostProcessorL  (postprocessor = {POSTPROCESSOR, uid})
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    70
//!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,H263})
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    71
//!                5. GetOutputFormatListL (useDecoder = TRUE) 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    72
//!                6. PostProcessorInfoLC
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    73
//!                7. FindCommonFormat
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    74
//!                8. SetOutputFormatL  (useDecoder = TRUE)
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    75
//!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,H263})
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    76
//!                10. GetOutputFormatListL (useDecoder = FALSE)
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    77
//!                11. SetOutputFormatL(useDecoder = TRUE) 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    78
//!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    79
//!                13. ReturnHeader
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    80
//!                14. SetVideoDestScreenL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    81
//!                15. SetPostProcessTypesL (combination = 48)
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    82
//!                16. GetBufferOptions
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    83
//!                17. SetBufferOptionsL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    84
//!                18. SetClockSource  (synch = 1; framerate = 15)
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    85
//!                19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    86
//!                20. Initialize
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    87
//!                OUTSTANDING
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    88
//!                21. StartDirectScreenAccess (displayMode = EColor64K)
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    89
//!                22. Start 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    90
//!                OUTSTANDING
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    91
//!                23. Stop
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    92
//!                24. AbortDirectScreenAccess
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    93
//!                25. ~
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    94
//!@SYMTestStatus		Verified
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    95
//!@SYMTestPriority		Normal
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    96
//!@SYMTestExpectedResults
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    97
//!                Video must be played on the full screen without any blurrness.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    98
//!@SYMTestType			CIT
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    99
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   100
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h263-scale-automated.ini
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   101
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   102
		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-NewL_command01
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   103
		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectDecoderL_command02
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   104
		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectPostProcessorL_command03
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   105
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command04
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   106
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command05
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   107
		COMMAND		mmfdvplay		PostProcessorInfoLC
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   108
		COMMAND		mmfdvplay		FindCommonFormat
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   109
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command08
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   110
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command09
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   111
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command10
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   112
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command11
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   113
		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetHeaderInformationL_command12
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   114
		COMMAND		mmfdvplay		ReturnHeader
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   115
		COMMAND		mmfdvplay		SetVideoDestScreenL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   116
		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetPostProcessTypesL_command15
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   117
		COMMAND		mmfdvplay		GetBufferOptions
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   118
		COMMAND		mmfdvplay		SetBufferOptionsL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   119
		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetClockSource_command18
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   120
		COMMAND		mmfdvplay		SetScaleOptionsL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetScaleOptionsL_command19
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   121
		COMMAND		mmfdvplay		Initialize
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   122
		OUTSTANDING
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   123
		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-StartDirectScreenAccess_command21
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   124
		COMMAND		mmfdvplay		Start
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   125
		OUTSTANDING
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   126
		COMMAND		mmfdvplay		Stop
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   127
		COMMAND		mmfdvplay		AbortDirectScreenAccess
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   128
		COMMAND		mmfdvplay		~
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   129
	END_TEST_BLOCK
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   130
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001