YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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)
12YARP_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
19namespace yarp::dev {
20
29{
30public:
31 virtual ~IFrameGrabber();
32
42 virtual bool getRawBuffer(unsigned char *buffer)=0;
43
49 virtual int getRawBufferSize()=0;
50
55 virtual int height() const =0;
56
61 virtual int width() const =0;
62};
63
64} // namespace yarp::dev
65
66#endif // YARP_NO_DEPRECATED
67
68#endif // YARP_DEV_IFRAMEGRABBER_H
Common interface to a FrameGrabber.
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.
For streams capable of holding different kinds of content, check what they actually have.
#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