1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/*******************************************************
*
* Author: Hirokazu Kato, Atsishi Nakazawa
*
* kato@sys.im.hiroshima-cu.ac.jp
* nakazawa@inolab.sys.es.osaka-u.ac.jp
*
* Revision: 4.2
* Date: 2002/01/01
*
*******************************************************/
#ifndef AR_VIDEO_SGI_H
#define AR_VIDEO_SGI_H
#ifdef __cplusplus
extern "C" {
#endif
#include <AR/config.h>
#include <AR/ar.h>
typedef enum{
AR_VIDEO_INTERLEAVED,
AR_VIDEO_NONINTERLEAVED,
AR_VIDEO_ODD,
AR_VIDEO_EVEN
} ARVideoFormat;
typedef enum {
AR_VIDEO_RGB_8,
AR_VIDEO_RGB_332,
AR_VIDEO_MONO,
AR_VIDEO_YVYU
} ARVideoPacking;
typedef enum {
AR_VIDEO_1_P_1,
AR_VIDEO_1_P_2,
AR_VIDEO_1_P_4,
AR_VIDEO_1_P_8
} ARVideoZoom;
typedef enum {
AR_VIDEO_INDY,
AR_VIDEO_O2,
AR_VIDEO_GALILEO,
AR_VIDEO_OCTANE,
AR_VIDEO_IMPACT
} ARVideoDeviceType;
#define ARVideoDeviceMax 4
typedef struct {
ARVideoDeviceType type[ARVideoDeviceMax];
int num;
} ARVideoDeviceTypeList;
typedef struct {
int did;
int width;
int height;
ARVideoFormat format;
ARVideoPacking packing;
ARVideoZoom zoom;
int buf_size;
} AR2VideoParamT;
int arVideoOpen2( void );
int arVideoClose2( void );
int arVideoInqDevice2( ARVideoDeviceTypeList *dev_list );
int arVideoInqSize2( int dev_id, int *x, int *y );
int arVideoSetupDevice2( int dev_id,
ARVideoFormat format,
ARVideoPacking packing,
ARVideoZoom zoom );
int arVideoCleanupDevice2( int dev_id );
int arVideoStart2( int dev_id );
int arVideoStop2( int dev_id );
unsigned char *arVideoGetImage2( int dev_id );
int arVideoSetBufferSize2( int dev_id, int size );
#ifdef __cplusplus
}
#endif
#endif
|