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-mpeg4-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: sl@0: sl@0: LOAD_SUITE t_devvideo sl@0: sl@0: DELAY 2000 sl@0: sl@0: sl@0: sl@0: START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0001 sl@0: sl@0: //!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-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:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr}); sl@0: //! CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr}); sl@0: //! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool); sl@0: //! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 ); sl@0: //! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]); 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: //! CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref}) sl@0: //! CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool ) sl@0: //!@SYMAuthor alavariega sl@0: //!@SYMCreationDate 16/6/2008 sl@0: //!@SYMTestCaseDesc NCP MPEG -4 QCIF Video FULL SCREEN at 30 fps 3Mbps sl@0: //!@SYMTestActions sl@0: //! 1. NewL (inputfile = paris_qcif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath}) sl@0: //! 2. SelectDecoderL (dec = {DECODERS, MPEG4}) sl@0: //! 3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid}) sl@0: //! 4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V}) sl@0: //! 5. GetOutputFormatListL (useDecoder = TRUE) sl@0: //! 6. PostProcessorInfoLC sl@0: //! 7. FindCommonFormat sl@0: //! 8. SetOutputFormatL (useDecoder = TRUE) sl@0: //! 9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V}) sl@0: //! 10. GetOutputFormatListL (useDecoder = FALSE) sl@0: //! 11. SetOutputFormatL(useDecoder = TRUE) sl@0: //! 12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF}) sl@0: //! 13. ReturnHeader sl@0: //! 14. SetVideoDestScreenL sl@0: //! 15. SetPostProcessTypesL (combination = 48) sl@0: //! 16. GetBufferOptions sl@0: //! 17. SetBufferOptionsL sl@0: //! 18. SetClockSource (synch = 1; framerate = 30) sl@0: //! 19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320) sl@0: //! 20. Initialize sl@0: //! OUTSTANDING sl@0: //! 21. StartDirectScreenAccess (displayMode = EColor64K) sl@0: //! 22. Start sl@0: //! OUTSTANDING sl@0: //! 23. Stop sl@0: //! 24. AbortDirectScreenAccess sl@0: //! 25. ~ 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-mpeg4-scale-automated.ini sl@0: CREATE_OBJECT CMMFDevVideoPlay mmfdvplay sl@0: COMMAND mmfdvplay NewL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-NewL_command01 sl@0: COMMAND mmfdvplay SelectDecoderL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SelectDecoderL_command02 sl@0: COMMAND mmfdvplay SelectPostProcessorL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SelectPostProcessorL_command03 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetInputFormat_command04 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-GetOutputFormatListL_command05 sl@0: COMMAND mmfdvplay PostProcessorInfoLC sl@0: COMMAND mmfdvplay FindCommonFormat sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetOutputFormatL_command08 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetInputFormat_command09 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-GetOutputFormatListL_command10 sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetOutputFormatL_command11 sl@0: COMMAND mmfdvplay GetHeaderInformationL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-GetHeaderInformationL_command12 sl@0: COMMAND mmfdvplay ReturnHeader sl@0: COMMAND mmfdvplay SetVideoDestScreenL sl@0: COMMAND mmfdvplay SetPostProcessTypesL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetPostProcessTypesL_command15 sl@0: COMMAND mmfdvplay GetBufferOptions sl@0: COMMAND mmfdvplay SetBufferOptionsL sl@0: COMMAND mmfdvplay SetClockSource MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetClockSource_command18 sl@0: COMMAND mmfdvplay SetScaleOptionsL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-SetScaleOptionsL_command19 sl@0: COMMAND mmfdvplay Initialize sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay StartDirectScreenAccess MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0001-0001-StartDirectScreenAccess_command21 sl@0: COMMAND mmfdvplay Start sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay Stop sl@0: COMMAND mmfdvplay AbortDirectScreenAccess sl@0: COMMAND mmfdvplay ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0001 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0002 sl@0: sl@0: //!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-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:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr}); sl@0: //! CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr}); sl@0: //! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool); sl@0: //! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 ); sl@0: //! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]); 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: //! CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref}) sl@0: //! CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool ) sl@0: //!@SYMAuthor alavariega sl@0: //!@SYMCreationDate 16/6/2008 sl@0: //!@SYMTestCaseDesc NCP MPEG -4 SQCIF Video FULL SCREEN at 30 fps 3Mbps sl@0: //!@SYMTestActions sl@0: //! 1. NewL (inputfile = foreman_sqcif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath}) sl@0: //! 2. SelectDecoderL (dec = {DECODERS, MPEG4}) sl@0: //! 3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid}) sl@0: //! 4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V}) sl@0: //! 5. GetOutputFormatListL (useDecoder = TRUE) sl@0: //! 6. PostProcessorInfoLC sl@0: //! 7. FindCommonFormat sl@0: //! 8. SetOutputFormatL (useDecoder = TRUE) sl@0: //! 9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V}) sl@0: //! 10. GetOutputFormatListL (useDecoder = FALSE) sl@0: //! 11. SetOutputFormatL(useDecoder = TRUE) sl@0: //! 12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF}) sl@0: //! 13. ReturnHeader sl@0: //! 14. SetVideoDestScreenL sl@0: //! 15. SetPostProcessTypesL (combination = 48) sl@0: //! 16. GetBufferOptions sl@0: //! 17. SetBufferOptionsL sl@0: //! 18. SetClockSource (synch = 1; framerate = 30) sl@0: //! 19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320) sl@0: //! 20. Initialize sl@0: //! OUTSTANDING sl@0: //! 21. StartDirectScreenAccess (displayMode = EColor64K) sl@0: //! 22. Start sl@0: //! OUTSTANDING sl@0: //! 23. Stop sl@0: //! 24. AbortDirectScreenAccess sl@0: //! 25. ~ 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-mpeg4-scale-automated.ini sl@0: CREATE_OBJECT CMMFDevVideoPlay mmfdvplay sl@0: COMMAND mmfdvplay NewL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-NewL_command01 sl@0: COMMAND mmfdvplay SelectDecoderL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SelectDecoderL_command02 sl@0: COMMAND mmfdvplay SelectPostProcessorL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SelectPostProcessorL_command03 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetInputFormat_command04 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-GetOutputFormatListL_command05 sl@0: COMMAND mmfdvplay PostProcessorInfoLC sl@0: COMMAND mmfdvplay FindCommonFormat sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetOutputFormatL_command08 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetInputFormat_command09 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-GetOutputFormatListL_command10 sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetOutputFormatL_command11 sl@0: COMMAND mmfdvplay GetHeaderInformationL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-GetHeaderInformationL_command12 sl@0: COMMAND mmfdvplay ReturnHeader sl@0: COMMAND mmfdvplay SetVideoDestScreenL sl@0: COMMAND mmfdvplay SetPostProcessTypesL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetPostProcessTypesL_command15 sl@0: COMMAND mmfdvplay GetBufferOptions sl@0: COMMAND mmfdvplay SetBufferOptionsL sl@0: COMMAND mmfdvplay SetClockSource MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetClockSource_command18 sl@0: COMMAND mmfdvplay SetScaleOptionsL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-SetScaleOptionsL_command19 sl@0: COMMAND mmfdvplay Initialize sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay StartDirectScreenAccess MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0002-0001-StartDirectScreenAccess_command21 sl@0: COMMAND mmfdvplay Start sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay Stop sl@0: COMMAND mmfdvplay AbortDirectScreenAccess sl@0: COMMAND mmfdvplay ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0002 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0003 sl@0: sl@0: //!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0003 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:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr}); sl@0: //! CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr}); sl@0: //! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool); sl@0: //! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 ); sl@0: //! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]); 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: //! CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref}) sl@0: //! CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool ) sl@0: //!@SYMAuthor alavariega sl@0: //!@SYMCreationDate 16/6/2008 sl@0: //!@SYMTestCaseDesc NCP MPEG -4 CIF Video FULL SCREEN at 30 fps 3Mbps sl@0: //!@SYMTestActions sl@0: //! 1. NewL (inputfile = paris_cif_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath}) sl@0: //! 2. SelectDecoderL (dec = {DECODERS, MPEG4}) sl@0: //! 3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid}) sl@0: //! 4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V}) sl@0: //! 5. GetOutputFormatListL (useDecoder = TRUE) sl@0: //! 6. PostProcessorInfoLC sl@0: //! 7. FindCommonFormat sl@0: //! 8. SetOutputFormatL (useDecoder = TRUE) sl@0: //! 9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V}) sl@0: //! 10. GetOutputFormatListL (useDecoder = FALSE) sl@0: //! 11. SetOutputFormatL(useDecoder = TRUE) sl@0: //! 12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF}) sl@0: //! 13. ReturnHeader sl@0: //! 14. SetVideoDestScreenL sl@0: //! 15. SetPostProcessTypesL (combination = 48) sl@0: //! 16. GetBufferOptions sl@0: //! 17. SetBufferOptionsL sl@0: //! 18. SetClockSource (synch = 1; framerate = 30) sl@0: //! 19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320) sl@0: //! 20. Initialize sl@0: //! OUTSTANDING sl@0: //! 21. StartDirectScreenAccess (displayMode = EColor64K) sl@0: //! 22. Start sl@0: //! OUTSTANDING sl@0: //! 23. Stop sl@0: //! 24. AbortDirectScreenAccess sl@0: //! 25. ~ 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-mpeg4-scale-automated.ini sl@0: CREATE_OBJECT CMMFDevVideoPlay mmfdvplay sl@0: COMMAND mmfdvplay NewL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-NewL_command01 sl@0: COMMAND mmfdvplay SelectDecoderL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SelectDecoderL_command02 sl@0: COMMAND mmfdvplay SelectPostProcessorL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SelectPostProcessorL_command03 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetInputFormat_command04 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-GetOutputFormatListL_command05 sl@0: COMMAND mmfdvplay PostProcessorInfoLC sl@0: COMMAND mmfdvplay FindCommonFormat sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetOutputFormatL_command08 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetInputFormat_command09 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-GetOutputFormatListL_command10 sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetOutputFormatL_command11 sl@0: COMMAND mmfdvplay GetHeaderInformationL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-GetHeaderInformationL_command12 sl@0: COMMAND mmfdvplay ReturnHeader sl@0: COMMAND mmfdvplay SetVideoDestScreenL sl@0: COMMAND mmfdvplay SetPostProcessTypesL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetPostProcessTypesL_command15 sl@0: COMMAND mmfdvplay GetBufferOptions sl@0: COMMAND mmfdvplay SetBufferOptionsL sl@0: COMMAND mmfdvplay SetClockSource MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetClockSource_command18 sl@0: COMMAND mmfdvplay SetScaleOptionsL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-SetScaleOptionsL_command19 sl@0: COMMAND mmfdvplay Initialize sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay StartDirectScreenAccess MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0003-0001-StartDirectScreenAccess_command21 sl@0: COMMAND mmfdvplay Start sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay Stop sl@0: COMMAND mmfdvplay AbortDirectScreenAccess sl@0: COMMAND mmfdvplay ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0003 sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0004 sl@0: sl@0: //!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0004 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:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref}); sl@0: //! CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr}); sl@0: //! CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr}); sl@0: //! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool); sl@0: //! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 ); sl@0: //! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref}); sl@0: //! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]); 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: //! CMMFDevVideoPlay:: SetPosition(const TTimeIntervalMicroSeconds {ref}) sl@0: //! CMMFDevVideoPlay:: SetScaleOptionsL(THwDeviceId , const TSize {ref}, TBool ) sl@0: //!@SYMAuthor alavariega sl@0: //!@SYMCreationDate 16/6/2008 sl@0: //!@SYMTestCaseDesc NCP MPEG -4 QVGA Video FULL SCREEN at 30 fps 3Mbps sl@0: //!@SYMTestActions sl@0: //! 1. NewL (inputfile = MPEG4_QVGA_30fps_3M_dec.m4v; screen = TRUE; codec = EMPEG4; synch = 1; inputPath = {PATHVIDEOS, inputPath}) sl@0: //! 2. SelectDecoderL (dec = {DECODERS, MPEG4}) sl@0: //! 3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid}) sl@0: //! 4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,MP4V}) sl@0: //! 5. GetOutputFormatListL (useDecoder = TRUE) sl@0: //! 6. PostProcessorInfoLC sl@0: //! 7. FindCommonFormat sl@0: //! 8. SetOutputFormatL (useDecoder = TRUE) sl@0: //! 9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,MP4V}) sl@0: //! 10. GetOutputFormatListL (useDecoder = FALSE) sl@0: //! 11. SetOutputFormatL(useDecoder = TRUE) sl@0: //! 12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF}) sl@0: //! 13. ReturnHeader sl@0: //! 14. SetVideoDestScreenL sl@0: //! 15. SetPostProcessTypesL (combination = 48) sl@0: //! 16. GetBufferOptions sl@0: //! 17. SetBufferOptionsL sl@0: //! 18. SetClockSource (synch = 1; framerate = 30) sl@0: //! 19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320) sl@0: //! 20. Initialize sl@0: //! OUTSTANDING sl@0: //! 21. StartDirectScreenAccess (displayMode = EColor64K) sl@0: //! 22. Start sl@0: //! OUTSTANDING sl@0: //! 23. Stop sl@0: //! 24. AbortDirectScreenAccess sl@0: //! 25. ~ 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-mpeg4-scale-automated.ini sl@0: CREATE_OBJECT CMMFDevVideoPlay mmfdvplay sl@0: COMMAND mmfdvplay NewL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-NewL_command01 sl@0: COMMAND mmfdvplay SelectDecoderL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SelectDecoderL_command02 sl@0: COMMAND mmfdvplay SelectPostProcessorL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SelectPostProcessorL_command03 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetInputFormat_command04 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-GetOutputFormatListL_command05 sl@0: COMMAND mmfdvplay PostProcessorInfoLC sl@0: COMMAND mmfdvplay FindCommonFormat sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetOutputFormatL_command08 sl@0: COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetInputFormat_command09 sl@0: COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-GetOutputFormatListL_command10 sl@0: COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetOutputFormatL_command11 sl@0: COMMAND mmfdvplay GetHeaderInformationL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-GetHeaderInformationL_command12 sl@0: COMMAND mmfdvplay ReturnHeader sl@0: COMMAND mmfdvplay SetVideoDestScreenL sl@0: COMMAND mmfdvplay SetPostProcessTypesL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetPostProcessTypesL_command15 sl@0: COMMAND mmfdvplay GetBufferOptions sl@0: COMMAND mmfdvplay SetBufferOptionsL sl@0: COMMAND mmfdvplay SetClockSource MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetClockSource_command18 sl@0: COMMAND mmfdvplay SetScaleOptionsL MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-SetScaleOptionsL_command19 sl@0: COMMAND mmfdvplay Initialize sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay StartDirectScreenAccess MULTIMEDIA-MMF-DevVideo-Playback-Mpeg4-Scale-0004-0001-StartDirectScreenAccess_command21 sl@0: COMMAND mmfdvplay Start sl@0: OUTSTANDING sl@0: COMMAND mmfdvplay Stop sl@0: COMMAND mmfdvplay AbortDirectScreenAccess sl@0: COMMAND mmfdvplay ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-MPEG4-SCALE-AUTOMATED-0004