YARP
Yet Another Robot Platform
IFrameGrabberControlsDC1394.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_IFRAMEGRABBERCONTROLSDC1394_H
8#define YARP_DEV_IFRAMEGRABBERCONTROLSDC1394_H
9
10#include <yarp/dev/api.h>
11
12namespace yarp::dev {
13
15{
16public:
18
19 // 12 13 14
20 virtual unsigned int getVideoModeMaskDC1394()=0;//{ return 0xFFFFFFFF; }
21 virtual unsigned int getVideoModeDC1394()=0;//{ return 0; }
22 virtual bool setVideoModeDC1394(int video_mode)=0;//{ return true; }
23
24 // 15 16 17
25 virtual unsigned int getFPSMaskDC1394()=0;//{ return 0xFFFFFFFF; }
26 virtual unsigned int getFPSDC1394()=0;//{ return 0; }
27 virtual bool setFPSDC1394(int fps)=0;//{ return true; }
28
29 // 18 19
30 virtual unsigned int getISOSpeedDC1394()=0;//{ return 0; }
31 virtual bool setISOSpeedDC1394(int speed)=0;//{ return true; }
32
33 // 20 21 22
34 virtual unsigned int getColorCodingMaskDC1394(unsigned int video_mode)=0;//{ return 0xFFFFFFFF; }
35 virtual unsigned int getColorCodingDC1394()=0;//{ return 0; }
36 virtual bool setColorCodingDC1394(int coding)=0;//{ return true; }
37 /*{
38 b=r=0.5;
39 return true;
40 }*/
41
42 // 25 26 27
43 virtual bool getFormat7MaxWindowDC1394(unsigned int &xdim,unsigned int &ydim,unsigned int &xstep,unsigned int &ystep,unsigned int &xoffstep,unsigned int &yoffstep)=0;
44 /*{
45 xdim=324; ydim=244; xstep=2; ystep=2;
46 return true;
47 }*/
48 virtual bool getFormat7WindowDC1394(unsigned int &xdim,unsigned int &ydim,int &x0,int &y0)=0;
49 /*{
50 xdim=324; ydim=244;
51 return true;
52 }*/
53 virtual bool setFormat7WindowDC1394(unsigned int xdim,unsigned int ydim,int x0,int y0)=0;//{ return true; }
54
55 // 28
56 virtual bool setOperationModeDC1394(bool b1394b)=0;//{ return true; }
57 // 29
58 virtual bool getOperationModeDC1394()=0;//{ return true; }
59 // 30
60 virtual bool setTransmissionDC1394(bool bTxON)=0;//{ return true; }
61 // 31
62 virtual bool getTransmissionDC1394()=0;//{ return true; }
63 // 32
64 //virtual bool setBayerDC1394(bool bON)=0;//{ return true; }
65 // 33
66 //virtual bool getBayerDC1394()=0;//{ return true; }
67
68 // 34 35 36 37
69 virtual bool setBroadcastDC1394(bool onoff)=0;//{ return true; }
70 virtual bool setDefaultsDC1394()=0;//{ return true; }
71 virtual bool setResetDC1394()=0;//{ return true; }
72 virtual bool setPowerDC1394(bool onoff)=0;//{ return true; }
73
74 // 38
75 virtual bool setCaptureDC1394(bool bON)=0;//{ return true; }
76
77 // 39
78 virtual unsigned int getBytesPerPacketDC1394()=0;//{ return 0; }
79
80 // 40
81 virtual bool setBytesPerPacketDC1394(unsigned int bpp)=0;//{ return true; }
82};
83
84} // namespace yarp::dev
85
86#endif // YARP_DEV_IFRAMEGRABBERCONTROLSDC1394_H
virtual unsigned int getISOSpeedDC1394()=0
virtual bool setISOSpeedDC1394(int speed)=0
virtual unsigned int getBytesPerPacketDC1394()=0
virtual bool setPowerDC1394(bool onoff)=0
virtual unsigned int getFPSMaskDC1394()=0
virtual bool getFormat7WindowDC1394(unsigned int &xdim, unsigned int &ydim, int &x0, int &y0)=0
virtual unsigned int getFPSDC1394()=0
virtual bool setFormat7WindowDC1394(unsigned int xdim, unsigned int ydim, int x0, int y0)=0
virtual unsigned int getVideoModeDC1394()=0
virtual bool setBroadcastDC1394(bool onoff)=0
virtual bool setBytesPerPacketDC1394(unsigned int bpp)=0
virtual bool setColorCodingDC1394(int coding)=0
virtual bool getFormat7MaxWindowDC1394(unsigned int &xdim, unsigned int &ydim, unsigned int &xstep, unsigned int &ystep, unsigned int &xoffstep, unsigned int &yoffstep)=0
virtual bool setFPSDC1394(int fps)=0
virtual bool setVideoModeDC1394(int video_mode)=0
virtual unsigned int getColorCodingMaskDC1394(unsigned int video_mode)=0
virtual unsigned int getVideoModeMaskDC1394()=0
virtual unsigned int getColorCodingDC1394()=0
virtual bool setCaptureDC1394(bool bON)=0
virtual bool setOperationModeDC1394(bool b1394b)=0
virtual bool setTransmissionDC1394(bool bTxON)=0
For streams capable of holding different kinds of content, check what they actually have.
#define YARP_dev_API
Definition: api.h:18