os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h263-scale-automated.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
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-h263-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-H263-SCALE-AUTOMATED-0001
sl@0
    38
sl@0
    39
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H263-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
//!@SYMAuthor			alavariega
sl@0
    64
//!@SYMCreationDate		16/6/2008
sl@0
    65
//!@SYMTestCaseDesc		 NCP H.263 QCIF Video FULL SCREEN  at  15fps 128 Kbps
sl@0
    66
//!@SYMTestActions
sl@0
    67
//!                1. NewL (inputfile = football_qcif_15fps_128k_dec.h263; screen = TRUE; codec = EH263; synch = 1; inputPath = {PATHVIDEOS, inputPath})
sl@0
    68
//!                2. SelectDecoderL (dec = {DECODERS, H263}) 
sl@0
    69
//!                3. SelectPostProcessorL  (postprocessor = {POSTPROCESSOR, uid})
sl@0
    70
//!                4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,H263})
sl@0
    71
//!                5. GetOutputFormatListL (useDecoder = TRUE) 
sl@0
    72
//!                6. PostProcessorInfoLC
sl@0
    73
//!                7. FindCommonFormat
sl@0
    74
//!                8. SetOutputFormatL  (useDecoder = TRUE)
sl@0
    75
//!                9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,H263})
sl@0
    76
//!                10. GetOutputFormatListL (useDecoder = FALSE)
sl@0
    77
//!                11. SetOutputFormatL(useDecoder = TRUE) 
sl@0
    78
//!                12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
sl@0
    79
//!                13. ReturnHeader
sl@0
    80
//!                14. SetVideoDestScreenL
sl@0
    81
//!                15. SetPostProcessTypesL (combination = 48)
sl@0
    82
//!                16. GetBufferOptions
sl@0
    83
//!                17. SetBufferOptionsL
sl@0
    84
//!                18. SetClockSource  (synch = 1; framerate = 15)
sl@0
    85
//!                19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
sl@0
    86
//!                20. Initialize
sl@0
    87
//!                OUTSTANDING
sl@0
    88
//!                21. StartDirectScreenAccess (displayMode = EColor64K)
sl@0
    89
//!                22. Start 
sl@0
    90
//!                OUTSTANDING
sl@0
    91
//!                23. Stop
sl@0
    92
//!                24. AbortDirectScreenAccess
sl@0
    93
//!                25. ~
sl@0
    94
//!@SYMTestStatus		Verified
sl@0
    95
//!@SYMTestPriority		Normal
sl@0
    96
//!@SYMTestExpectedResults
sl@0
    97
//!                Video must be played on the full screen without any blurrness.
sl@0
    98
//!@SYMTestType			CIT
sl@0
    99
sl@0
   100
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h263-scale-automated.ini
sl@0
   101
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
   102
		COMMAND		mmfdvplay		NewL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-NewL_command01
sl@0
   103
		COMMAND		mmfdvplay		SelectDecoderL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectDecoderL_command02
sl@0
   104
		COMMAND		mmfdvplay		SelectPostProcessorL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectPostProcessorL_command03
sl@0
   105
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command04
sl@0
   106
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command05
sl@0
   107
		COMMAND		mmfdvplay		PostProcessorInfoLC
sl@0
   108
		COMMAND		mmfdvplay		FindCommonFormat
sl@0
   109
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command08
sl@0
   110
		COMMAND		mmfdvplay		SetInputFormat			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command09
sl@0
   111
		COMMAND		mmfdvplay		GetOutputFormatListL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command10
sl@0
   112
		COMMAND		mmfdvplay		SetOutputFormatL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command11
sl@0
   113
		COMMAND		mmfdvplay		GetHeaderInformationL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetHeaderInformationL_command12
sl@0
   114
		COMMAND		mmfdvplay		ReturnHeader
sl@0
   115
		COMMAND		mmfdvplay		SetVideoDestScreenL
sl@0
   116
		COMMAND		mmfdvplay		SetPostProcessTypesL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetPostProcessTypesL_command15
sl@0
   117
		COMMAND		mmfdvplay		GetBufferOptions
sl@0
   118
		COMMAND		mmfdvplay		SetBufferOptionsL
sl@0
   119
		COMMAND		mmfdvplay		SetClockSource			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetClockSource_command18
sl@0
   120
		COMMAND		mmfdvplay		SetScaleOptionsL			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetScaleOptionsL_command19
sl@0
   121
		COMMAND		mmfdvplay		Initialize
sl@0
   122
		OUTSTANDING
sl@0
   123
		COMMAND		mmfdvplay		StartDirectScreenAccess			MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-StartDirectScreenAccess_command21
sl@0
   124
		COMMAND		mmfdvplay		Start
sl@0
   125
		OUTSTANDING
sl@0
   126
		COMMAND		mmfdvplay		Stop
sl@0
   127
		COMMAND		mmfdvplay		AbortDirectScreenAccess
sl@0
   128
		COMMAND		mmfdvplay		~
sl@0
   129
	END_TEST_BLOCK
sl@0
   130
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001