blob: bef9ba40c39c1ec6544e6ca367acc58cab6901ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#ifndef _PSP2_AVCONFIG_H_
#define _PSP2_AVCONFIG_H_
#include <psp2/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Color Space Mode values to specify to ::sceAVConfigSetDisplayColorSpaceMode */
typedef enum SceAVConfigColorSpaceMode {
SCE_AVCONFIG_COLOR_SPACE_MODE_DEFAULT = 0, //!< Default
SCE_AVCONFIG_COLOR_SPACE_MODE_HIGH_CONTRAST = 1 //!< High Contrast Mode
} SceAVConfigColorSpaceMode;
/**
* Get the maximum brightness.
*
* @param[out] maxBrightness - Maximum brightness.
*
* @return 0 on success, < 0 on error.
*/
int sceAVConfigGetDisplayMaxBrightness(int *maxBrightness);
/**
* Set the screen brightness.
*
* @param brightness - Brightness that the screen will be set to (range 21-65536, 0 turns off the screen).
*
* @return 0 on success, < 0 on error.
*/
int sceAVConfigSetDisplayBrightness(int brightness);
/**
* Get the shutter volume.
*
* @param[out] volume - shutter volume.
*
* @return 0 on success, < 0 on error.
*/
int sceAVConfigGetShutterVol(int *volume);
/**
* Get the system volume.
*
* @param[out] volume - System volume.
*
* @return 0 on success, < 0 on error.
*/
int sceAVConfigGetSystemVol(int *volume);
/**
* Set the system volume.
*
* @param volume - volume that the device will be set to (range 0-30).
*
* @return 0 on success, < 0 on error.
*/
int sceAVConfigSetSystemVol(int volume);
/**
* Turns on mute.
*
* @return 0 on success, < 0 on error.
*
*/
int sceAVConfigMuteOn(void);
/**
* Sets the color space mode on runtime.
*
* @param[in] csm - see ::SceAVConfigColorSpaceMode()
*
* @return 0 on success, < 0 on error.
* @note - This does not change color_space_mode in the registry.
*/
int sceAVConfigSetDisplayColorSpaceMode(int csm);
#ifdef __cplusplus
}
#endif
#endif
|