|
1 <?xml version="1.0" encoding="UTF-8" ?> |
|
2 <!-- |
|
3 Copyright (c) NOKIA 2009. All rights reserved. |
|
4 file Source Sink Image 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 BasicOperation_nofilename_filesink Pass |
|
12 --> |
|
13 |
|
14 <TestSet> |
|
15 |
|
16 <!-- -> |
|
17 File Source Image -> File Sink Image |
|
18 --> |
|
19 <Test name="BasicOperation"> |
|
20 <!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE |
|
21 --> |
|
22 <LoadComponent comp="filesink" name="OMX.NOKIA.IMAGE.FILESINK" /> |
|
23 <LoadComponent comp="filesource" name="OMX.NOKIA.IMAGE.FILESOURCE" /> |
|
24 |
|
25 <SetupTunnel output="filesource:0" input="filesink:0" /> |
|
26 <BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" /> |
|
27 |
|
28 <SetFilename comp="filesink" filename="C:\omxil\data\aac_same_image.stream" /> |
|
29 |
|
30 <SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" /> |
|
31 <GetFilename comp="filesink" filename="C:\omxil\data\aab_same_image.stream"/> |
|
32 |
|
33 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
34 <IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
35 |
|
36 <IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
37 <IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
38 |
|
39 <AllTransition state="idle" order="auto"/> |
|
40 <AllTransition state="executing" order="auto" /> |
|
41 <Wait delaytime="3000000" /> |
|
42 <AllTransition state="idle" order="auto"/> |
|
43 <AllTransition state="loaded" order="auto"/> |
|
44 </Test> |
|
45 |
|
46 |
|
47 <Test name="GetFilenameNoFileSet_filesink"> |
|
48 <LoadComponent comp="filesink" name="OMX.NOKIA.IMAGE.FILESINK" /> |
|
49 <!--OMX_ErrorNotReady--> |
|
50 <ExpectEvent comp="filesink" event="Error" nData1="0x80001010" nData2="0"/> |
|
51 <GetFilename comp="filesink" filename="C:\omxil\data\aab.stream" expectedomxerr="OMX_ErrorNotReady"/> |
|
52 </Test> |
|
53 |
|
54 <Test name="GetFilenameOverFlow_filesink"> |
|
55 <LoadComponent comp="filesink" name="OMX.NOKIA.IMAGE.FILESINK" /> |
|
56 <!--OMX_ErrorBadParameter--> |
|
57 |
|
58 <SetFilename comp="filesink" filename="C:\omxil\data\aac.stream" /> |
|
59 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
60 |
|
61 <ExpectEvent comp="filesink" event="Error" nData1="0x80001005" nData2="0" /> |
|
62 <GetFilename comp="filesink" filename="C:\omxil\data\aa.stream" expectedomxerr="OMX_ErrorBadParameter"/> |
|
63 </Test> |
|
64 |
|
65 |
|
66 <Test name="BasicOperation_nofilename_filesink"> |
|
67 <!-- Simple file read\write testcase: all comps. to IDLE then to EXECUTING then 3 secs later to IDLE |
|
68 no filename is set for the file sink --> |
|
69 <LoadComponent comp="filesink" name="OMX.NOKIA.IMAGE.FILESINK" /> |
|
70 <LoadComponent comp="filesource" name="OMX.NOKIA.IMAGE.FILESOURCE" /> |
|
71 |
|
72 <SetupTunnel output="filesource:0" input="filesink:0" /> |
|
73 <BufferSupplierOverride output="filesource:0" input="filesink:0" supplier="output" /> |
|
74 |
|
75 <SetFilename comp="filesource" filename="C:\omxil\data\aac.stream" /> |
|
76 |
|
77 <IgnoreEvent comp="filesink" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
78 <IgnoreEvent comp="filesource" event="PortSettingsChanged" nData1="0x02000001" nData2="0" nData3="0"/> |
|
79 |
|
80 <IgnoreEvent comp="filesink" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
81 <IgnoreEvent comp="filesource" event="OMX_EventBufferFlag" nData1="0x00000000 " nData2="0x00000001" nData3="0"/> |
|
82 |
|
83 <AllTransition state="idle" order="auto"/> |
|
84 <AllTransition state="executing" order="auto" /> |
|
85 <Wait delaytime="3000000" /> |
|
86 <AllTransition state="idle" order="auto"/> |
|
87 <AllTransition state="loaded" order="auto"/> |
|
88 </Test> |
|
89 |
|
90 |
|
91 </TestSet> |
|
92 |
|
93 |
|
94 |