vitasdk
Documentation of the vitasdk

Exports for Kernel. More...

Enumerations

enum  SceCameraActiveStatusFlag { SCE_CAMERA_ACTIVE_STATUS_FRONT = 0x1 , SCE_CAMERA_ACTIVE_STATUS_BACK = 0x2 }
 Camera-active bits returned by ksceCameraIsActive. More...
 

Functions

int ksceCameraIsActive (ScePID pid, SceUInt32 *status)
 Check which active cameras a process owns.
 

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceCameraForDriver_stub



Enumeration Type Documentation

◆ SceCameraActiveStatusFlag

Camera-active bits returned by ksceCameraIsActive.

Enumerator
SCE_CAMERA_ACTIVE_STATUS_FRONT 

The process owns an active front-camera stream.

SCE_CAMERA_ACTIVE_STATUS_BACK 

The process owns an active back-camera stream.

Function Documentation

◆ ksceCameraIsActive()

int ksceCameraIsActive ( ScePID  pid,
SceUInt32 *  status 
)

Check which active cameras a process owns.

A status bit is set only when the target process has opened and started the corresponding camera and remains its current global owner. An invalid or nonexistent process ID, or an uninitialized Camera driver, is reported as inactive, not as an error.

Parameters
[in]pid- Target process ID.
[out]status- Receives a bitwise OR of SceCameraActiveStatusFlag values. Must not be NULL.
Returns
1 if either camera is active, 0 if neither camera is active, or 0x802E0000 (SCE_CAMERA_ERROR_PARAM) if status is NULL.