Skip to content

Commit a0a9cae

Browse files
committed
Video sink GRC block documentation
1 parent 87c718e commit a0a9cae

File tree

1 file changed

+43
-32
lines changed

1 file changed

+43
-32
lines changed

gr-video-sdl/grc/video_sdl_sink.xml

+43-32
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
<key>video_sdl_sink</key>
55
<import>from gnuradio import video_sdl</import>
66
<make>video_sdl.sink_$(type.fcn)($fps, $width, $height, 0, $display_width, $display_height)</make>
7-
<param>
8-
<name>Input Type</name>
9-
<key>type</key>
10-
<type>enum</type>
11-
<option>
12-
<name>Byte</name>
13-
<key>byte</key>
14-
<opt>fcn:uc</opt>
15-
</option>
16-
<option>
17-
<name>Short</name>
18-
<key>short</key>
19-
<opt>fcn:s</opt>
20-
</option>
21-
</param>
7+
<param>
8+
<name>Input Type</name>
9+
<key>type</key>
10+
<type>enum</type>
11+
<option>
12+
<name>Byte</name>
13+
<key>byte</key>
14+
<opt>fcn:uc</opt>
15+
</option>
16+
<option>
17+
<name>Short</name>
18+
<key>short</key>
19+
<opt>fcn:s</opt>
20+
</option>
21+
</param>
2222
<param>
2323
<name>Input Width</name>
2424
<key>width</key>
@@ -49,27 +49,38 @@
4949
<value>0</value>
5050
<type>float</type>
5151
</param>
52-
<param>
53-
<name>Channels</name>
54-
<key>num_channels</key>
55-
<type>enum</type>
56-
<option>
57-
<name>1 (Grayscale)</name>
58-
<key>1</key>
59-
</option>
60-
<option>
61-
<name>2 (Y, alternating pixels U and V)</name>
62-
<key>2</key>
63-
</option>
64-
<option>
65-
<name>3 (YUV)</name>
66-
<key>3</key>
67-
</option>
68-
</param>
52+
<param>
53+
<name>Channels</name>
54+
<key>num_channels</key>
55+
<type>enum</type>
56+
<option>
57+
<name>1 (Grayscale)</name>
58+
<key>1</key>
59+
</option>
60+
<option>
61+
<name>2 (Y, alternating pixels U and V)</name>
62+
<key>2</key>
63+
</option>
64+
<option>
65+
<name>3 (YUV)</name>
66+
<key>3</key>
67+
</option>
68+
</param>
6969
<sink>
7070
<name>in</name>
7171
<type>$type</type>
7272
<vlen>1</vlen>
7373
<nports>$num_channels</nports>
7474
</sink>
75+
<doc>
76+
Provides a rudimentary on-screen video display using libsdl.
77+
78+
A framerate of zero means video will be displayed as quickly as possible.
79+
80+
In 1-channel mode, input data is assumed to be grayscale, with each input item mapping to a single pixel.
81+
82+
In 2-channel mode, the first channel is Y for every pixel while the second channel alternates between pixels values for U and V.
83+
84+
In 3-channel mode, input channels are assumed to be matching triples of YUV values, one byte per pixel, per channel.
85+
</doc>
7586
</block>

0 commit comments

Comments
 (0)