Merging gst-devtools
[platform/upstream/gstreamer.git] / subprojects / gst-devtools / validate / tests / launcher_tests / check_set_props_and_time_props.validatetest
1 meta,
2     handles-states=true,
3     args = {
4         "videotestsrc pattern=blue ! compositor name=c ! video/x-raw,width=100,height=100,framerate=10/1 ! $(videosink) videotestsrc pattern=green ! c.",
5     }
6
7 # Start with the green stream on the top left corner and the blue on in the bottom right
8 set-timed-value-properties, timestamp=0.0, source-type=GstTriggerControlSource, binding-type=direct-absolute,
9     c.sink_0::xpos=50,
10     c.sink_0::ypos=50,
11     c.sink_0::width=50,
12     c.sink_0::height=50,
13     c.sink_1::xpos=0,
14     c.sink_1::ypos=0,
15     c.sink_1::width=50,
16     c.sink_1::height=50
17
18 # And invert it after 1 second of playback
19 set-timed-value-properties, timestamp=1.0, source-type=GstTriggerControlSource, binding-type=direct-absolute,
20     c.sink_0::xpos=0,
21     c.sink_0::ypos=0,
22     c.sink_1::xpos=50,
23     c.sink_1::ypos=50
24
25 play
26 crank-clock, expected-time=0.0
27 check-properties,
28     c.sink_0::xpos=50,
29     c.sink_0::ypos=50,
30     c.sink_1::xpos=0,
31     c.sink_1::ypos=0
32
33 crank-clock, repeat=5
34 check-position, expected-position=0.5
35 check-properties,
36     c.sink_0::xpos=50,
37     c.sink_0::ypos=50,
38     c.sink_1::xpos=0,
39     c.sink_1::ypos=0
40
41 crank-clock, repeat=5
42 check-position, expected-position=1.0
43 check-properties,
44     c.sink_0::xpos=0,
45     c.sink_0::ypos=0,
46     c.sink_1::xpos=50,
47     c.sink_1::ypos=50
48
49 set-properties, c.sink_0::xpos=50, c.sink_0::ypos=50, c.sink_1::xpos=0, c.sink_1::ypos=0
50 check-properties, c.sink_0::xpos=50, c.sink_0::ypos=50, c.sink_1::xpos=0, c.sink_1::ypos=0
51
52 set-properties, c::latency=50.0
53 check-properties, c::latency=50.0
54 stop