vitasdk
Documentation of the vitasdk
camera.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  SceCameraInfo
 
struct  SceCameraRead
 

Enumerations

enum  SceCameraErrorCode {
  SCE_CAMERA_ERROR_PARAM = 0x802E0000 , SCE_CAMERA_ERROR_ALREADY_INIT = 0x802E0001 , SCE_CAMERA_ERROR_NOT_INIT = 0x802E0002 , SCE_CAMERA_ERROR_ALREADY_OPEN = 0x802E0003 ,
  SCE_CAMERA_ERROR_NOT_OPEN = 0x802E0004 , SCE_CAMERA_ERROR_ALREADY_START = 0x802E0005 , SCE_CAMERA_ERROR_NOT_START = 0x802E0006 , SCE_CAMERA_ERROR_FORMAT_UNKNOWN = 0x802E0007 ,
  SCE_CAMERA_ERROR_RESOLUTION_UNKNOWN = 0x802E0008 , SCE_CAMERA_ERROR_BAD_FRAMERATE = 0x802E0009 , SCE_CAMERA_ERROR_TIMEOUT = 0x802E000A , SCE_CAMERA_ERROR_EXCLUSIVE = 0x802E000B ,
  SCE_CAMERA_ERROR_ATTRIBUTE_UNKNOWN = 0x802E000C , SCE_CAMERA_ERROR_MAX_PROCESS = 0x802E000D , SCE_CAMERA_ERROR_NOT_ACTIVE = 0x802E000E , SCE_CAMERA_ERROR_ALREADY_READ = 0x802E000F ,
  SCE_CAMERA_ERROR_NOT_MOUNTED = 0x802E0010 , SCE_CAMERA_ERROR_DATA_RANGE_UNKNOWN = 0x802E0011 , SCE_CAMERA_ERROR_OTHER_ALREADY_START = 0x802E0012 , SCE_CAMERA_ERROR_FATAL = 0x802E00FF
}
 Camera error codes. More...
 
enum  SceCameraDevice { SCE_CAMERA_DEVICE_FRONT = 0 , SCE_CAMERA_DEVICE_BACK = 1 }
 Enumeration for the camera device types. More...
 
enum  SceCameraPriority { SCE_CAMERA_PRIORITY_SHARE = 0 , SCE_CAMERA_PRIORITY_EXCLUSIVE = 1 }
 Enumeration for the camera process priorities. More...
 
enum  SceCameraFormat {
  SCE_CAMERA_FORMAT_INVALID = 0 , SCE_CAMERA_FORMAT_YUV422_PLANE = 1 , SCE_CAMERA_FORMAT_YUV422_PACKED = 2 , SCE_CAMERA_FORMAT_YUV420_PLANE = 3 ,
  SCE_CAMERA_FORMAT_ARGB = 4 , SCE_CAMERA_FORMAT_ABGR = 5 , SCE_CAMERA_FORMAT_RAW8 = 6
}
 Enumeration for the camera output formats. More...
 
enum  SceCameraResolution {
  SCE_CAMERA_RESOLUTION_0_0 = 0 , SCE_CAMERA_RESOLUTION_640_480 = 1 , SCE_CAMERA_RESOLUTION_320_240 = 2 , SCE_CAMERA_RESOLUTION_160_120 = 3 ,
  SCE_CAMERA_RESOLUTION_352_288 = 4 , SCE_CAMERA_RESOLUTION_176_144 = 5 , SCE_CAMERA_RESOLUTION_480_272 = 6 , SCE_CAMERA_RESOLUTION_640_360 = 8
}
 Enumeration for the camera resolutions. More...
 
enum  SceCameraFrameRate {
  SCE_CAMERA_FRAMERATE_3_FPS = 3 , SCE_CAMERA_FRAMERATE_5_FPS = 5 , SCE_CAMERA_FRAMERATE_7_FPS = 7 , SCE_CAMERA_FRAMERATE_10_FPS = 10 ,
  SCE_CAMERA_FRAMERATE_15_FPS = 15 , SCE_CAMERA_FRAMERATE_20_FPS = 20 , SCE_CAMERA_FRAMERATE_30_FPS = 30 , SCE_CAMERA_FRAMERATE_60_FPS = 60 ,
  SCE_CAMERA_FRAMERATE_120_FPS = 120
}
 Enumeration for the camera framerates. More...
 
enum  SceCameraExposureCompensation {
  SCE_CAMERA_EV_NEGATIVE_20 = -20 , SCE_CAMERA_EV_NEGATIVE_17 = -17 , SCE_CAMERA_EV_NEGATIVE_15 = -15 , SCE_CAMERA_EV_NEGATIVE_13 = -13 ,
  SCE_CAMERA_EV_NEGATIVE_10 = -10 , SCE_CAMERA_EV_NEGATIVE_7 = -7 , SCE_CAMERA_EV_NEGATIVE_5 = -5 , SCE_CAMERA_EV_NEGATIVE_3 = -3 ,
  SCE_CAMERA_EV_POSITIVE_0 = 0 , SCE_CAMERA_EV_POSITIVE_3 = 3 , SCE_CAMERA_EV_POSITIVE_5 = 5 , SCE_CAMERA_EV_POSITIVE_7 = 7 ,
  SCE_CAMERA_EV_POSITIVE_10 = 10 , SCE_CAMERA_EV_POSITIVE_13 = 13 , SCE_CAMERA_EV_POSITIVE_15 = 15 , SCE_CAMERA_EV_POSITIVE_17 = 17 ,
  SCE_CAMERA_EV_POSITIVE_20 = 20
}
 Enumeration for the camera exposure compensations. More...
 
enum  SceCameraEffect {
  SCE_CAMERA_EFFECT_NORMAL = 0 , SCE_CAMERA_EFFECT_NEGATIVE = 1 , SCE_CAMERA_EFFECT_BLACKWHITE = 2 , SCE_CAMERA_EFFECT_SEPIA = 3 ,
  SCE_CAMERA_EFFECT_BLUE = 4 , SCE_CAMERA_EFFECT_RED = 5 , SCE_CAMERA_EFFECT_GREEN = 6
}
 Enumeration for the camera effects. More...
 
enum  SceCameraReverse { SCE_CAMERA_REVERSE_OFF = 0 , SCE_CAMERA_REVERSE_MIRROR = 1 , SCE_CAMERA_REVERSE_FLIP = 2 , SCE_CAMERA_REVERSE_MIRROR_FLIP = (SCE_CAMERA_REVERSE_MIRROR | SCE_CAMERA_REVERSE_FLIP) }
 Enumeration for the camera reverse modes. More...
 
enum  SceCameraSaturation {
  SCE_CAMERA_SATURATION_0 = 0 , SCE_CAMERA_SATURATION_5 = 5 , SCE_CAMERA_SATURATION_10 = 10 , SCE_CAMERA_SATURATION_20 = 20 ,
  SCE_CAMERA_SATURATION_30 = 30 , SCE_CAMERA_SATURATION_40 = 40
}
 Enumeration for the camera saturations. More...
 
enum  SceCameraSharpness { SCE_CAMERA_SHARPNESS_100 = 1 , SCE_CAMERA_SHARPNESS_200 = 2 , SCE_CAMERA_SHARPNESS_300 = 3 , SCE_CAMERA_SHARPNESS_400 = 4 }
 Enumeration for the camera sharpnesses. More...
 
enum  SceCameraAntiFlicker { SCE_CAMERA_ANTIFLICKER_AUTO = 1 , SCE_CAMERA_ANTIFLICKER_50HZ = 2 , SCE_CAMERA_ANTIFLICKER_60HZ = 3 }
 Enumeration for the camera anti-flickering modes. More...
 
enum  SceCameraISO { SCE_CAMERA_ISO_AUTO = 1 , SCE_CAMERA_ISO_100 = 100 , SCE_CAMERA_ISO_200 = 200 , SCE_CAMERA_ISO_400 = 400 }
 Enumeration for the camera ISO speed modes. More...
 
enum  SceCameraGain {
  SCE_CAMERA_GAIN_AUTO = 0 , SCE_CAMERA_GAIN_1 = 1 , SCE_CAMERA_GAIN_2 = 2 , SCE_CAMERA_GAIN_3 = 3 ,
  SCE_CAMERA_GAIN_4 = 4 , SCE_CAMERA_GAIN_5 = 5 , SCE_CAMERA_GAIN_6 = 6 , SCE_CAMERA_GAIN_7 = 7 ,
  SCE_CAMERA_GAIN_8 = 8 , SCE_CAMERA_GAIN_9 = 9 , SCE_CAMERA_GAIN_10 = 10 , SCE_CAMERA_GAIN_11 = 11 ,
  SCE_CAMERA_GAIN_12 = 12 , SCE_CAMERA_GAIN_13 = 13 , SCE_CAMERA_GAIN_14 = 14 , SCE_CAMERA_GAIN_15 = 15 ,
  SCE_CAMERA_GAIN_16 = 16
}
 Enumeration for the camera gain modes. More...
 
enum  SceCameraWhiteBalance { SCE_CAMERA_WB_AUTO = 0 , SCE_CAMERA_WB_DAY = 1 , SCE_CAMERA_WB_CWF = 2 , SCE_CAMERA_WB_SLSA = 4 }
 Enumeration for the camera white balance modes. More...
 
enum  SceCameraBacklight { SCE_CAMERA_BACKLIGHT_OFF = 0 , SCE_CAMERA_BACKLIGHT_ON = 1 }
 Enumeration for the camera backlight modes. More...
 
enum  SceCameraNightmode { SCE_CAMERA_NIGHTMODE_OFF = 0 , SCE_CAMERA_NIGHTMODE_LESS10 = 1 , SCE_CAMERA_NIGHTMODE_LESS100 = 2 , SCE_CAMERA_NIGHTMODE_OVER100 = 3 }
 Enumeration for the camera nightmode modes. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x30, SceCameraInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x38, SceCameraRead)
 
int sceCameraOpen (int devnum, SceCameraInfo *pInfo)
 Open a camera device. More...
 
int sceCameraClose (int devnum)
 Close a camera device. More...
 
int sceCameraStart (int devnum)
 Start camera streaming. More...
 
int sceCameraStop (int devnum)
 Stop camera streaming. More...
 
int sceCameraRead (int devnum, SceCameraRead *pRead)
 Read image data from current streaming. More...
 
int sceCameraIsActive (int devnum)
 Check if camera device is active. More...
 
int sceCameraGetSaturation (int devnum, int *pLevel)
 Get camera saturation value. More...
 
int sceCameraSetSaturation (int devnum, int level)
 Set camera saturation value. More...
 
int sceCameraGetBrightness (int devnum, int *pLevel)
 Get camera brightness value. More...
 
int sceCameraSetBrightness (int devnum, int level)
 Set camera brightness value. More...
 
int sceCameraGetContrast (int devnum, int *pLevel)
 Get camera contrast value. More...
 
int sceCameraSetContrast (int devnum, int level)
 Set camera contrast value. More...
 
int sceCameraGetSharpness (int devnum, int *pLevel)
 Get camera sharpness value. More...
 
int sceCameraSetSharpness (int devnum, int level)
 Set camera sharpness value. More...
 
int sceCameraGetReverse (int devnum, int *pMode)
 Get camera reverse mode. More...
 
int sceCameraSetReverse (int devnum, int mode)
 Set camera reverse mode. More...
 
int sceCameraGetEffect (int devnum, int *pMode)
 Get active camera effects. More...
 
int sceCameraSetEffect (int devnum, int mode)
 Active a camera effect. More...
 
int sceCameraGetEV (int devnum, int *pLevel)
 Get camera exposure compensation value. More...
 
int sceCameraSetEV (int devnum, int level)
 Set camera exposure compensation value. More...
 
int sceCameraGetZoom (int devnum, int *pLevel)
 Get camera zoom value. More...
 
int sceCameraSetZoom (int devnum, int level)
 Set camera zoom value. More...
 
int sceCameraGetAntiFlicker (int devnum, int *pMode)
 Get camera anti-flickering mode. More...
 
int sceCameraSetAntiFlicker (int devnum, int mode)
 Set camera exposure anti-flickering mode. More...
 
int sceCameraGetISO (int devnum, int *pMode)
 Get camera ISO speed mode. More...
 
int sceCameraSetISO (int devnum, int mode)
 Set camera ISO speed mode. More...
 
int sceCameraGetGain (int devnum, int *pMode)
 Get camera gain mode. More...
 
int sceCameraSetGain (int devnum, int mode)
 Set camera gain mode. More...
 
int sceCameraGetWhiteBalance (int devnum, int *pMode)
 Get camera white balance mode. More...
 
int sceCameraSetWhiteBalance (int devnum, int mode)
 Set camera white balance mode. More...
 
int sceCameraGetBacklight (int devnum, int *pMode)
 Get camera backlight compensation mode. More...
 
int sceCameraSetBacklight (int devnum, int mode)
 Set camera backlight mode. More...
 
int sceCameraGetNightmode (int devnum, int *pMode)
 Get nightmode mode. More...
 
int sceCameraSetNightmode (int devnum, int mode)
 Set camera nightmoge mode. More...
 
int sceCameraGetExposureCeiling (int devnum, int *pMode)
 Get exposure ceiling mode. More...
 
int sceCameraSetExposureCeiling (int devnum, int mode)
 Set exposure ceiling mode. More...
 
int sceCameraGetAutoControlHold (int devnum, int *pMode)
 Get auto control hold mode. More...
 
int sceCameraSetAutoControlHold (int devnum, int mode)
 Set auto control hold mode. More...
 
int sceCameraGetDeviceLocation (int devnum, SceFVector3 *pLocation)
 Get camera device location. More...
 
int sceCameraGetImageQuality (int devnum, int *pLevel)
 
int sceCameraSetImageQuality (int devnum, int level)
 
int sceCameraGetNoiseReduction (int devnum, int *pLevel)
 
int sceCameraSetNoiseReduction (int devnum, int level)
 
int sceCameraGetSharpnessOff (int devnum, int *pLevel)
 
int sceCameraSetSharpnessOff (int devnum, int level)