YARP
Yet Another Robot Platform
IFrameGrabberRgb.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_DEV_IFRAMEGRABBERRGB_H
8 #define YARP_DEV_IFRAMEGRABBERRGB_H
9 
10 #include <yarp/conf/system.h>
11 #if !defined(YARP_INCLUDING_DEPRECATED_HEADER_YARP_DEV_IFRAMEGRABBERRGB_H_ON_PURPOSE)
12 YARP_COMPILER_WARNING("<yarp/dev/IFrameGrabberRgb.h> file is deprecated")
13 #endif
14 
15 #ifndef YARP_NO_DEPRECATED // Since YARP 3.5.0
16 
17 #include <yarp/dev/api.h>
18 
19 namespace yarp {
20 namespace dev {
21 
30 {
31 public:
32  virtual ~IFrameGrabberRgb();
40  virtual bool getRgbBuffer(unsigned char *buffer) = 0;
41 
46  virtual int height() const = 0;
47 
52  virtual int width() const = 0;
53 };
54 
55 } // namespace dev
56 } // namespace yarp
57 
58 #endif // YARP_NO_DEPRECATED
59 
60 #endif // YARP_DEV_IFRAMEGRABBERRGB_H
RGB Interface to a FrameGrabber device.
virtual int height() const =0
Return the height of each frame.
virtual bool getRgbBuffer(unsigned char *buffer)=0
Get a rgb buffer from the frame grabber, if required demosaicking/color reconstruction is applied.
virtual int width() const =0
Return the width of each frame.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_COMPILER_WARNING(x)
Generate a warning at build time on supported compilers.
Definition: system.h:109
#define YARP_dev_DEPRECATED_API
Definition: api.h:20