[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/04: Implemented GRC block for video SDL
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/04: Implemented GRC block for video SDL sink |
Date: |
Wed, 4 Mar 2015 15:58:08 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 5a19112ce4fa28312517c02e2aeb43537ab61a0e
Author: Ethan Trewhitt <address@hidden>
Date: Thu Feb 5 19:24:57 2015 -0500
Implemented GRC block for video SDL sink
---
gr-video-sdl/CMakeLists.txt | 1 +
gr-video-sdl/grc/CMakeLists.txt | 27 ++++++++++++++++++++++
gr-video-sdl/grc/video_block_tree.xml | 13 +++++++++++
gr-video-sdl/grc/video_sdl_sink.xml | 42 +++++++++++++++++++++++++++++++++++
4 files changed, 83 insertions(+)
diff --git a/gr-video-sdl/CMakeLists.txt b/gr-video-sdl/CMakeLists.txt
index 21b017b..50975eb 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 0000000..b696224
--- /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 0000000..442c68a
--- /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 0000000..847e2fe
--- /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>