YARP
Yet Another Robot Platform
IFrameGrabber.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_IFRAMEGRABBER_H
8 #define YARP_DEV_IFRAMEGRABBER_H
9 
10 #include <yarp/conf/system.h>
11 #if !defined(YARP_INCLUDING_DEPRECATED_HEADER_YARP_DEV_IFRAMEGRABBER_H_ON_PURPOSE)
12 YARP_COMPILER_WARNING("<yarp/dev/IFrameGrabber.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 ~IFrameGrabber();
33 
43  virtual bool getRawBuffer(unsigned char *buffer)=0;
44 
50  virtual int getRawBufferSize()=0;
51 
56  virtual int height() const =0;
57 
62  virtual int width() const =0;
63 };
64 
65 } // namespace dev
66 } // namespace yarp
67 
68 #endif // YARP_NO_DEPRECATED
69 
70 #endif // YARP_DEV_IFRAMEGRABBER_H
Common interface to a FrameGrabber.
Definition: IFrameGrabber.h:30
virtual int height() const =0
Return the height of each frame.
virtual int getRawBufferSize()=0
Get the size of the card's internal buffer, the user should use this method to allocate the storage t...
virtual bool getRawBuffer(unsigned char *buffer)=0
Get the raw buffer from the frame grabber.
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