vitasdk
Documentation of the vitasdk
screenshot.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_SCREENSHOT_H_
8 #define _PSP2_SCREENSHOT_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 typedef enum SceScreenshotErrorCode {
25 
27 #define SCE_SCREENSHOT_MAX_FS_PATH (1024)
28 
30 #define SCE_SCREENSHOT_MAX_PHOTO_TITLE_LEN (64)
31 
33 #define SCE_SCREENSHOT_MAX_PHOTO_TITLE_SIZE (SCE_SCREENSHOT_MAX_PHOTO_TITLE_LEN * 4)
34 
36 #define SCE_SCREENSHOT_MAX_GAME_TITLE_LEN (64)
37 
39 #define SCE_SCREENSHOT_MAX_GAME_TITLE_SIZE (SCE_SCREENSHOT_MAX_GAME_TITLE_LEN * 4)
40 
42 #define SCE_SCREENSHOT_MAX_GAME_COMMENT_LEN (128)
43 
45 #define SCE_SCREENSHOT_MAX_GAME_COMMENT_SIZE (SCE_SCREENSHOT_MAX_GAME_COMMENT_LEN * 4)
46 
47 typedef struct SceScreenShotParam {
51  void *reserved;
54 
57 
59 int sceScreenShotSetOverlayImage(const char *filepath, int offsetX, int offsetY);
60 
63 
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* _PSP2_SCREENSHOT_H_ */
72 
void * reserved
Reserved range (Must be NULL)
Definition: screenshot.h:51
int sceScreenShotSetParam(const SceScreenShotParam *param)
Set screenshot params.
const SceWChar32 * gameComment
Game description.
Definition: screenshot.h:50
const SceWChar32 * gameTitle
Game title.
Definition: screenshot.h:49
VITASDK_BUILD_ASSERT_EQ(0x10, SceScreenShotParam)
const SceWChar32 * photoTitle
Photo title.
Definition: screenshot.h:48
int sceScreenShotDisable(void)
Disable screenshot.
int sceScreenShotEnable(void)
Enable screenshot.
int sceScreenShotSetOverlayImage(const char *filepath, int offsetX, int offsetY)
Set overlay image.
SceScreenshotErrorCode
Definition: screenshot.h:17
@ SCE_SCREENSHOT_ERROR_NOT_SUPPORTED_FORMAT
Definition: screenshot.h:21
@ SCE_SCREENSHOT_ERROR_FILE_NOT_FOUND
Definition: screenshot.h:20
@ SCE_SCREENSHOT_ERROR_INTERNAL
Definition: screenshot.h:23
@ SCE_SCREENSHOT_ERROR_MEDIA_FULL
Definition: screenshot.h:22
@ SCE_SCREENSHOT_ERROR_INVALID_ARGUMENT
Definition: screenshot.h:18
@ SCE_SCREENSHOT_ERROR_NO_MEMORY
Definition: screenshot.h:19
Definition: screenshot.h:47
uint32_t SceWChar32
Definition: types.h:78