|
pspsdk-1.0+beta2
|
Go to the source code of this file.
Data Structures | |
| struct | PspUsbCamSetupStillParam |
| Structure for sceUsbCamSetupStill. More... | |
| struct | PspUsbCamSetupStillExParam |
| Structure for sceUsbCamSetupStillEx. More... | |
| struct | PspUsbCamSetupVideoParam |
| struct | PspUsbCamSetupVideoExParam |
Macros | |
| #define | PSP_USBCAM_PID (0x282) |
| #define | PSP_USBCAM_DRIVERNAME "USBCamDriver" |
| #define | PSP_USBCAMMIC_DRIVERNAME "USBCamMicDriver" |
Typedefs | |
| typedef struct PspUsbCamSetupStillParam | PspUsbCamSetupStillParam |
| Structure for sceUsbCamSetupStill. | |
| typedef struct PspUsbCamSetupStillExParam | PspUsbCamSetupStillExParam |
| Structure for sceUsbCamSetupStillEx. | |
| typedef struct PspUsbCamSetupVideoParam | PspUsbCamSetupVideoParam |
| typedef struct PspUsbCamSetupVideoExParam | PspUsbCamSetupVideoExParam |
Functions | |
| int | sceUsbCamSetupStill (PspUsbCamSetupStillParam *param) |
| Setups the parameters to take a still image. | |
| int | sceUsbCamSetupStillEx (PspUsbCamSetupStillExParam *param) |
| Setups the parameters to take a still image (with more options) | |
| int | sceUsbCamStillInputBlocking (u8 *buf, SceSize size) |
| Gets a still image. | |
| int | sceUsbCamStillInput (u8 *buf, SceSize size) |
| Gets a still image. | |
| int | sceUsbCamStillWaitInputEnd (void) |
| Waits untils still input has been finished. | |
| int | sceUsbCamStillPollInputEnd (void) |
| Polls the status of still input completion. | |
| int | sceUsbCamStillCancelInput (void) |
| Cancels the still input. | |
| int | sceUsbCamStillGetInputLength (void) |
| Gets the size of the acquired still image. | |
| int | sceUsbCamSetupVideo (PspUsbCamSetupVideoParam *param, void *workarea, int wasize) |
| Set ups the parameters for video capture. | |
| int | sceUsbCamSetupVideoEx (PspUsbCamSetupVideoExParam *param, void *workarea, int wasize) |
| Set ups the parameters for video capture (with more options) | |
| int | sceUsbCamStartVideo (void) |
| Starts video input from the camera. | |
| int | sceUsbCamStopVideo (void) |
| Stops video input from the camera. | |
| int | sceUsbCamReadVideoFrameBlocking (u8 *buf, SceSize size) |
| Reads a video frame. | |
| int | sceUsbCamReadVideoFrame (u8 *buf, SceSize size) |
| Reads a video frame. | |
| int | sceUsbCamWaitReadVideoFrameEnd (void) |
| Waits untils the current frame has been read. | |
| int | sceUsbCamPollReadVideoFrameEnd (void) |
| Polls the status of video frame read completion. | |
| int | sceUsbCamGetReadVideoFrameSize (void) |
| Gets the size of the acquired frame. | |
| int | sceUsbCamSetSaturation (int saturation) |
| Sets the saturation. | |
| int | sceUsbCamSetBrightness (int brightness) |
| Sets the brightness. | |
| int | sceUsbCamSetContrast (int contrast) |
| Sets the contrast. | |
| int | sceUsbCamSetSharpness (int sharpness) |
| Sets the sharpness. | |
| int | sceUsbCamSetImageEffectMode (int effectmode) |
| Sets the image effect mode. | |
| int | sceUsbCamSetEvLevel (int ev) |
| Sets the exposure level. | |
| int | sceUsbCamSetReverseMode (int reverseflags) |
| Sets the reverse mode. | |
| int | sceUsbCamSetZoom (int zoom) |
| Sets the zoom. | |
| int | sceUsbCamGetSaturation (int *saturation) |
| Gets the current saturation. | |
| int | sceUsbCamGetBrightness (int *brightness) |
| Gets the current brightness. | |
| int | sceUsbCamGetContrast (int *contrast) |
| Gets the current contrast. | |
| int | sceUsbCamGetSharpness (int *sharpness) |
| Gets the current sharpness. | |
| int | sceUsbCamGetImageEffectMode (int *effectmode) |
| Gets the current image efect mode. | |
| int | sceUsbCamGetEvLevel (int *ev) |
| Gets the current exposure level. | |
| int | sceUsbCamGetReverseMode (int *reverseflags) |
| Gets the current reverse mode. | |
| int | sceUsbCamGetZoom (int *zoom) |
| Gets the current zoom. | |
| int | sceUsbCamAutoImageReverseSW (int on) |
| Sets if the image should be automatically reversed, depending of the position of the camera. | |
| int | sceUsbCamGetAutoImageReverseState (void) |
| Gets the state of the autoreversal of the image. | |
| int | sceUsbCamGetLensDirection (void) |
| Gets the direction of the camera lens. | |
| #define PSP_USBCAM_DRIVERNAME "USBCamDriver" |
| #define PSP_USBCAM_PID (0x282) |
| #define PSP_USBCAMMIC_DRIVERNAME "USBCamMicDriver" |
| typedef struct PspUsbCamSetupStillExParam PspUsbCamSetupStillExParam |
Structure for sceUsbCamSetupStillEx.
| typedef struct PspUsbCamSetupStillParam PspUsbCamSetupStillParam |
Structure for sceUsbCamSetupStill.
| typedef struct PspUsbCamSetupVideoExParam PspUsbCamSetupVideoExParam |
| typedef struct PspUsbCamSetupVideoParam PspUsbCamSetupVideoParam |
| enum PspUsbCamDelay |
| enum PspUsbCamEffectMode |
| enum PspUsbCamEVLevel |
Exposure levels.
| enum PspUsbCamFrameRate |
| enum PspUsbCamResolution |
Resolutions for sceUsbCamSetupStill & sceUsbCamSetupVideo DO NOT use on sceUsbCamSetupStillEx & sceUsbCamSetupVideoEx.
Resolutions for sceUsbCamSetupStillEx & sceUsbCamSetupVideoEx DO NOT use on sceUsbCamSetupStill & sceUsbCamSetupVideo.
| enum PspUsbCamWB |
| int sceUsbCamAutoImageReverseSW | ( | int | on | ) |
Sets if the image should be automatically reversed, depending of the position of the camera.
| on | - 1 to set the automatical reversal of the image, 0 to set it off |
| int sceUsbCamGetAutoImageReverseState | ( | void | ) |
Gets the state of the autoreversal of the image.
| int sceUsbCamGetBrightness | ( | int * | brightness | ) |
Gets the current brightness.
| brightness | - pointer to a variable that receives the current brightness |
| int sceUsbCamGetContrast | ( | int * | contrast | ) |
Gets the current contrast.
| contrast | - pointer to a variable that receives the current contrast |
| int sceUsbCamGetEvLevel | ( | int * | ev | ) |
Gets the current exposure level.
| ev | - pointer to a variable that receives the current exposure level |
| int sceUsbCamGetImageEffectMode | ( | int * | effectmode | ) |
Gets the current image efect mode.
| effectmode | - pointer to a variable that receives the current effect mode |
| int sceUsbCamGetLensDirection | ( | void | ) |
Gets the direction of the camera lens.
| int sceUsbCamGetReadVideoFrameSize | ( | void | ) |
Gets the size of the acquired frame.
| int sceUsbCamGetReverseMode | ( | int * | reverseflags | ) |
Gets the current reverse mode.
| reverseflags | - pointer to a variable that receives the current reverse mode flags |
| int sceUsbCamGetSaturation | ( | int * | saturation | ) |
Gets the current saturation.
| saturation | - pointer to a variable that receives the current saturation |
| int sceUsbCamGetSharpness | ( | int * | sharpness | ) |
Gets the current sharpness.
| brightness | - pointer to a variable that receives the current sharpness |
| int sceUsbCamGetZoom | ( | int * | zoom | ) |
Gets the current zoom.
| zoom | - pointer to a variable that receives the current zoom |
| int sceUsbCamPollReadVideoFrameEnd | ( | void | ) |
Polls the status of video frame read completion.
Reads a video frame.
The function returns inmediately, and the completion has to be handled by calling sceUsbCamWaitReadVideoFrameEnd or sceUsbCamPollReadVideoFrameEnd.
| buf | - The buffer that receives the frame jpeg data |
| size | - The size of the buffer. |
Reads a video frame.
The function doesn't return until the frame has been acquired.
| buf | - The buffer that receives the frame jpeg data |
| size | - The size of the buffer. |
| int sceUsbCamSetBrightness | ( | int | brightness | ) |
Sets the brightness.
| brightness | - The brightness (0-255) |
| int sceUsbCamSetContrast | ( | int | contrast | ) |
Sets the contrast.
| contrast | - The contrast (0-255) |
| int sceUsbCamSetEvLevel | ( | int | ev | ) |
Sets the exposure level.
| ev | - The exposure level, one of PspUsbCamEVLevel |
| int sceUsbCamSetImageEffectMode | ( | int | effectmode | ) |
Sets the image effect mode.
| effectmode | - The effect mode, one of PspUsbCamEffectMode |
| int sceUsbCamSetReverseMode | ( | int | reverseflags | ) |
Sets the reverse mode.
| reverseflags | - The reverse flags, zero or more of PspUsbCamReverseFlags |
| int sceUsbCamSetSaturation | ( | int | saturation | ) |
Sets the saturation.
| saturation | - The saturation (0-255) |
| int sceUsbCamSetSharpness | ( | int | sharpness | ) |
Sets the sharpness.
| sharpness | - The sharpness (0-255) |
| int sceUsbCamSetupStill | ( | PspUsbCamSetupStillParam * | param | ) |
Setups the parameters to take a still image.
| param | - pointer to a PspUsbCamSetupStillParam |
| int sceUsbCamSetupStillEx | ( | PspUsbCamSetupStillExParam * | param | ) |
Setups the parameters to take a still image (with more options)
| param | - pointer to a ::PspUsbCamSetupStillParamEx |
| int sceUsbCamSetupVideo | ( | PspUsbCamSetupVideoParam * | param, |
| void * | workarea, | ||
| int | wasize | ||
| ) |
Set ups the parameters for video capture.
| param | - Pointer to a PspUsbCamSetupVideoParam structure. |
| workarea | - Pointer to a buffer used as work area by the driver. |
| wasize | - Size of the work area. |
| int sceUsbCamSetupVideoEx | ( | PspUsbCamSetupVideoExParam * | param, |
| void * | workarea, | ||
| int | wasize | ||
| ) |
Set ups the parameters for video capture (with more options)
| param | - Pointer to a PspUsbCamSetupVideoExParam structure. |
| workarea | - Pointer to a buffer used as work area by the driver. |
| wasize | - Size of the work area. |
| int sceUsbCamSetZoom | ( | int | zoom | ) |
Sets the zoom.
| zoom | - The zoom level starting by 10. (10 = 1X, 11 = 1.1X, etc) |
| int sceUsbCamStartVideo | ( | void | ) |
Starts video input from the camera.
| int sceUsbCamStillCancelInput | ( | void | ) |
Cancels the still input.
| int sceUsbCamStillGetInputLength | ( | void | ) |
Gets the size of the acquired still image.
Gets a still image.
The function returns inmediately, and the completion has to be handled by calling sceUsbCamStillWaitInputEnd or sceUsbCamStillPollInputEnd.
| buf | - The buffer that receives the image jpeg data |
| size | - The size of the buffer. |
Gets a still image.
The function doesn't return until the image has been acquired.
| buf | - The buffer that receives the image jpeg data |
| size | - The size of the buffer. |
| int sceUsbCamStillPollInputEnd | ( | void | ) |
Polls the status of still input completion.
| int sceUsbCamStillWaitInputEnd | ( | void | ) |
Waits untils still input has been finished.
| int sceUsbCamStopVideo | ( | void | ) |
Stops video input from the camera.
| int sceUsbCamWaitReadVideoFrameEnd | ( | void | ) |
Waits untils the current frame has been read.