summaryrefslogtreecommitdiff
path: root/include/user/videoexport.h
blob: a552db144060abe287c7d752208dddf856d3be0d (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
#ifndef _PSP2_VIDEO_EXPORT_H_
#define _PSP2_VIDEO_EXPORT_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef struct VideoExportInputParam {
	char path[1024]; //!< Path of file to be exported
	char reserved[64]; //!< Reserved data
} VideoExportInputParam;

typedef struct VideoExportOutputParam {
	char path[1024]; //!< Path of exported file
	char reserved[8]; //!< Reserved data
} VideoExportOutputParam;

/**
 * Export video file
 *
 * @param[in] in_param - Input param
 * @param[in] unk - Unknown, pass 1
 * @param[in] workingMemory - Working memory
 * @param[in] cancelCb - Cancel callback
 * @param[in] progress - Progress callback
 * @param[in] user - User data passed to the callbacks
 * @param[in] unk2 - Unknown, pass 0
 * @param[out] out_param - Output param
 *
 * @return 0 on success, < 0 on error.
*/
int sceVideoExportFromFile(const VideoExportInputParam* in_param, int unk, void* workingMemory, void* cancelCb, void (*progress)(void*, int), void* user, int unk2, VideoExportOutputParam* out_param);

#ifdef __cplusplus
}
#endif

#endif /* _PSP2_VIDEO_EXPORT_H_ */