![]() |
Lua Player Plus Vita
Documentation of lpp-vita
|
Module that handles photo cameras hardware. More...
Enumerations | |
enum | CameraType { INNER_CAM , OUTER_CAM } |
Camera types. More... | |
enum | CameraRes { VGA_RES , QVGA_RES , QQVGA_RES , CIF_RES , QCIF_RES , PSP_RES , NGP_RES } |
Camera resolutions. More... | |
enum | CameraAntiFlick { ANTIFLICKER_AUTO , ANTIFLICKER_50HZ , ANTIFLICKER_60HZ } |
Camera antiflicker modes. More... | |
enum | CameraISO { ISO_AUTO , ISO_100 , ISO_200 , ISO_400 } |
Camera ISO speed mode. More... | |
enum | CameraWB { WB_AUTO , WB_DAYLIGHT , WB_CWF , WB_SLSA } |
Camera White Balance mode. More... | |
enum | CameraBacklight { BACKLIGHT_OFF , BACKLIGHT_ON } |
Camera Backlight mode. More... | |
enum | CameraNightmode { NIGHTMODE_OFF , NIGHTMODE_LOW , NIGHTMODE_MED , NIGHTMODE_HIGH } |
Camera Nightmode mode. More... | |
enum | CameraReverse { REVERSE_OFF , REVERSE_MIRROR , REVERSE_FLIP , REVERSE_BOTH } |
Camera Reverse mode. More... | |
enum | CameraEffect { EFFECT_NONE , EFFECT_NEGATIVE , EFFECT_BLACKWHITE , EFFECT_SEPIA , EFFECT_BLUE , EFFECT_RED , EFFECT_GREEN } |
Camera effects. More... | |
Functions | |
void | Camera::init (CameraType type, CameraRes resolution, int framerate) |
Init camera hardware. More... | |
void | Camera::term (void) |
Terminate camera hardware. More... | |
int | Camera::getOutput (void) |
Return current camera output as image. More... | |
void | Camera::setBrightness (int value) |
Set camera brightness. More... | |
int | Camera::getBrightness (void) |
Get current camera brightness. More... | |
void | Camera::setSaturation (number value) |
Set camera saturation. More... | |
int | Camera::getSaturation (void) |
Get current camera saturation. More... | |
void | Camera::setSharpness (int value) |
Set camera sharpness percentage. More... | |
int | Camera::getSharpness (void) |
Get current camera sharpness. More... | |
void | Camera::setContrast (int value) |
Set camera contrast. More... | |
int | Camera::getContrast (void) |
Get current camera contrast. More... | |
void | Camera::setReverse (CameraReverse mode) |
Set camera reverse mode. More... | |
CameraReverse | Camera::getReverse (void) |
Get current camera reverse mode. More... | |
void | Camera::setEffect (CameraEffect effect) |
Set camera effect. More... | |
CameraEffect | Camera::getEffect (void) |
Get current camera effect. More... | |
void | Camera::setZoom (int value) |
Set camera zoom. More... | |
int | Camera::getZoom (void) |
Get current camera zoom. More... | |
void | Camera::setAntiFlicker (CameraAntiFlick mode) |
Set camera antiflicker mode. More... | |
CameraAntiFlick | Camera::getAntiFlicker (void) |
Get current camera antiflicker mode. More... | |
void | Camera::setISO (CameraISO mode) |
Set camera ISO speed mode. More... | |
CameraISO | Camera::getISO (void) |
Get current camera ISO speed mode. More... | |
void | Camera::setGain (int value) |
Set camera gain. More... | |
int | Camera::getGain (void) |
Get current camera gain. More... | |
void | Camera::setWhiteBalance (CameraWB mode) |
Set camera white balance mode. More... | |
CameraWB | Camera::getWhiteBalance (void) |
Get current camera white balance mode. More... | |
void | Camera::setBacklight (CameraBacklight mode) |
Set camera backlight mode. More... | |
CameraBacklight | Camera::getBacklight (void) |
Get current camera backlight mode. More... | |
void | Camera::setNightmode (CameraNightmode mode) |
Set camera nightmode mode. More... | |
CameraNightmode | Camera::getNightmode (void) |
Get current camera nightmode mode. More... | |
Module that handles photo cameras hardware.
enum CameraType |
Camera types.
Enumerator | |
---|---|
INNER_CAM | Front camera. |
OUTER_CAM | Retro camera. |
enum CameraRes |
Camera resolutions.
enum CameraAntiFlick |
Camera antiflicker modes.
Enumerator | |
---|---|
ANTIFLICKER_AUTO | Automatic Antiflicker. |
ANTIFLICKER_50HZ | 50Hz Antiflicker |
ANTIFLICKER_60HZ | 60Hz Antiflicker |
enum CameraISO |
Camera ISO speed mode.
Enumerator | |
---|---|
ISO_AUTO | Automatic ISO speed mode. |
ISO_100 | 100/21 ISO speed mode |
ISO_200 | 100/24 ISO speed mode |
ISO_400 | 100/27 ISO speed mode |
enum CameraWB |
Camera White Balance mode.
Enumerator | |
---|---|
WB_AUTO | Automatic White Balance mode. |
WB_DAYLIGHT | Daylight White Balance mode. |
WB_CWF | Cool White Fluorescent mode. |
WB_SLSA | Standard Light Source A mode. |
enum CameraBacklight |
Camera Backlight mode.
Enumerator | |
---|---|
BACKLIGHT_OFF | Backlight disabled. |
BACKLIGHT_ON | Backlight enabled. |
enum CameraNightmode |
Camera Nightmode mode.
Enumerator | |
---|---|
NIGHTMODE_OFF | Nightmode disabled. |
NIGHTMODE_LOW | Nightmode for 10 lux or below. |
NIGHTMODE_MED | Nightmode for 100 lux or below. |
NIGHTMODE_HIGH | Nightmode for over 100 lux. |
enum CameraReverse |
Camera Reverse mode.
Enumerator | |
---|---|
REVERSE_OFF | Reverse mode disabled. |
REVERSE_MIRROR | Mirror reverse mode. |
REVERSE_FLIP | Flip reverse mode. |
REVERSE_BOTH | Flip and Mirror reverse mode. |
enum CameraEffect |
Camera effects.
void Camera::init | ( | CameraType | type, |
CameraRes | resolution, | ||
int | framerate | ||
) |
Init camera hardware.
type | - Camera to init. |
resolution | - Output resolution. |
framerate | - Output framerate. |
void Camera::term | ( | void | ) |
Terminate camera hardware.
int Camera::getOutput | ( | void | ) |
Return current camera output as image.
void Camera::setBrightness | ( | int | value | ) |
Set camera brightness.
value | - Value to set. |
int Camera::getBrightness | ( | void | ) |
Get current camera brightness.
void Camera::setSaturation | ( | number | value | ) |
Set camera saturation.
value | - Value to set. |
int Camera::getSaturation | ( | void | ) |
Get current camera saturation.
void Camera::setSharpness | ( | int | value | ) |
Set camera sharpness percentage.
value | - Value to set. |
int Camera::getSharpness | ( | void | ) |
Get current camera sharpness.
void Camera::setContrast | ( | int | value | ) |
Set camera contrast.
value | - Value to set. |
int Camera::getContrast | ( | void | ) |
Get current camera contrast.
void Camera::setReverse | ( | CameraReverse | mode | ) |
Set camera reverse mode.
mode | - Mode to set. |
CameraReverse Camera::getReverse | ( | void | ) |
Get current camera reverse mode.
void Camera::setEffect | ( | CameraEffect | effect | ) |
Set camera effect.
effect | - Effect to set. |
CameraEffect Camera::getEffect | ( | void | ) |
Get current camera effect.
void Camera::setZoom | ( | int | value | ) |
Set camera zoom.
value | - Value to set. |
int Camera::getZoom | ( | void | ) |
Get current camera zoom.
void Camera::setAntiFlicker | ( | CameraAntiFlick | mode | ) |
Set camera antiflicker mode.
mode | - Mode to set. |
CameraAntiFlick Camera::getAntiFlicker | ( | void | ) |
Get current camera antiflicker mode.
void Camera::setISO | ( | CameraISO | mode | ) |
Set camera ISO speed mode.
mode | - Mode to set. |
CameraISO Camera::getISO | ( | void | ) |
Get current camera ISO speed mode.
void Camera::setGain | ( | int | value | ) |
Set camera gain.
value | - Value to set. |
int Camera::getGain | ( | void | ) |
Get current camera gain.
void Camera::setWhiteBalance | ( | CameraWB | mode | ) |
Set camera white balance mode.
mode | - Mode to set. |
CameraWB Camera::getWhiteBalance | ( | void | ) |
Get current camera white balance mode.
void Camera::setBacklight | ( | CameraBacklight | mode | ) |
Set camera backlight mode.
mode | - Mode to set. |
CameraBacklight Camera::getBacklight | ( | void | ) |
Get current camera backlight mode.
void Camera::setNightmode | ( | CameraNightmode | mode | ) |
Set camera nightmode mode.
mode | - Mode to set. |
CameraNightmode Camera::getNightmode | ( | void | ) |
Get current camera nightmode mode.