1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
id: video_sdl_sink
label: Video SDL Sink
flags: [ python, cpp ]
parameters:
- id: type
label: Input Type
dtype: enum
options: [byte, short]
option_attributes:
fcn: [uc, s]
hide: part
- id: width
label: Input Width
dtype: int
default: '640'
- id: height
label: Input Height
dtype: int
default: '480'
- id: display_width
label: Display Width
dtype: int
default: '640'
- id: display_height
label: Display Height
dtype: int
default: '480'
- id: fps
label: Framerate
dtype: float
default: '0'
- id: num_channels
label: Channels
dtype: enum
options: ['1', '2', '3']
option_labels: [1 (Grayscale), '2 (Y, alternating pixels U and V)', 3 (YUV)]
hide: part
inputs:
- domain: stream
dtype: ${ type }
vlen: 1
multiplicity: ${ num_channels }
templates:
imports: from gnuradio import video_sdl
make: video_sdl.sink_${type.fcn}(${fps}, ${width}, ${height}, 0, ${display_width},
${display_height})
cpp_templates:
includes: [ '#include <gnuradio/video_sdl/sink_${type.fcn}.h>' ]
declarations: 'video_sdl::sink_${type.fcn}::sptr ${id};'
make: 'this->${id} = video_sdl::sink_${type.fcn}::make(${fps}, ${width}, ${height}, 0, ${display_width},
${display_height});'
link: ['gnuradio-video_sdl']
documentation: |-
Provides a rudimentary on-screen video display using libsdl.
A framerate of zero means video will be displayed as quickly as possible.
In 1-channel mode, input data is assumed to be grayscale, with each input item mapping to a single pixel.
In 2-channel mode, the first channel is Y for every pixel while the second channel alternates between pixels values for U and V.
In 3-channel mode, input channels are assumed to be matching triples of YUV values, one byte per pixel, per channel.
file_format: 1
|