os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h264-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-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
LOAD_SUITE t_devvideo
sl@0
    30
sl@0
    31
DELAY 2000
sl@0
    32
sl@0
    33
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0001
sl@0
    34
sl@0
    35
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0001
sl@0
    36
//!@SYMAPI
sl@0
    37
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
    38
//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
sl@0
    39
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
    40
//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
sl@0
    41
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
    42
//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
sl@0
    43
//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
sl@0
    44
//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref}, CMMFDevVideoPlay::TUncompressedVideoFormat {ref});
sl@0
    45
//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
sl@0
    46
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
sl@0
    47
//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
sl@0
    48
//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
sl@0
    49
//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr});
sl@0
    50
//!				   CMMFDevVideoPlay:: SynchronizeDecoding(TBool);
sl@0
    51
//!                CMMFDevVideoPlay:: Initialize();
sl@0
    52
//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
sl@0
    53
//!                CMMFDevVideoPlay:: Start();
sl@0
    54
//!                CMMFDevVideoPlay:: Stop();
sl@0
    55
//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
sl@0
    56
//!@SYMAuthor			Katherine Xu
sl@0
    57
//!@SYMCreationDate		29/9/2009
sl@0
    58
//!@SYMTestCaseDesc		 NCP H.264 QCIF Video FULL SCREEN  at  30fps 384 Kbps
sl@0
    59
//!						 MIME(video/h264; profile-level-id=42800C)
sl@0
    60
//!@SYMTestStatus		Verified
sl@0
    61
//!@SYMTestPriority		Normal
sl@0
    62
//!@SYMTestExpectedResults
sl@0
    63
//!                Video must be played on the full screen without any blurrness.
sl@0
    64
//!@SYMTestType			CIT
sl@0
    65
sl@0
    66
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h264-scale-automated.ini
sl@0
    67
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
    68
		COMMAND		mmfdvplay		H264CreateDecTest				MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-CreateDecTest_command01
sl@0
    69
		COMMAND		mmfdvplay		H264SelectPostProcessor			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SelectPostProcessor_command02
sl@0
    70
		COMMAND		mmfdvplay		H264SetInputFormatCompr			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetInputFormatCompr_command03
sl@0
    71
		COMMAND		mmfdvplay		H264FindCommonFormats
sl@0
    72
		COMMAND		mmfdvplay		H264SetBufferOptions			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetBufferOptions_command05
sl@0
    73
		COMMAND		mmfdvplay		H264ListFrameSize
sl@0
    74
		COMMAND		mmfdvplay		H264SetPostProcessTypes			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetPostProcessTypes_command07
sl@0
    75
		COMMAND		mmfdvplay		H264SetVideoDestScreen			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetVideoDestScreen_command08
sl@0
    76
		COMMAND		mmfdvplay		H264SetWindowRect				MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetWindowRect_command09
sl@0
    77
		COMMAND		mmfdvplay		H264SetPostProcessTypes			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetPostProcessTypes_command10
sl@0
    78
		COMMAND		mmfdvplay		H264EnableSynchronization		MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-EnableSynchronization_command11
sl@0
    79
		COMMAND		mmfdvplay		H264SynchronizeDecoding			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SynchronizeDecoding_command12
sl@0
    80
		COMMAND		mmfdvplay		H264Initialize		
sl@0
    81
		OUTSTANDING
sl@0
    82
		COMMAND		mmfdvplay		H264IOFrameMatch
sl@0
    83
		COMMAND		mmfdvplay		H264Start						MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-Start_command15
sl@0
    84
		OUTSTANDING
sl@0
    85
		COMMAND		mmfdvplay		H264Stop
sl@0
    86
		COMMAND		mmfdvplay		H264Delete
sl@0
    87
	END_TEST_BLOCK
sl@0
    88
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0001
sl@0
    89
sl@0
    90
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0002
sl@0
    91
sl@0
    92
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0002
sl@0
    93
//!@SYMAPI
sl@0
    94
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
    95
//!                CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
sl@0
    96
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
    97
//!                CMMFDevVideoPlay::SelectPostProcessorL(TUid);
sl@0
    98
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
    99
//!                CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
sl@0
   100
//!                CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
sl@0
   101
//!                CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref}, CMMFDevVideoPlay::TUncompressedVideoFormat {ref});
sl@0
   102
//!                CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
sl@0
   103
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
sl@0
   104
//!                CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
sl@0
   105
//!                CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
sl@0
   106
//!                CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr});
sl@0
   107
//!				   CMMFDevVideoPlay:: SynchronizeDecoding(TBool);
sl@0
   108
//!                CMMFDevVideoPlay:: Initialize();
sl@0
   109
//!                CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
sl@0
   110
//!                CMMFDevVideoPlay:: Start();
sl@0
   111
//!                CMMFDevVideoPlay:: Stop();
sl@0
   112
//!                CMMFDevVideoPlay:: AbortDirectScreenAccess();
sl@0
   113
//!@SYMAuthor			Katherine Xu
sl@0
   114
//!@SYMCreationDate		27/10/2009
sl@0
   115
//!@SYMTestCaseDesc		 NCP H.264 SQCIF Video FULL SCREEN  at  15fps 35 Kbps
sl@0
   116
//!						 MIME(video/h264)
sl@0
   117
//!@SYMTestStatus		Verified
sl@0
   118
//!@SYMTestPriority		Normal
sl@0
   119
//!@SYMTestExpectedResults
sl@0
   120
//!                Video must be played on the full screen without any blurrness.
sl@0
   121
//!@SYMTestType			CIT
sl@0
   122
sl@0
   123
	START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h264-scale-automated.ini
sl@0
   124
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
   125
		COMMAND		mmfdvplay		H264CreateDecTest				MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-CreateDecTest_command01
sl@0
   126
		COMMAND		mmfdvplay		H264SelectPostProcessor			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SelectPostProcessor_command02
sl@0
   127
		COMMAND		mmfdvplay		H264SetInputFormatCompr			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetInputFormatCompr_command03
sl@0
   128
		COMMAND		mmfdvplay		H264FindCommonFormats
sl@0
   129
		COMMAND		mmfdvplay		H264SetBufferOptions			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetBufferOptions_command05
sl@0
   130
		COMMAND		mmfdvplay		H264ListFrameSize
sl@0
   131
		COMMAND		mmfdvplay		H264SetPostProcessTypes			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetPostProcessTypes_command07
sl@0
   132
		COMMAND		mmfdvplay		H264SetVideoDestScreen			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetVideoDestScreen_command08
sl@0
   133
		COMMAND		mmfdvplay		H264SetWindowRect				MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetWindowRect_command09
sl@0
   134
		COMMAND		mmfdvplay		H264SetPostProcessTypes			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetPostProcessTypes_command10
sl@0
   135
		COMMAND		mmfdvplay		H264EnableSynchronization		MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-EnableSynchronization_command11
sl@0
   136
		COMMAND		mmfdvplay		H264SynchronizeDecoding			MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SynchronizeDecoding_command12
sl@0
   137
		COMMAND		mmfdvplay		H264Initialize		
sl@0
   138
		OUTSTANDING
sl@0
   139
		COMMAND		mmfdvplay		H264IOFrameMatch
sl@0
   140
		COMMAND		mmfdvplay		H264Start						MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-Start_command15
sl@0
   141
		OUTSTANDING
sl@0
   142
		COMMAND		mmfdvplay		H264Stop
sl@0
   143
		COMMAND		mmfdvplay		H264Delete
sl@0
   144
	END_TEST_BLOCK
sl@0
   145
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0002