GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
sink_s.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2006,2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_VIDEO_SDL_SINK_S_H
12 #define INCLUDED_VIDEO_SDL_SINK_S_H
13 
14 #include <gnuradio/sync_block.h>
15 #include <gnuradio/video_sdl/api.h>
16 
17 namespace gr {
18 namespace video_sdl {
19 
20 /*!
21  * \brief video sink using SDL
22  *
23  * input signature is one, two or three streams of signed short.
24  * One stream: stream is grey (Y)
25  * two streams: first is grey (Y), second is alternating U and V
26  * Three streams: first is grey (Y), second is U, third is V
27  * Input samples must be in the range [0,255].
28  */
29 class VIDEO_SDL_API sink_s : virtual public sync_block
30 {
31 public:
32  // gr::video_sdl::sink_s::sptr
33  typedef std::shared_ptr<sink_s> sptr;
34 
35  static sptr
36  make(double framerate, int width, int height, int dst_width, int dst_height);
37 };
38 
39 } /* namespace video_sdl */
40 } /* namespace gr */
41 
42 #endif /* INCLUDED_VIDEO_SDL_SINK_S_H */
synchronous 1:1 input to output with history
Definition: sync_block.h:26
video sink using SDL
Definition: sink_s.h:30
static sptr make(double framerate, int width, int height, int dst_width, int dst_height)
std::shared_ptr< sink_s > sptr
Definition: sink_s.h:33
#define VIDEO_SDL_API
Definition: gr-video-sdl/include/gnuradio/video_sdl/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29