os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h263-scale-automated.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h263-scale-automated.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,130 @@
     1.4 +//
     1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description: 
    1.18 +//
    1.19 +//
    1.20 +//! @file
    1.21 +//! @SYMTestSuiteName mm-mmf-devvideo-playback-h263-scale-automated
    1.22 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
    1.23 +//
    1.24 +// Tests all public elements of the MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
    1.25 +// classes as a means of confidence that the APIs work as expected.
    1.26 +// 
    1.27 +// The purpose is to provide a regression test suite of PublishedAll
    1.28 +// APIs for: MMMFDevVideoPlayObserver,CMMFDevVideoPlay 
    1.29 +// The tests are fully automated.
    1.30 +//
    1.31 +
    1.32 +
    1.33 +
    1.34 +LOAD_SUITE t_devvideo
    1.35 +
    1.36 +DELAY 2000
    1.37 +
    1.38 +
    1.39 +
    1.40 +START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
    1.41 +
    1.42 +//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
    1.43 +//!@SYMAPI
    1.44 +//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
    1.45 +//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
    1.46 +//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
    1.47 +//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
    1.48 +//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
    1.49 +//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
    1.50 +//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
    1.51 +//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
    1.52 +//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
    1.53 +//!                CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
    1.54 +//!                CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
    1.55 +//!                CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
    1.56 +//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
    1.57 +//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
    1.58 +//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
    1.59 +//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
    1.60 +//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
    1.61 +//!                CMMFDevVideoPlay:: Initialize();
    1.62 +//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
    1.63 +//!                CMMFDevVideoPlay:: Start();
    1.64 +//!                CMMFDevVideoPlay:: Stop();
    1.65 +//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
    1.66 +//!@SYMAuthor			alavariega
    1.67 +//!@SYMCreationDate		16/6/2008
    1.68 +//!@SYMTestCaseDesc		 NCP H.263 QCIF Video FULL SCREEN  at  15fps 128 Kbps
    1.69 +//!@SYMTestActions
    1.70 +//!                1. NewL (inputfile = football_qcif_15fps_128k_dec.h263; screen = TRUE; codec = EH263; synch = 1; inputPath = {PATHVIDEOS, inputPath})
    1.71 +//!                2. SelectDecoderL (dec = {DECODERS, H263}) 
    1.72 +//!                3. SelectPostProcessorL  (postprocessor = {POSTPROCESSOR, uid})
    1.73 +//!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,H263})
    1.74 +//!                5. GetOutputFormatListL (useDecoder = TRUE) 
    1.75 +//!                6. PostProcessorInfoLC
    1.76 +//!                7. FindCommonFormat
    1.77 +//!                8. SetOutputFormatL  (useDecoder = TRUE)
    1.78 +//!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,H263})
    1.79 +//!                10. GetOutputFormatListL (useDecoder = FALSE)
    1.80 +//!                11. SetOutputFormatL(useDecoder = TRUE) 
    1.81 +//!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
    1.82 +//!                13. ReturnHeader
    1.83 +//!                14. SetVideoDestScreenL
    1.84 +//!                15. SetPostProcessTypesL (combination = 48)
    1.85 +//!                16. GetBufferOptions
    1.86 +//!                17. SetBufferOptionsL
    1.87 +//!                18. SetClockSource  (synch = 1; framerate = 15)
    1.88 +//!                19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
    1.89 +//!                20. Initialize
    1.90 +//!                OUTSTANDING
    1.91 +//!                21. StartDirectScreenAccess (displayMode = EColor64K)
    1.92 +//!                22. Start 
    1.93 +//!                OUTSTANDING
    1.94 +//!                23. Stop
    1.95 +//!                24. AbortDirectScreenAccess
    1.96 +//!                25. ~
    1.97 +//!@SYMTestStatus		Verified
    1.98 +//!@SYMTestPriority		Normal
    1.99 +//!@SYMTestExpectedResults
   1.100 +//!                Video must be played on the full screen without any blurrness.
   1.101 +//!@SYMTestType			CIT
   1.102 +
   1.103 +	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h263-scale-automated.ini
   1.104 +		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
   1.105 +		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-NewL_command01
   1.106 +		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectDecoderL_command02
   1.107 +		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectPostProcessorL_command03
   1.108 +		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command04
   1.109 +		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command05
   1.110 +		COMMAND		mmfdvplay		PostProcessorInfoLC
   1.111 +		COMMAND		mmfdvplay		FindCommonFormat
   1.112 +		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command08
   1.113 +		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command09
   1.114 +		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command10
   1.115 +		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command11
   1.116 +		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetHeaderInformationL_command12
   1.117 +		COMMAND		mmfdvplay		ReturnHeader
   1.118 +		COMMAND		mmfdvplay		SetVideoDestScreenL
   1.119 +		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetPostProcessTypesL_command15
   1.120 +		COMMAND		mmfdvplay		GetBufferOptions
   1.121 +		COMMAND		mmfdvplay		SetBufferOptionsL
   1.122 +		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetClockSource_command18
   1.123 +		COMMAND		mmfdvplay		SetScaleOptionsL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetScaleOptionsL_command19
   1.124 +		COMMAND		mmfdvplay		Initialize
   1.125 +		OUTSTANDING
   1.126 +		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-StartDirectScreenAccess_command21
   1.127 +		COMMAND		mmfdvplay		Start
   1.128 +		OUTSTANDING
   1.129 +		COMMAND		mmfdvplay		Stop
   1.130 +		COMMAND		mmfdvplay		AbortDirectScreenAccess
   1.131 +		COMMAND		mmfdvplay		~
   1.132 +	END_TEST_BLOCK
   1.133 +END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001