os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h263-scale-automated.script
Update contrib.
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
18 //! @SYMTestSuiteName mm-mmf-devvideo-playback-h263-scale-automated
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
21 // Tests all public elements of the MMMFDevVideoPlayObserver,CMMFDevVideoPlay
22 // classes as a means of confidence that the APIs work as expected.
24 // The purpose is to provide a regression test suite of PublishedAll
25 // APIs for: MMMFDevVideoPlayObserver,CMMFDevVideoPlay
26 // The tests are fully automated.
37 START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
39 //!@SYMTestCaseID MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001
41 //! CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
42 //! CMMFDevVideoPlay::GetPostProcessorListL(RArray< TUid > {ref});
43 //! CMMFDevVideoPlay::SelectDecoderL(TUid);
44 //! CMMFDevVideoPlay::SelectPostProcessorL(TUid);
45 //! CMMFDevVideoPlay::SetInputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
46 //! CMMFDevVideoPlay::GetOutputFormatListL(THwDeviceId, RArray< TUncompressedVideoFormat > {ref});
47 //! CMMFDevVideoPlay::{ptr}PostProcessorInfoLC(TUid);
48 //! CMMFDevVideoPlay::FindCommonFormat(const TArray< TUncompressedVideoFormat > {ref}, const TArray< TUncompressedVideoFormat > {ref], CMMFDevVideoPlay::TUncompressedVideoFormat {ref]);
49 //! CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
50 //! CMMFDevVideoPlay:: SetInputFormatL(THwDeviceId , const TUncompressedVideoFormat {ref});
51 //! CMMFDevVideoPlay::{ptr}GetHeaderInformationL(TVideoDataUnitType, TVideoDataUnitEncapsulation, TVideoInputBuffer {ptr});
52 //! CMMFDevVideoPlay:: ReturnHeader(TVideoPictureHeader {ptr});
53 //! CMMFDevVideoPlay:: SetVideoDestScreenL(TBool);
54 //! CMMFDevVideoPlay:: SetPostProcessTypesL(THwDeviceId , TUint32 );
55 //! CMMFDevVideoPlay:: GetBufferOptions(TBufferOptions {ref});
56 //! CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
57 //! CMMFDevVideoPlay:: SetClockSource(MMMFClockSource {ptr]);
58 //! CMMFDevVideoPlay:: Initialize();
59 //! CMMFDevVideoPlay:: StartDirectScreenAccessL(const TRect {ref}, CFbsScreenDevice &aScreenDevice, const TRegion {ref});
60 //! CMMFDevVideoPlay:: Start();
61 //! CMMFDevVideoPlay:: Stop();
62 //! CMMFDevVideoPlay:: AbortDirectScreenAccess();
63 //!@SYMAuthor alavariega
64 //!@SYMCreationDate 16/6/2008
65 //!@SYMTestCaseDesc NCP H.263 QCIF Video FULL SCREEN at 15fps 128 Kbps
67 //! 1. NewL (inputfile = football_qcif_15fps_128k_dec.h263; screen = TRUE; codec = EH263; synch = 1; inputPath = {PATHVIDEOS, inputPath})
68 //! 2. SelectDecoderL (dec = {DECODERS, H263})
69 //! 3. SelectPostProcessorL (postprocessor = {POSTPROCESSOR, uid})
70 //! 4. SetInputFormat (useDecoder = TRUE; mimeType= {MIME,H263})
71 //! 5. GetOutputFormatListL (useDecoder = TRUE)
72 //! 6. PostProcessorInfoLC
73 //! 7. FindCommonFormat
74 //! 8. SetOutputFormatL (useDecoder = TRUE)
75 //! 9. SetInputFormat (useDecoder = FALSE; mimeType= {MIME,H263})
76 //! 10. GetOutputFormatListL (useDecoder = FALSE)
77 //! 11. SetOutputFormatL(useDecoder = TRUE)
78 //! 12. GetHeaderInformationL (buffer = {BUFFER_SIZE, KH263MaxCodedSizeCIF})
80 //! 14. SetVideoDestScreenL
81 //! 15. SetPostProcessTypesL (combination = 48)
82 //! 16. GetBufferOptions
83 //! 17. SetBufferOptionsL
84 //! 18. SetClockSource (synch = 1; framerate = 15)
85 //! 19. SetScaleOptionsL (x = 0;y = 0;width = 240;height = 320)
88 //! 21. StartDirectScreenAccess (displayMode = EColor64K)
92 //! 24. AbortDirectScreenAccess
94 //!@SYMTestStatus Verified
95 //!@SYMTestPriority Normal
96 //!@SYMTestExpectedResults
97 //! Video must be played on the full screen without any blurrness.
100 START_TEST_BLOCK 900 t_devvideo \multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h263-scale-automated.ini
101 CREATE_OBJECT CMMFDevVideoPlay mmfdvplay
102 COMMAND mmfdvplay NewL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-NewL_command01
103 COMMAND mmfdvplay SelectDecoderL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectDecoderL_command02
104 COMMAND mmfdvplay SelectPostProcessorL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SelectPostProcessorL_command03
105 COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command04
106 COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command05
107 COMMAND mmfdvplay PostProcessorInfoLC
108 COMMAND mmfdvplay FindCommonFormat
109 COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command08
110 COMMAND mmfdvplay SetInputFormat MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetInputFormat_command09
111 COMMAND mmfdvplay GetOutputFormatListL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetOutputFormatListL_command10
112 COMMAND mmfdvplay SetOutputFormatL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetOutputFormatL_command11
113 COMMAND mmfdvplay GetHeaderInformationL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-GetHeaderInformationL_command12
114 COMMAND mmfdvplay ReturnHeader
115 COMMAND mmfdvplay SetVideoDestScreenL
116 COMMAND mmfdvplay SetPostProcessTypesL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetPostProcessTypesL_command15
117 COMMAND mmfdvplay GetBufferOptions
118 COMMAND mmfdvplay SetBufferOptionsL
119 COMMAND mmfdvplay SetClockSource MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetClockSource_command18
120 COMMAND mmfdvplay SetScaleOptionsL MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-SetScaleOptionsL_command19
121 COMMAND mmfdvplay Initialize
123 COMMAND mmfdvplay StartDirectScreenAccess MULTIMEDIA-MMF-DevVideo-Playback-H263-scale-0001-0001-StartDirectScreenAccess_command21
124 COMMAND mmfdvplay Start
126 COMMAND mmfdvplay Stop
127 COMMAND mmfdvplay AbortDirectScreenAccess
130 END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H263-SCALE-AUTOMATED-0001