PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspusbcam.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
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 */
11#ifndef __PSPUSBCAM_H__
12#define __PSPUSBCAM_H__
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#define PSP_USBCAM_PID (0x282)
19#define PSP_USBCAM_DRIVERNAME "USBCamDriver"
20#define PSP_USBCAMMIC_DRIVERNAME "USBCamMicDriver"
21
37
53
60
69
82
91
103
125
126
127
144
171
198
247
256
265
276
288
295
303
310
317
328
339
346
353
364
376
383
391
398
406int sceUsbCamSetSaturation(int saturation);
407
415int sceUsbCamSetBrightness(int brightness);
416
424int sceUsbCamSetContrast(int contrast);
425
433int sceUsbCamSetSharpness(int sharpness);
434
442int sceUsbCamSetImageEffectMode(int effectmode);
443
452
460int sceUsbCamSetReverseMode(int reverseflags);
461
470
478int sceUsbCamGetSaturation(int *saturation);
479
487int sceUsbCamGetBrightness(int *brightness);
488
496int sceUsbCamGetContrast(int *contrast);
497
505int sceUsbCamGetSharpness(int *sharpness);
506
514int sceUsbCamGetImageEffectMode(int *effectmode);
515
524
532int sceUsbCamGetReverseMode(int *reverseflags);
533
542
552
559
567
568#ifdef __cplusplus
569}
570#endif
571
572#endif
573
574
575
unsigned int SceSize
Definition pspkerneltypes.h:27
unsigned char size
Definition pspsysmem_kernel.h:6
uint8_t u8
Definition psptypes.h:38
float x
Definition psptypes.h:0
uint32_t u32
Definition psptypes.h:41
PspUsbCamDelay
Delay to take pictures.
Definition pspusbcam.h:63
@ PSP_USBCAM_DELAY_20SEC
Definition pspusbcam.h:66
@ PSP_USBCAM_DELAY_10SEC
Definition pspusbcam.h:65
@ PSP_USBCAM_DELAY_30SEC
Definition pspusbcam.h:67
@ PSP_USBCAM_NODELAY
Definition pspusbcam.h:64
PspUsbCamEffectMode
Effect modes.
Definition pspusbcam.h:94
@ PSP_USBCAM_EFFECTMODE_RED
Definition pspusbcam.h:100
@ PSP_USBCAM_EFFECTMODE_NEGATIVE
Definition pspusbcam.h:96
@ PSP_USBCAM_EFFECTMODE_BLACKWHITE
Definition pspusbcam.h:97
@ PSP_USBCAM_EFFECTMODE_SEPIA
Definition pspusbcam.h:98
@ PSP_USBCAM_EFFECTMODE_GREEN
Definition pspusbcam.h:101
@ PSP_USBCAM_EFFECTMODE_BLUE
Definition pspusbcam.h:99
@ PSP_USBCAM_EFFECTMODE_NORMAL
Definition pspusbcam.h:95
int sceUsbCamSetupVideo(PspUsbCamSetupVideoParam *param, void *workarea, int wasize)
Set ups the parameters for video capture.
int sceUsbCamGetImageEffectMode(int *effectmode)
Gets the current image efect mode.
int sceUsbCamGetZoom(int *zoom)
Gets the current zoom.
int sceUsbCamStillGetInputLength(void)
Gets the size of the acquired still image.
int sceUsbCamStillInputBlocking(u8 *buf, SceSize size)
Gets a still image.
int sceUsbCamStillInput(u8 *buf, SceSize size)
Gets a still image.
int sceUsbCamSetBrightness(int brightness)
Sets the brightness.
PspUsbCamResolution
Resolutions for sceUsbCamSetupStill & sceUsbCamSetupVideo DO NOT use on sceUsbCamSetupStillEx & sceUs...
Definition pspusbcam.h:26
@ PSP_USBCAM_RESOLUTION_360_272
Definition pspusbcam.h:35
@ PSP_USBCAM_RESOLUTION_1024_768
Definition pspusbcam.h:32
@ PSP_USBCAM_RESOLUTION_640_480
Definition pspusbcam.h:31
@ PSP_USBCAM_RESOLUTION_160_120
Definition pspusbcam.h:27
@ PSP_USBCAM_RESOLUTION_176_144
Definition pspusbcam.h:28
@ PSP_USBCAM_RESOLUTION_1280_960
Definition pspusbcam.h:33
@ PSP_USBCAM_RESOLUTION_480_272
Definition pspusbcam.h:34
@ PSP_USBCAM_RESOLUTION_352_288
Definition pspusbcam.h:30
@ PSP_USBCAM_RESOLUTION_320_240
Definition pspusbcam.h:29
PspUsbCamReverseFlags
Flags for reverse effects.
Definition pspusbcam.h:56
@ PSP_USBCAM_FLIP
Definition pspusbcam.h:57
@ PSP_USBCAM_MIRROR
Definition pspusbcam.h:58
PspUsbCamEVLevel
Exposure levels.
Definition pspusbcam.h:106
@ PSP_USBCAM_EVLEVEL_2_0_POSITIVE
Definition pspusbcam.h:107
@ PSP_USBCAM_EVLEVEL_0_3_POSITIVE
Definition pspusbcam.h:114
@ PSP_USBCAM_EVLEVEL_0_5_NEGATIVE
Definition pspusbcam.h:117
@ PSP_USBCAM_EVLEVEL_0_5_POSITIVE
Definition pspusbcam.h:113
@ PSP_USBCAM_EVLEVEL_1_7_NEGATIVE
Definition pspusbcam.h:122
@ PSP_USBCAM_EVLEVEL_0_0
Definition pspusbcam.h:115
@ PSP_USBCAM_EVLEVEL_0_7_NEGATIVE
Definition pspusbcam.h:118
@ PSP_USBCAM_EVLEVEL_1_0_POSITIVE
Definition pspusbcam.h:111
@ PSP_USBCAM_EVLEVEL_1_5_POSITIVE
Definition pspusbcam.h:109
@ PSP_USBCAM_EVLEVEL_1_3_POSITIVE
Definition pspusbcam.h:110
@ PSP_USBCAM_EVLEVEL_0_7_POSITIVE
Definition pspusbcam.h:112
@ PSP_USBCAM_EVLEVEL_1_5_NEGATIVE
Definition pspusbcam.h:121
@ PSP_USBCAM_EVLEVEL_1_0_NEGATIVE
Definition pspusbcam.h:119
@ PSP_USBCAM_EVLEVEL_0_3_NEGATIVE
Definition pspusbcam.h:116
@ PSP_USBCAM_EVLEVEL_1_7_POSITIVE
Definition pspusbcam.h:108
@ PSP_USBCAM_EVLEVEL_2_0_NEGATIVE
Definition pspusbcam.h:123
@ PSP_USBCAM_EVLEVEL_1_3_NEGATIVE
Definition pspusbcam.h:120
int sceUsbCamSetupStillEx(PspUsbCamSetupStillExParam *param)
Setups the parameters to take a still image (with more options)
int sceUsbCamGetEvLevel(int *ev)
Gets the current exposure level.
int sceUsbCamPollReadVideoFrameEnd(void)
Polls the status of video frame read completion.
int sceUsbCamStillCancelInput(void)
Cancels the still input.
int sceUsbCamSetupStill(PspUsbCamSetupStillParam *param)
Setups the parameters to take a still image.
int sceUsbCamSetSharpness(int sharpness)
Sets the sharpness.
int sceUsbCamGetSaturation(int *saturation)
Gets the current saturation.
PspUsbCamFrameRate
Usbcam framerates.
Definition pspusbcam.h:72
@ PSP_USBCAM_FRAMERATE_3_75_FPS
Definition pspusbcam.h:73
@ PSP_USBCAM_FRAMERATE_60_FPS
Definition pspusbcam.h:80
@ PSP_USBCAM_FRAMERATE_10_FPS
Definition pspusbcam.h:76
@ PSP_USBCAM_FRAMERATE_5_FPS
Definition pspusbcam.h:74
@ PSP_USBCAM_FRAMERATE_15_FPS
Definition pspusbcam.h:77
@ PSP_USBCAM_FRAMERATE_20_FPS
Definition pspusbcam.h:78
@ PSP_USBCAM_FRAMERATE_30_FPS
Definition pspusbcam.h:79
@ PSP_USBCAM_FRAMERATE_7_5_FPS
Definition pspusbcam.h:75
int sceUsbCamStillWaitInputEnd(void)
Waits untils still input has been finished.
int sceUsbCamSetupVideoEx(PspUsbCamSetupVideoExParam *param, void *workarea, int wasize)
Set ups the parameters for video capture (with more options)
int sceUsbCamAutoImageReverseSW(int on)
Sets if the image should be automatically reversed, depending of the position of the camera.
int sceUsbCamGetReverseMode(int *reverseflags)
Gets the current reverse mode.
int sceUsbCamSetImageEffectMode(int effectmode)
Sets the image effect mode.
int sceUsbCamSetReverseMode(int reverseflags)
Sets the reverse mode.
int sceUsbCamGetLensDirection(void)
Gets the direction of the camera lens.
PspUsbCamWB
White balance values.
Definition pspusbcam.h:85
@ PSP_USBCAM_WB_INCADESCENT
Definition pspusbcam.h:89
@ PSP_USBCAM_WB_AUTO
Definition pspusbcam.h:86
@ PSP_USBCAM_WB_FLUORESCENT
Definition pspusbcam.h:88
@ PSP_USBCAM_WB_DAYLIGHT
Definition pspusbcam.h:87
int sceUsbCamGetSharpness(int *sharpness)
Gets the current sharpness.
int sceUsbCamSetContrast(int contrast)
Sets the contrast.
int sceUsbCamStillPollInputEnd(void)
Polls the status of still input completion.
int sceUsbCamReadVideoFrameBlocking(u8 *buf, SceSize size)
Reads a video frame.
int sceUsbCamGetContrast(int *contrast)
Gets the current contrast.
int sceUsbCamReadVideoFrame(u8 *buf, SceSize size)
Reads a video frame.
int sceUsbCamStopVideo(void)
Stops video input from the camera.
int sceUsbCamGetAutoImageReverseState(void)
Gets the state of the autoreversal of the image.
int sceUsbCamSetEvLevel(int ev)
Sets the exposure level.
int sceUsbCamGetBrightness(int *brightness)
Gets the current brightness.
int sceUsbCamGetReadVideoFrameSize(void)
Gets the size of the acquired frame.
int sceUsbCamSetZoom(int zoom)
Sets the zoom.
int sceUsbCamStartVideo(void)
Starts video input from the camera.
int sceUsbCamWaitReadVideoFrameEnd(void)
Waits untils the current frame has been read.
PspUsbCamResolutionEx
Resolutions for sceUsbCamSetupStillEx & sceUsbCamSetupVideoEx DO NOT use on sceUsbCamSetupStill & sce...
Definition pspusbcam.h:42
@ PSP_USBCAM_RESOLUTION_EX_1024_768
Definition pspusbcam.h:50
@ PSP_USBCAM_RESOLUTION_EX_352_288
Definition pspusbcam.h:46
@ PSP_USBCAM_RESOLUTION_EX_360_272
Definition pspusbcam.h:47
@ PSP_USBCAM_RESOLUTION_EX_176_144
Definition pspusbcam.h:44
@ PSP_USBCAM_RESOLUTION_EX_480_272
Definition pspusbcam.h:48
@ PSP_USBCAM_RESOLUTION_EX_1280_960
Definition pspusbcam.h:51
@ PSP_USBCAM_RESOLUTION_EX_640_480
Definition pspusbcam.h:49
@ PSP_USBCAM_RESOLUTION_EX_320_240
Definition pspusbcam.h:45
@ PSP_USBCAM_RESOLUTION_EX_160_120
Definition pspusbcam.h:43
int sceUsbCamSetSaturation(int saturation)
Sets the saturation.
Structure for sceUsbCamSetupStillEx.
Definition pspusbcam.h:146
int mirror
Flag that indicates whether to mirror the image.
Definition pspusbcam.h:165
u32 unk2
Unknown, set it to 0 at the moment.
Definition pspusbcam.h:159
int delay
Delay to apply to take the picture.
Definition pspusbcam.h:167
int size
Size of the PspUsbCamSetupStillExParam structure.
Definition pspusbcam.h:148
int jpegsize
Size of the jpeg image.
Definition pspusbcam.h:154
int flip
Flag that indicates whether to flip the image.
Definition pspusbcam.h:163
int resolution
Resolution.
Definition pspusbcam.h:152
int complevel
JPEG compression level, a value from 1-63.
Definition pspusbcam.h:157
u32 unk3
Unknown, set it to 1 at the moment.
Definition pspusbcam.h:161
u32 unk
Unknown, set it to 9 at the moment.
Definition pspusbcam.h:150
u32 unk4[5]
Unknown, set it to 0 at the moment.
Definition pspusbcam.h:169
Structure for sceUsbCamSetupStill.
Definition pspusbcam.h:129
int resolution
Resolution.
Definition pspusbcam.h:133
int delay
Delay to apply to take the picture.
Definition pspusbcam.h:139
int reverseflags
Reverse effect to apply.
Definition pspusbcam.h:137
int jpegsize
Size of the jpeg image.
Definition pspusbcam.h:135
int size
Size of the PspUsbCamSetupStillParam structure.
Definition pspusbcam.h:131
int complevel
JPEG compression level, a value from 1-63.
Definition pspusbcam.h:142
Definition pspusbcam.h:199
int contrast
Contrast (0-255)
Definition pspusbcam.h:219
u32 unk9
Unknown.
Definition pspusbcam.h:235
u32 unk4
Unknown.
Definition pspusbcam.h:223
u32 unk5
Unknown.
Definition pspusbcam.h:225
int evlevel
Exposure value.
Definition pspusbcam.h:245
u32 unk10
Unknown.
Definition pspusbcam.h:237
int resolution
Resolution.
Definition pspusbcam.h:205
u32 unk8
Unknown.
Definition pspusbcam.h:233
u32 unk
Definition pspusbcam.h:203
u32 unk3
Unknown.
Definition pspusbcam.h:211
int framerate
Framerate.
Definition pspusbcam.h:207
u32 unk11
Unknown.
Definition pspusbcam.h:239
int size
Size of the PspUsbCamSetupVideoParam structure.
Definition pspusbcam.h:201
u32 unk6[3]
Unknown.
Definition pspusbcam.h:227
u32 unk7
Unknown.
Definition pspusbcam.h:231
u32 unk2
Unknown.
Definition pspusbcam.h:209
int saturation
Saturarion (0-255)
Definition pspusbcam.h:215
int wb
White balance.
Definition pspusbcam.h:213
u32 unk12
Unknown.
Definition pspusbcam.h:243
int sharpness
Sharpness (0-255)
Definition pspusbcam.h:221
int brightness
Brightness (0-255)
Definition pspusbcam.h:217
int framesize
Size of jpeg video frame.
Definition pspusbcam.h:241
int effectmode
Effect mode.
Definition pspusbcam.h:229
Definition pspusbcam.h:172
int wb
White balance.
Definition pspusbcam.h:180
int contrast
Contrast (0-255)
Definition pspusbcam.h:186
int brightness
Brightness (0-255)
Definition pspusbcam.h:184
u32 unk
Unknown.
Definition pspusbcam.h:194
int evlevel
Exposure value.
Definition pspusbcam.h:196
int effectmode
Effect mode.
Definition pspusbcam.h:190
int saturation
Saturarion (0-255)
Definition pspusbcam.h:182
int sharpness
Sharpness (0-255)
Definition pspusbcam.h:188
int resolution
Resolution.
Definition pspusbcam.h:176
int framesize
Size of jpeg video frame.
Definition pspusbcam.h:192
int framerate
Framerate.
Definition pspusbcam.h:178
int size
Size of the PspUsbCamSetupVideoParam structure.
Definition pspusbcam.h:174