summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Trewhitt <ethan.trewhitt@gtri.gatech.edu>2015-02-05 19:24:57 -0500
committerEthan Trewhitt <ethan@trewhitt.org>2015-02-17 17:32:45 -0500
commit5a19112ce4fa28312517c02e2aeb43537ab61a0e (patch)
tree54bd7c11040a384a6ef7a300ed03e00ad5256aed
parentc990e8256dd580a72b28d138c030a112a33157f7 (diff)
Implemented GRC block for video SDL sink
-rw-r--r--gr-video-sdl/CMakeLists.txt1
-rw-r--r--gr-video-sdl/grc/CMakeLists.txt27
-rw-r--r--gr-video-sdl/grc/video_block_tree.xml13
-rw-r--r--gr-video-sdl/grc/video_sdl_sink.xml42
4 files changed, 83 insertions, 0 deletions
diff --git a/gr-video-sdl/CMakeLists.txt b/gr-video-sdl/CMakeLists.txt
index 21b017b2cc..50975eb675 100644
--- a/gr-video-sdl/CMakeLists.txt
+++ b/gr-video-sdl/CMakeLists.txt
@@ -84,6 +84,7 @@ CPACK_COMPONENT("video_sdl_swig"
add_subdirectory(include/gnuradio/video_sdl)
add_subdirectory(lib)
if(ENABLE_PYTHON)
+ add_subdirectory(grc)
add_subdirectory(swig)
add_subdirectory(python/video_sdl)
endif(ENABLE_PYTHON)
diff --git a/gr-video-sdl/grc/CMakeLists.txt b/gr-video-sdl/grc/CMakeLists.txt
new file mode 100644
index 0000000000..b696224274
--- /dev/null
+++ b/gr-video-sdl/grc/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Copyright 2011 Free Software Foundation, Inc.
+#
+# This file is part of GNU Radio
+#
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+
+install(FILES
+ video_sdl_sink.xml
+ video_block_tree.xml
+
+ DESTINATION share/gnuradio/grc/blocks
+)
+
+
diff --git a/gr-video-sdl/grc/video_block_tree.xml b/gr-video-sdl/grc/video_block_tree.xml
new file mode 100644
index 0000000000..442c68a787
--- /dev/null
+++ b/gr-video-sdl/grc/video_block_tree.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Block Tree for video blocks.
+###################################################
+ -->
+<cat>
+ <name></name> <!-- Blank for Root Name -->
+ <cat>
+ <name>Video</name>
+ <block>video_sdl_sink</block>
+ </cat>
+</cat>
diff --git a/gr-video-sdl/grc/video_sdl_sink.xml b/gr-video-sdl/grc/video_sdl_sink.xml
new file mode 100644
index 0000000000..847e2feae5
--- /dev/null
+++ b/gr-video-sdl/grc/video_sdl_sink.xml
@@ -0,0 +1,42 @@
+<?xml version='1.0'?>
+<block>
+ <name>Video SDL Sink</name>
+ <key>video_sdl_sink</key>
+ <import>from gnuradio import video_sdl</import>
+ <make>video_sdl.sink_uc($fps, $width, $height, 0, $display_width, $display_height)</make>
+ <param>
+ <name>Framerate</name>
+ <key>fps</key>
+ <value>0</value>
+ <type>float</type>
+ </param>
+ <param>
+ <name>Width</name>
+ <key>width</key>
+ <value>640</value>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Height</name>
+ <key>height</key>
+ <value>480</value>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Display Width</name>
+ <key>display_width</key>
+ <value>640</value>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Display Height</name>
+ <key>display_height</key>
+ <value>480</value>
+ <type>int</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>byte</type>
+ <vlen>1</vlen>
+ </sink>
+</block>