pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
pspusbcam.h
Go to the documentation of this file.
1
/*
2
* PSP Software Development Kit - http://www.pspdev.org
3
* -----------------------------------------------------------------------
4
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5
*
6
* pspusbcam.h - Prototypes for the sceUsbCam library
7
*
8
* Copyright (c) 2007 dot_blank
9
*
10
* $Id: pspusbcam.h 2433 2008-10-15 10:00:27Z iwn $
11
*/
12
#ifndef __PSPUSBCAM_H__
13
#define __PSPUSBCAM_H__
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
#define PSP_USBCAM_PID (0x282)
20
#define PSP_USBCAM_DRIVERNAME "USBCamDriver"
21
#define PSP_USBCAMMIC_DRIVERNAME "USBCamMicDriver"
22
26
enum
PspUsbCamResolution
27
{
28
PSP_USBCAM_RESOLUTION_160_120
= 0,
29
PSP_USBCAM_RESOLUTION_176_144
= 1,
30
PSP_USBCAM_RESOLUTION_320_240
= 2,
31
PSP_USBCAM_RESOLUTION_352_288
= 3,
32
PSP_USBCAM_RESOLUTION_640_480
= 4,
33
PSP_USBCAM_RESOLUTION_1024_768
= 5,
34
PSP_USBCAM_RESOLUTION_1280_960
= 6,
35
PSP_USBCAM_RESOLUTION_480_272
= 7,
36
PSP_USBCAM_RESOLUTION_360_272
= 8,
37
};
38
42
enum
PspUsbCamResolutionEx
43
{
44
PSP_USBCAM_RESOLUTION_EX_160_120
= 0,
45
PSP_USBCAM_RESOLUTION_EX_176_144
= 1,
46
PSP_USBCAM_RESOLUTION_EX_320_240
= 2,
47
PSP_USBCAM_RESOLUTION_EX_352_288
= 3,
48
PSP_USBCAM_RESOLUTION_EX_360_272
= 4,
49
PSP_USBCAM_RESOLUTION_EX_480_272
= 5,
50
PSP_USBCAM_RESOLUTION_EX_640_480
= 6,
51
PSP_USBCAM_RESOLUTION_EX_1024_768
= 7,
52
PSP_USBCAM_RESOLUTION_EX_1280_960
= 8,
53
};
54
56
enum
PspUsbCamReverseFlags
57
{
58
PSP_USBCAM_FLIP
= 1,
59
PSP_USBCAM_MIRROR
= 0x100,
60
};
61
63
enum
PspUsbCamDelay
64
{
65
PSP_USBCAM_NODELAY
= 0,
66
PSP_USBCAM_DELAY_10SEC
= 1,
67
PSP_USBCAM_DELAY_20SEC
= 2,
68
PSP_USBCAM_DELAY_30SEC
= 3,
69
};
70
72
enum
PspUsbCamFrameRate
73
{
74
PSP_USBCAM_FRAMERATE_3_75_FPS
= 0,
/* 3.75 fps */
75
PSP_USBCAM_FRAMERATE_5_FPS
= 1,
76
PSP_USBCAM_FRAMERATE_7_5_FPS
= 2,
/* 7.5 fps */
77
PSP_USBCAM_FRAMERATE_10_FPS
= 3,
78
PSP_USBCAM_FRAMERATE_15_FPS
= 4,
79
PSP_USBCAM_FRAMERATE_20_FPS
= 5,
80
PSP_USBCAM_FRAMERATE_30_FPS
= 6,
81
PSP_USBCAM_FRAMERATE_60_FPS
= 7,
82
};
83
85
enum
PspUsbCamWB
86
{
87
PSP_USBCAM_WB_AUTO
= 0,
88
PSP_USBCAM_WB_DAYLIGHT
= 1,
89
PSP_USBCAM_WB_FLUORESCENT
= 2,
90
PSP_USBCAM_WB_INCADESCENT
= 3,
91
};
92
94
enum
PspUsbCamEffectMode
95
{
96
PSP_USBCAM_EFFECTMODE_NORMAL
= 0,
97
PSP_USBCAM_EFFECTMODE_NEGATIVE
= 1,
98
PSP_USBCAM_EFFECTMODE_BLACKWHITE
= 2,
99
PSP_USBCAM_EFFECTMODE_SEPIA
= 3,
100
PSP_USBCAM_EFFECTMODE_BLUE
= 4,
101
PSP_USBCAM_EFFECTMODE_RED
= 5,
102
PSP_USBCAM_EFFECTMODE_GREEN
= 6,
103
};
104
106
enum
PspUsbCamEVLevel
107
{
108
PSP_USBCAM_EVLEVEL_2_0_POSITIVE
= 0,
// +2.0
109
PSP_USBCAM_EVLEVEL_1_7_POSITIVE
= 1,
// +1.7
110
PSP_USBCAM_EVLEVEL_1_5_POSITIVE
= 2,
// +1.5
111
PSP_USBCAM_EVLEVEL_1_3_POSITIVE
= 3,
// +1.3
112
PSP_USBCAM_EVLEVEL_1_0_POSITIVE
= 4,
// +1.0
113
PSP_USBCAM_EVLEVEL_0_7_POSITIVE
= 5,
// +0.7
114
PSP_USBCAM_EVLEVEL_0_5_POSITIVE
= 6,
// +0.5
115
PSP_USBCAM_EVLEVEL_0_3_POSITIVE
= 7,
// +0.3
116
PSP_USBCAM_EVLEVEL_0_0
= 8,
// 0.0
117
PSP_USBCAM_EVLEVEL_0_3_NEGATIVE
= 9,
// -0.3
118
PSP_USBCAM_EVLEVEL_0_5_NEGATIVE
= 10,
// -0.5
119
PSP_USBCAM_EVLEVEL_0_7_NEGATIVE
= 11,
// -0.7
120
PSP_USBCAM_EVLEVEL_1_0_NEGATIVE
= 12,
// -1.0
121
PSP_USBCAM_EVLEVEL_1_3_NEGATIVE
= 13,
// -1.3
122
PSP_USBCAM_EVLEVEL_1_5_NEGATIVE
= 14,
// -1.5
123
PSP_USBCAM_EVLEVEL_1_7_NEGATIVE
= 15,
// -1.7
124
PSP_USBCAM_EVLEVEL_2_0_NEGATIVE
= 16,
// -2.0
125
};
126
127
128
130
typedef
struct
PspUsbCamSetupStillParam
{
132
int
size
;
134
int
resolution
;
136
int
jpegsize
;
138
int
reverseflags
;
140
int
delay
;
143
int
complevel
;
144
}
PspUsbCamSetupStillParam
;
145
147
typedef
struct
PspUsbCamSetupStillExParam
{
149
int
size
;
151
u32
unk
;
153
int
resolution
;
155
int
jpegsize
;
158
int
complevel
;
160
u32
unk2
;
162
u32
unk3
;
164
int
flip
;
166
int
mirror
;
168
int
delay
;
170
u32
unk4
[5];
171
}
PspUsbCamSetupStillExParam
;
172
173
typedef
struct
PspUsbCamSetupVideoParam
{
175
int
size
;
177
int
resolution
;
179
int
framerate
;
181
int
wb
;
183
int
saturation
;
185
int
brightness
;
187
int
contrast
;
189
int
sharpness
;
191
int
effectmode
;
193
int
framesize
;
195
u32
unk
;
197
int
evlevel
;
198
}
PspUsbCamSetupVideoParam
;
199
200
typedef
struct
PspUsbCamSetupVideoExParam
{
202
int
size
;
203
/* Unknown. Set it to 9 at the moment. */
204
u32
unk
;
206
int
resolution
;
208
int
framerate
;
210
u32
unk2
;
212
u32
unk3
;
214
int
wb
;
216
int
saturation
;
218
int
brightness
;
220
int
contrast
;
222
int
sharpness
;
224
u32
unk4
;
226
u32
unk5
;
228
u32
unk6
[3];
230
int
effectmode
;
232
u32
unk7
;
234
u32
unk8
;
236
u32
unk9
;
238
u32
unk10
;
240
u32
unk11
;
242
int
framesize
;
244
u32
unk12
;
246
int
evlevel
;
247
}
PspUsbCamSetupVideoExParam
;
248
256
int
sceUsbCamSetupStill
(
PspUsbCamSetupStillParam
*param);
257
265
int
sceUsbCamSetupStillEx
(
PspUsbCamSetupStillExParam
*param);
266
276
int
sceUsbCamStillInputBlocking
(
u8
*buf,
SceSize
size
);
277
288
int
sceUsbCamStillInput
(
u8
*buf,
SceSize
size
);
289
295
int
sceUsbCamStillWaitInputEnd
(
void
);
296
303
int
sceUsbCamStillPollInputEnd
(
void
);
304
310
int
sceUsbCamStillCancelInput
(
void
);
311
317
int
sceUsbCamStillGetInputLength
(
void
);
318
328
int
sceUsbCamSetupVideo
(
PspUsbCamSetupVideoParam
*param,
void
*workarea,
int
wasize);
329
339
int
sceUsbCamSetupVideoEx
(
PspUsbCamSetupVideoExParam
*param,
void
*workarea,
int
wasize);
340
346
int
sceUsbCamStartVideo
(
void
);
347
353
int
sceUsbCamStopVideo
(
void
);
354
364
int
sceUsbCamReadVideoFrameBlocking
(
u8
*buf,
SceSize
size
);
365
376
int
sceUsbCamReadVideoFrame
(
u8
*buf,
SceSize
size
);
377
383
int
sceUsbCamWaitReadVideoFrameEnd
(
void
);
384
391
int
sceUsbCamPollReadVideoFrameEnd
(
void
);
392
398
int
sceUsbCamGetReadVideoFrameSize
(
void
);
399
407
int
sceUsbCamSetSaturation
(
int
saturation);
408
416
int
sceUsbCamSetBrightness
(
int
brightness);
417
425
int
sceUsbCamSetContrast
(
int
contrast);
426
434
int
sceUsbCamSetSharpness
(
int
sharpness);
435
443
int
sceUsbCamSetImageEffectMode
(
int
effectmode);
444
452
int
sceUsbCamSetEvLevel
(
int
ev);
453
461
int
sceUsbCamSetReverseMode
(
int
reverseflags);
462
470
int
sceUsbCamSetZoom
(
int
zoom);
471
479
int
sceUsbCamGetSaturation
(
int
*saturation);
480
488
int
sceUsbCamGetBrightness
(
int
*brightness);
489
497
int
sceUsbCamGetContrast
(
int
*contrast);
498
506
int
sceUsbCamGetSharpness
(
int
*sharpness);
507
515
int
sceUsbCamGetImageEffectMode
(
int
*effectmode);
516
524
int
sceUsbCamGetEvLevel
(
int
*ev);
525
533
int
sceUsbCamGetReverseMode
(
int
*reverseflags);
534
542
int
sceUsbCamGetZoom
(
int
*zoom);
543
552
int
sceUsbCamAutoImageReverseSW
(
int
on);
553
559
int
sceUsbCamGetAutoImageReverseState
(
void
);
560
567
int
sceUsbCamGetLensDirection
(
void
);
568
569
#ifdef __cplusplus
570
}
571
#endif
572
573
#endif
574
575
576
src
usb
pspusbcam.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2