|
1 <?xml version="1.0" encoding="UTF-8" ?> |
|
2 <!-- |
|
3 Copyright (c) NOKIA 2009. All rights reserved. |
|
4 file Source Sink Video tests for OpenMAX IL. |
|
5 |
|
6 |
|
7 Expected Result: |
|
8 BasicOperation Pass |
|
9 GetFilenameNoFileSet_filesink Fail OMX_ErrorNotReady |
|
10 GetFilenameOverFlow_filesink Fail OMX_ErrorBadParameter |
|
11 ChangeEncodeType_filesink Pass |
|
12 ChangeInvalidEncodeType_filesink Fail OMX_ErrorUnsupportedSetting |
|
13 BasicOperation_nofilename_filesink Pass |
|
14 --> |
|
15 |
|
16 <TestSet> |
|
17 |
|
18 <!-- -> |
|
19 File Source Video -> File Sink Video |
|
20 --> |
|
21 <Test name="BasicOperation"> |
|
22 <!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE |
|
23 --> |
|
24 <LoadComponent comp="filesink" name="OMX.NOKIA.VIDEO.FILESINK" /> |
|
25 <LoadComponent comp="filesource" name="OMX.NOKIA.VIDEO.FILESOURCE" /> |
|
26 |
|
27 <SetupTunnel output="filesource:0" input="filesink:0" /> |
|
28 <BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" /> |
|
29 |
|
30 <SetFilename comp="filesink" filename="C:\omxil\data\aac_same_video.stream" /> |
|
31 |
|
32 <SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" /> |
|
33 <GetFilename comp="filesink" filename="C:\omxil\data\aab_same_video.stream"/> |
|
34 |
|
35 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
36 <IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
37 |
|
38 <IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
39 <IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
40 |
|
41 <AllTransition state="idle" order="auto"/> |
|
42 <AllTransition state="executing" order="auto" /> |
|
43 <Wait delaytime="3000000" /> |
|
44 <AllTransition state="idle" order="auto"/> |
|
45 <AllTransition state="loaded" order="auto"/> |
|
46 </Test> |
|
47 |
|
48 |
|
49 <Test name="GetFilenameNoFileSet_filesink"> |
|
50 <LoadComponent comp="filesink" name="OMX.NOKIA.VIDEO.FILESINK" /> |
|
51 <!--OMX_ErrorNotReady--> |
|
52 <ExpectEvent comp="filesink" event="Error" nData1="0x80001010" nData2="0"/> |
|
53 <GetFilename comp="filesink" filename="C:\omxil\data\aab.stream" expectedomxerr="OMX_ErrorNotReady"/> |
|
54 </Test> |
|
55 |
|
56 <Test name="GetFilenameOverFlow_filesink"> |
|
57 <LoadComponent comp="filesink" name="OMX.NOKIA.VIDEO.FILESINK" /> |
|
58 <!--OMX_ErrorBadParameter--> |
|
59 |
|
60 <SetFilename comp="filesink" filename="C:\omxil\data\aac.stream" /> |
|
61 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
62 |
|
63 <ExpectEvent comp="filesink" event="Error" nData1="0x80001005" nData2="0" /> |
|
64 <GetFilename comp="filesink" filename="C:\omxil\data\aa.stream" expectedomxerr="OMX_ErrorBadParameter"/> |
|
65 </Test> |
|
66 |
|
67 <Test name="ChangeEncodeType_filesink"> |
|
68 <!-- expected result :Pass --> |
|
69 <LoadComponent comp="filesink" name="OMX.NOKIA.VIDEO.FILESINK" /> |
|
70 <!--Pass--> |
|
71 <SetVideoPortDef port="filesink:0" codingType="unused" /> |
|
72 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
73 </Test> |
|
74 |
|
75 |
|
76 <Test name="ChangeInvalidEncodeType_filesink"> |
|
77 <!-- expected result :fail OMX_ErrorUnsupportedSetting--> |
|
78 <LoadComponent comp="filesink" name="OMX.NOKIA.VIDEO.FILESINK" /> |
|
79 <!--Pass--> |
|
80 <SetVideoPortDef port="filesink:0" codingType="mpeg4" expectedomxerr="OMX_ErrorUnsupportedSetting"/> |
|
81 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
82 </Test> |
|
83 |
|
84 <Test name="BasicOperation_nofilename_filesink"> |
|
85 <!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE |
|
86 no filename is set for the file sink --> |
|
87 <LoadComponent comp="filesink" name="OMX.NOKIA.VIDEO.FILESINK" /> |
|
88 <LoadComponent comp="filesource" name="OMX.NOKIA.VIDEO.FILESOURCE" /> |
|
89 |
|
90 <SetupTunnel output="filesource:0" input="filesink:0" /> |
|
91 <BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" /> |
|
92 |
|
93 <SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" /> |
|
94 |
|
95 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
96 <IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
97 |
|
98 <IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
99 <IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
100 |
|
101 <AllTransition state="idle" order="auto"/> |
|
102 <AllTransition state="executing" order="auto" /> |
|
103 <Wait delaytime="3000000" /> |
|
104 <AllTransition state="idle" order="auto"/> |
|
105 <AllTransition state="loaded" order="auto"/> |
|
106 </Test> |
|
107 |
|
108 |
|
109 </TestSet> |
|
110 |
|
111 |
|
112 |