diff options
Diffstat (limited to 'gr-video-sdl/include/gnuradio')
-rw-r--r-- | gr-video-sdl/include/gnuradio/video_sdl/CMakeLists.txt | 30 | ||||
-rw-r--r-- | gr-video-sdl/include/gnuradio/video_sdl/api.h | 33 | ||||
-rw-r--r-- | gr-video-sdl/include/gnuradio/video_sdl/sink_s.h | 56 | ||||
-rw-r--r-- | gr-video-sdl/include/gnuradio/video_sdl/sink_uc.h | 56 |
4 files changed, 175 insertions, 0 deletions
diff --git a/gr-video-sdl/include/gnuradio/video_sdl/CMakeLists.txt b/gr-video-sdl/include/gnuradio/video_sdl/CMakeLists.txt new file mode 100644 index 0000000000..8831fd8172 --- /dev/null +++ b/gr-video-sdl/include/gnuradio/video_sdl/CMakeLists.txt @@ -0,0 +1,30 @@ +# Copyright 2011,2012 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 header files +######################################################################## +install(FILES + api.h + sink_s.h + sink_uc.h + DESTINATION ${GR_INCLUDE_DIR}/gnuradio/video_sdl + COMPONENT "video_sdl_devel" +) + diff --git a/gr-video-sdl/include/gnuradio/video_sdl/api.h b/gr-video-sdl/include/gnuradio/video_sdl/api.h new file mode 100644 index 0000000000..b9df5fd060 --- /dev/null +++ b/gr-video-sdl/include/gnuradio/video_sdl/api.h @@ -0,0 +1,33 @@ +/* + * 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. + */ + +#ifndef INCLUDED_VIDEO_SDL_API_H +#define INCLUDED_VIDEO_SDL_API_H + +#include <gnuradio/attributes.h> + +#ifdef gnuradio_video_sdl_EXPORTS +# define VIDEO_SDL_API __GR_ATTR_EXPORT +#else +# define VIDEO_SDL_API __GR_ATTR_IMPORT +#endif + +#endif /* INCLUDED_VIDEO_SDL_API_H */ diff --git a/gr-video-sdl/include/gnuradio/video_sdl/sink_s.h b/gr-video-sdl/include/gnuradio/video_sdl/sink_s.h new file mode 100644 index 0000000000..bc5b6eea13 --- /dev/null +++ b/gr-video-sdl/include/gnuradio/video_sdl/sink_s.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2006,2012 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. + */ + +#ifndef INCLUDED_VIDEO_SDL_SINK_S_H +#define INCLUDED_VIDEO_SDL_SINK_S_H + +#include <gnuradio/video_sdl/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace video_sdl { + + /*! + * \brief video sink using SDL + * + * input signature is one, two or three streams of signed short. + * One stream: stream is grey (Y) + * two streems: first is grey (Y), second is alternating U and V + * Three streams: first is grey (Y), second is U, third is V + * Input samples must be in the range [0,255]. + */ + class VIDEO_SDL_API sink_s : virtual public sync_block + { + public: + // gr::video_sdl::sink_s::sptr + typedef boost::shared_ptr<sink_s> sptr; + + static sptr make(double framerate, + int width, int height, + unsigned int format, + int dst_width, int dst_height); + }; + + } /* namespace video_sdl */ +} /* namespace gr */ + +#endif /* INCLUDED_VIDEO_SDL_SINK_S_H */ diff --git a/gr-video-sdl/include/gnuradio/video_sdl/sink_uc.h b/gr-video-sdl/include/gnuradio/video_sdl/sink_uc.h new file mode 100644 index 0000000000..222eb117e0 --- /dev/null +++ b/gr-video-sdl/include/gnuradio/video_sdl/sink_uc.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2006,2012 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. + */ + +#ifndef INCLUDED_VIDEO_SDL_SINK_UC_H +#define INCLUDED_VIDEO_SDL_SINK_UC_H + +#include <gnuradio/video_sdl/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace video_sdl { + + /*! + * \brief video sink using SDL + * + * input signature is one, two or three streams of uchar. + * One stream: stream is grey (Y) + * two streems: first is grey (Y), second is alternating U and V + * Three streams: first is grey (Y), second is U, third is V + * Input samples must be in the range [0,255]. + */ + class VIDEO_SDL_API sink_uc : virtual public sync_block + { + public: + // gr::video_sdl::sink_uc::sptr + typedef boost::shared_ptr<sink_uc> sptr; + + static sptr make(double framerate, + int width, int height, + unsigned int format, + int dst_width, int dst_height); + }; + + } /* namespace video_sdl */ +} /* namespace gr */ + +#endif /* INCLUDED_VIDEO_SDL_SINK_UC_H */ |