YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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)
12YARP_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
19namespace yarp::dev {
20
29{
30public:
39 virtual bool getRgbBuffer(unsigned char *buffer) = 0;
40
45 virtual int height() const = 0;
46
51 virtual int width() const = 0;
52};
53
54} // namespace yarp::dev
55
56#endif // YARP_NO_DEPRECATED
57
58#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.
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
#define YARP_COMPILER_WARNING(x)
Generate a warning at build time on supported compilers.
Definition system.h:111
#define YARP_dev_DEPRECATED_API
Definition api.h:20