mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h263-scale-automated.script
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h263-scale-automated.script Thu Jun 24 10:37:45 2010 +0100
@@ -0,0 +1,130 @@
+//
+// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+//
+//! @file
+//! @SYMTestSuiteName mm-mmf-devvideo-playback-h263-scale-automated
+//! @SYMScriptTestEnvironment This test script requires a basic ROM.
+//
+// Tests all public elements of the MMMFDevVideoPlayObserver,CMMFDevVideoPlay
+// classes as a means of confidence that the APIs work as expected.
+//
+// The purpose is to provide a regression test suite of PublishedAll
+// APIs for: MMMFDevVideoPlayObserver,CMMFDevVideoPlay
+// The tests are fully automated.
+//
+
+
+
+LOAD_SUITE t_devvideo
+
+DELAY 2000
+
+
+
+START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
+
+//!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
+//!@SYMAPI
+//! CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
+//! CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
+//! CMMFDevVideoPlay::SelectDecoderL(TUid);
+//! CMMFDevVideoPlay::SelectPostProcessorL(TUid);
+//! CMMFDevVideoPlay::SetInputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
+//! CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
+//! CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
+//! CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
+//! CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
+//! CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
+//! CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
+//! CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
+//! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
+//! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
+//! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
+//! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
+//! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
+//! CMMFDevVideoPlay:: Initialize();
+//! CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
+//! CMMFDevVideoPlay:: Start();
+//! CMMFDevVideoPlay:: Stop();
+//! CMMFDevVideoPlay:: AbortDirectScreenAccess();
+//!@SYMAuthor alavariega
+//!@SYMCreationDate 16/6/2008
+//!@SYMTestCaseDesc NCP H.263 QCIF Video FULL SCREEN at 15fps 128 Kbps
+//!@SYMTestActions
+//! 1. NewL (inputfile = football_qcif_15fps_128k_dec.h263; screen = TRUE; codec = EH263; synch = 1; inputPath = {PATHVIDEOS, inputPath})
+//! 2. SelectDecoderL (dec = {DECODERS, H263})
+//! 3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid})
+//! 4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,H263})
+//! 5. GetOutputFormatListL (useDecoder = TRUE)
+//! 6. PostProcessorInfoLC
+//! 7. FindCommonFormat
+//! 8. SetOutputFormatL (useDecoder = TRUE)
+//! 9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,H263})
+//! 10. GetOutputFormatListL (useDecoder = FALSE)
+//! 11. SetOutputFormatL(useDecoder = TRUE)
+//! 12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
+//! 13. ReturnHeader
+//! 14. SetVideoDestScreenL
+//! 15. SetPostProcessTypesL (combination = 48)
+//! 16. GetBufferOptions
+//! 17. SetBufferOptionsL
+//! 18. SetClockSource (synch = 1; framerate = 15)
+//! 19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
+//! 20. Initialize
+//! OUTSTANDING
+//! 21. StartDirectScreenAccess (displayMode = EColor64K)
+//! 22. Start
+//! OUTSTANDING
+//! 23. Stop
+//! 24. AbortDirectScreenAccess
+//! 25. ~
+//!@SYMTestStatus Verified
+//!@SYMTestPriority Normal
+//!@SYMTestExpectedResults
+//! Video must be played on the full screen without any blurrness.
+//!@SYMTestType CIT
+
+ START_TEST_BLOCK 900 t_devvideo \multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h263-scale-automated.ini
+ CREATE_OBJECT CMMFDevVideoPlay mmfdvplay
+ COMMAND mmfdvplay NewL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-NewL_command01
+ COMMAND mmfdvplay SelectDecoderL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectDecoderL_command02
+ COMMAND mmfdvplay SelectPostProcessorL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectPostProcessorL_command03
+ COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command04
+ COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command05
+ COMMAND mmfdvplay PostProcessorInfoLC
+ COMMAND mmfdvplay FindCommonFormat
+ COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command08
+ COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command09
+ COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command10
+ COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command11
+ COMMAND mmfdvplay GetHeaderInformationL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetHeaderInformationL_command12
+ COMMAND mmfdvplay ReturnHeader
+ COMMAND mmfdvplay SetVideoDestScreenL
+ COMMAND mmfdvplay SetPostProcessTypesL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetPostProcessTypesL_command15
+ COMMAND mmfdvplay GetBufferOptions
+ COMMAND mmfdvplay SetBufferOptionsL
+ COMMAND mmfdvplay SetClockSource MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetClockSource_command18
+ COMMAND mmfdvplay SetScaleOptionsL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetScaleOptionsL_command19
+ COMMAND mmfdvplay Initialize
+ OUTSTANDING
+ COMMAND mmfdvplay StartDirectScreenAccess MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-StartDirectScreenAccess_command21
+ COMMAND mmfdvplay Start
+ OUTSTANDING
+ COMMAND mmfdvplay Stop
+ COMMAND mmfdvplay AbortDirectScreenAccess
+ COMMAND mmfdvplay ~
+ END_TEST_BLOCK
+END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001