VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gvbars.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2017 Graeme Walker
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 // ===
17 ///
18 /// \file gvbars.h
19 ///
20 
21 #ifndef GV_BARS__H
22 #define GV_BARS__H
23 
24 #include "gdef.h"
25 #include "gvimagegenerator.h"
26 
27 namespace Gv
28 {
29  class Bars ;
30  class BarsImp ;
31 }
32 
33 /// \class Gv::Bars
34 /// An image generator for test images comprising horizontal or vertical colour bars.
35 /// Writes into a v4l capture buffer.
36 ///
37 class Gv::Bars : public ImageGenerator
38 {
39 public:
40  Bars( int dx , int dy , const std::string & config ) ;
41  ///< Constructor.
42 
43  virtual ~Bars() ;
44  ///< Destructor.
45 
46  virtual bool init() override ;
47  ///< Override from Gv::ImageGenerator.
48 
49  virtual void fillBuffer( CaptureBuffer & , const CaptureBufferScale & ) override ;
50  ///< Override from Gv::ImageGenerator.
51 
52 private:
53  Bars( const Bars & ) ;
54  void operator=( const Bars & ) ;
55 
56 private:
57  BarsImp * m_imp ;
58 } ;
59 
60 #endif
Bars(int dx, int dy, const std::string &config)
Constructor.
Definition: gvbars.cpp:135
virtual void fillBuffer(CaptureBuffer &, const CaptureBufferScale &) override
Override from Gv::ImageGenerator.
Definition: gvbars.cpp:150
An abstract interface for filling a YUYV capture buffer with a generated image.
virtual ~Bars()
Destructor.
Definition: gvbars.cpp:140
virtual bool init() override
Override from Gv::ImageGenerator.
Definition: gvbars.cpp:145
A video-capture buffer class to hold image data, with overloaded constructors for the various V4l i/o...
A structure holding capture buffer dimensions.
A pimple-pattern implementation class for Gv::Bars.
Definition: gvbars.cpp:70
An image generator for test images comprising horizontal or vertical colour bars. ...
Definition: gvbars.h:37