mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
407 lines
11 KiB
Odin
407 lines
11 KiB
Odin
package camera
|
|
|
|
import "core:c"
|
|
import sce "../common"
|
|
|
|
foreign import camera "SceCamera_stub"
|
|
|
|
foreign camera {
|
|
/**
|
|
* Open a camera device.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] pInfo - Pointer to an already set ::SceCameraInfo struct.
|
|
*
|
|
* @return SCE_OK, <0 on error.
|
|
*/
|
|
sceCameraOpen :: proc(devnum: c.int, pInfo: ^SceCameraInfo) -> c.int ---
|
|
|
|
/**
|
|
* Close a camera device.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
*
|
|
* @return SCE_OK, <0 on error.
|
|
*/
|
|
sceCameraClose :: proc(devnum: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Start camera streaming.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
*
|
|
* @return SCE_OK, <0 on error.
|
|
*/
|
|
sceCameraStart :: proc(devnum: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Stop camera streaming.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
*
|
|
* @return SCE_OK, <0 on error.
|
|
*/
|
|
sceCameraStop :: proc(devnum: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Read image data from current streaming.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] pRead - Pointer to an already set ::SceCameraRead.
|
|
*
|
|
* @return SCE_OK, <0 on error.
|
|
*/
|
|
sceCameraRead :: proc(devnum: c.int, pRead: ^SceCameraRead) -> c.int ---
|
|
|
|
/**
|
|
* Check if camera device is active.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
*
|
|
* @return 1 if camera is active, 0 if inactive , <0 on error.
|
|
*/
|
|
sceCameraIsActive :: proc(devnum: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera saturation value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pLevel - Pointer to a variable where to save the result. (See ::SceCameraSaturation)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetSaturation :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera saturation value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] level - One of ::SceCameraSaturation.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetSaturation :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera brightness value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pLevel - Pointer to a variable where to save the result.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetBrightness :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera brightness value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] level - Brightness value.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*
|
|
* @note Brightness value must be between 0 and 255.
|
|
*/
|
|
sceCameraSetBrightness :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera contrast value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pLevel - Pointer to a variable where to save the result.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetContrast :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera contrast value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] level - Contrast value.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*
|
|
* @note Contrast value must be between 0 and 255.
|
|
*/
|
|
sceCameraSetContrast :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera sharpness value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pLevel - Pointer to a variable where to save the result. (See ::SceCameraSharpness)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetSharpness :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera sharpness value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] level - One of ::SceCameraSharpness.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetSharpness :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera reverse mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result. (See ::SceCameraReverse)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetReverse :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera reverse mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraReverse.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetReverse :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get active camera effects.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetEffect :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Active a camera effect.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraEffect.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetEffect :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera exposure compensation value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pLevel - Pointer to a variable where to save the result (See ::SceCameraExposureCompensation).
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetEV :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera exposure compensation value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] level - One of ::SceCameraExposureCompensation.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetEV :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera zoom value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pLevel - Pointer to a variable where to save the result.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetZoom :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera zoom value.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] level - Camera zoom value.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetZoom :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera anti-flickering mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result. (See ::SceCameraAntiFlicker)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetAntiFlicker :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera exposure anti-flickering mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraAntiFlicker.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetAntiFlicker :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera ISO speed mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result. (See ::SceCameraISO)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetISO :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera ISO speed mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraISO.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetISO :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera gain mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result. (See ::SceCameraGain)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetGain :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera gain mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraGain.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetGain :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera white balance mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result. (See ::SceCameraWhiteBalance)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetWhiteBalance :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera white balance mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraWhiteBalance.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetWhiteBalance :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera backlight compensation mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result. (See ::SceCameraBacklight)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetBacklight :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera backlight mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraBacklight.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetBacklight :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get nightmode mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result. (See ::SceCameraNightmode)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetNightmode :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set camera nightmoge mode.
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - One of ::SceCameraNightmode.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetNightmode :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get exposure ceiling mode. (?)
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetExposureCeiling :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set exposure ceiling mode. (?)
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - Exposure ceiling mode value. (?)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetExposureCeiling :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get auto control hold mode. (?)
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pMode - Pointer to a variable where to save the result.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraGetAutoControlHold :: proc(devnum: c.int, pMode: ^c.int) -> c.int ---
|
|
|
|
/**
|
|
* Set auto control hold mode. (?)
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[in] mode - Auto control hold mode value. (?)
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
sceCameraSetAutoControlHold :: proc(devnum: c.int, mode: c.int) -> c.int ---
|
|
|
|
/**
|
|
* Get camera device location. (?)
|
|
*
|
|
* @param[in] devnum - One of ::SceCameraDevice.
|
|
* @param[out] pLocation - Pointer to a variable where to save the result.
|
|
*
|
|
* @return SCE_OK , <0 on error.
|
|
*/
|
|
|
|
sceCameraGetDeviceLocation :: proc(devnum: c.int, pLocation: ^sce.FVector3) -> c.int ---
|
|
|
|
sceCameraGetImageQuality :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
sceCameraSetImageQuality :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
sceCameraGetNoiseReduction :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
sceCameraSetNoiseReduction :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
sceCameraGetSharpnessOff :: proc(devnum: c.int, pLevel: ^c.int) -> c.int ---
|
|
sceCameraSetSharpnessOff :: proc(devnum: c.int, level: c.int) -> c.int ---
|
|
}
|