PSP2SDK  dirty-f9e4f2d
The free SDK for PSP2
include/psp2/screenshot.h
Go to the documentation of this file.
00001 
00012 #ifndef _PSP2_SCREENSHOT_H_
00013 #define _PSP2_SCREENSHOT_H_
00014 
00015 #include <psp2/types.h>
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00021 enum {
00022     SCE_SCREENSHOT_ERROR_INVALID_ARGUMENT       = 0x80102f01,
00023     SCE_SCREENSHOT_ERROR_NO_MEMORY          = 0x80102f02,
00024     SCE_SCREENSHOT_ERROR_FILE_NOT_FOUND     = 0x80102f03,
00025     SCE_SCREENSHOT_ERROR_NOT_SUPPORTED_FORMAT   = 0x80102f04,
00026     SCE_SCREENSHOT_ERROR_MEDIA_FULL         = 0x80102f05,
00027     SCE_SCREENSHOT_ERROR_INTERNAL           = 0x80102f06
00028 };
00029 
00031 #define SCE_SCREENSHOT_MAX_FS_PATH      (1024)
00032 
00034 #define SCE_SCREENSHOT_MAX_PHOTO_TITLE_LEN  (64)
00035 
00037 #define SCE_SCREENSHOT_MAX_PHOTO_TITLE_SIZE (SCE_SCREENSHOT_MAX_PHOTO_TITLE_LEN * 4)
00038 
00040 #define SCE_SCREENSHOT_MAX_GAME_TITLE_LEN   (64)
00041 
00043 #define SCE_SCREENSHOT_MAX_GAME_TITLE_SIZE  (SCE_SCREENSHOT_MAX_GAME_TITLE_LEN * 4)
00044 
00046 #define SCE_SCREENSHOT_MAX_GAME_COMMENT_LEN (128)
00047 
00049 #define SCE_SCREENSHOT_MAX_GAME_COMMENT_SIZE    (SCE_SCREENSHOT_MAX_GAME_COMMENT_LEN * 4)
00050 
00051 typedef struct ScreenshotParam {
00052     const SceWChar32 *photoTitle; 
00053     const SceWChar32 *gameTitle;  
00054     const SceWChar32 *gameComment;  
00055     void *reserved; 
00056 } ScreenshotParam;
00057 
00059 int sceScreenshotSetParam(const ScreenshotParam *param);
00060 
00062 int sceScreenshotOverlayImage(const char *filepath, int offsetX, int offsetY);
00063 
00065 int sceScreenshotDisable(void);
00066 
00068 int sceScreenshotEnable(void);
00069 
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073 
00074 #endif /* _PSP2_SCREENSHOT_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines