sl@0: // sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: // sl@0: //! @file sl@0: //! @SYMTestSuiteName mm-mmf-devvideo-playback-h263-scale-automated sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: // sl@0: // Tests all public elements of the MMMFDevVideoPlayObserver,CMMFDevVideoPlay sl@0: // classes as a means of confidence that the APIs work as expected. sl@0: // sl@0: // The purpose is to provide a regression test suite of PublishedAll sl@0: // APIs for: MMMFDevVideoPlayObserver,CMMFDevVideoPlay sl@0: // The tests are fully automated. sl@0: // sl@0: sl@0: LOAD_SUITE t_devvideo sl@0: sl@0: DELAY 2000 sl@0: sl@0: START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0001 sl@0: sl@0: //!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0001 sl@0: //!@SYMAPI sl@0: //! CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref}); sl@0: //! CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref}); sl@0: //! CMMFDevVideoPlay::SelectDecoderL(TUid); sl@0: //! CMMFDevVideoPlay::SelectPostProcessorL(TUid); sl@0: //! CMMFDevVideoPlay::SetInputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref}); sl@0: //! CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid); sl@0: //! CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref}, CMMFDevVideoPlay::TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool); sl@0: //! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 ); sl@0: //! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr}); sl@0: //! CMMFDevVideoPlay:: SynchronizeDecoding(TBool); sl@0: //! CMMFDevVideoPlay:: Initialize(); sl@0: //! CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref}); sl@0: //! CMMFDevVideoPlay:: Start(); sl@0: //! CMMFDevVideoPlay:: Stop(); sl@0: //! CMMFDevVideoPlay:: AbortDirectScreenAccess(); sl@0: //!@SYMAuthor Katherine Xu sl@0: //!@SYMCreationDate 29/9/2009 sl@0: //!@SYMTestCaseDesc NCP H.264 QCIF Video FULL SCREEN at 30fps 384 Kbps sl@0: //! MIME(video/h264; profile-level-id=42800C) sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority Normal sl@0: //!@SYMTestExpectedResults sl@0: //! Video must be played on the full screen without any blurrness. sl@0: //!@SYMTestType CIT sl@0: sl@0: START_TEST_BLOCK 900 t_devvideo \multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h264-scale-automated.ini sl@0: CREATE_OBJECT CMMFDevVideoPlay mmfdvplay sl@0: COMMAND mmfdvplay H264CreateDecTest MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-CreateDecTest_command01 sl@0: COMMAND mmfdvplay H264SelectPostProcessor MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SelectPostProcessor_command02 sl@0: COMMAND mmfdvplay H264SetInputFormatCompr MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetInputFormatCompr_command03 sl@0: COMMAND mmfdvplay H264FindCommonFormats sl@0: COMMAND mmfdvplay H264SetBufferOptions MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetBufferOptions_command05 sl@0: COMMAND mmfdvplay H264ListFrameSize sl@0: COMMAND mmfdvplay H264SetPostProcessTypes MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetPostProcessTypes_command07 sl@0: COMMAND mmfdvplay H264SetVideoDestScreen MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetVideoDestScreen_command08 sl@0: COMMAND mmfdvplay H264SetWindowRect MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetWindowRect_command09 sl@0: COMMAND mmfdvplay H264SetPostProcessTypes MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SetPostProcessTypes_command10 sl@0: COMMAND mmfdvplay H264EnableSynchronization MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-EnableSynchronization_command11 sl@0: COMMAND mmfdvplay H264SynchronizeDecoding MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-SynchronizeDecoding_command12 sl@0: COMMAND mmfdvplay H264Initialize sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay H264IOFrameMatch sl@0: COMMAND mmfdvplay H264Start MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0001-0001-Start_command15 sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay H264Stop sl@0: COMMAND mmfdvplay H264Delete sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0001 sl@0: sl@0: START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0002 sl@0: sl@0: //!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0002 sl@0: //!@SYMAPI sl@0: //! CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref}); sl@0: //! CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref}); sl@0: //! CMMFDevVideoPlay::SelectDecoderL(TUid); sl@0: //! CMMFDevVideoPlay::SelectPostProcessorL(TUid); sl@0: //! CMMFDevVideoPlay::SetInputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref}); sl@0: //! CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid); sl@0: //! CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref}, CMMFDevVideoPlay::TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool); sl@0: //! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 ); sl@0: //! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr}); sl@0: //! CMMFDevVideoPlay:: SynchronizeDecoding(TBool); sl@0: //! CMMFDevVideoPlay:: Initialize(); sl@0: //! CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref}); sl@0: //! CMMFDevVideoPlay:: Start(); sl@0: //! CMMFDevVideoPlay:: Stop(); sl@0: //! CMMFDevVideoPlay:: AbortDirectScreenAccess(); sl@0: //!@SYMAuthor Katherine Xu sl@0: //!@SYMCreationDate 27/10/2009 sl@0: //!@SYMTestCaseDesc NCP H.264 SQCIF Video FULL SCREEN at 15fps 35 Kbps sl@0: //! MIME(video/h264) sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority Normal sl@0: //!@SYMTestExpectedResults sl@0: //! Video must be played on the full screen without any blurrness. sl@0: //!@SYMTestType CIT sl@0: sl@0: START_TEST_BLOCK 900 t_devvideo \multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h264-scale-automated.ini sl@0: CREATE_OBJECT CMMFDevVideoPlay mmfdvplay sl@0: COMMAND mmfdvplay H264CreateDecTest MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-CreateDecTest_command01 sl@0: COMMAND mmfdvplay H264SelectPostProcessor MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SelectPostProcessor_command02 sl@0: COMMAND mmfdvplay H264SetInputFormatCompr MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetInputFormatCompr_command03 sl@0: COMMAND mmfdvplay H264FindCommonFormats sl@0: COMMAND mmfdvplay H264SetBufferOptions MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetBufferOptions_command05 sl@0: COMMAND mmfdvplay H264ListFrameSize sl@0: COMMAND mmfdvplay H264SetPostProcessTypes MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetPostProcessTypes_command07 sl@0: COMMAND mmfdvplay H264SetVideoDestScreen MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetVideoDestScreen_command08 sl@0: COMMAND mmfdvplay H264SetWindowRect MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetWindowRect_command09 sl@0: COMMAND mmfdvplay H264SetPostProcessTypes MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SetPostProcessTypes_command10 sl@0: COMMAND mmfdvplay H264EnableSynchronization MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-EnableSynchronization_command11 sl@0: COMMAND mmfdvplay H264SynchronizeDecoding MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-SynchronizeDecoding_command12 sl@0: COMMAND mmfdvplay H264Initialize sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay H264IOFrameMatch sl@0: COMMAND mmfdvplay H264Start MULTIMEDIA-MMF-DevVideo-Playback-H264-SCALE-0002-0001-Start_command15 sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay H264Stop sl@0: COMMAND mmfdvplay H264Delete sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H264-SCALE-AUTOMATED-0002