diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2019-01-11 13:15:01 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-07-01 15:47:41 -0500 |
commit | 36d0dbbe1a61f2ca1fce8b4f37d53f6cb467b123 (patch) | |
tree | 33420bddd5098a4b932ac7e52a074863e823d83a /gr-video-sdl | |
parent | grc: introduce flag 'show_id' to show block id (diff) | |
download | gnuradio-36d0dbbe1a61f2ca1fce8b4f37d53f6cb467b123.tar.xz gnuradio-36d0dbbe1a61f2ca1fce8b4f37d53f6cb467b123.zip |
Add C++ support to gr-video-sdl
Diffstat (limited to 'gr-video-sdl')
-rw-r--r-- | gr-video-sdl/grc/video_sdl_sink.block.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gr-video-sdl/grc/video_sdl_sink.block.yml b/gr-video-sdl/grc/video_sdl_sink.block.yml index cc3b9949b..9476a00ef 100644 --- a/gr-video-sdl/grc/video_sdl_sink.block.yml +++ b/gr-video-sdl/grc/video_sdl_sink.block.yml @@ -1,5 +1,6 @@ id: video_sdl_sink label: Video SDL Sink +flags: [ python, cpp ] parameters: - id: type @@ -47,6 +48,13 @@ templates: 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. |