summaryrefslogtreecommitdiff
path: root/include/user/videoexport.h
diff options
context:
space:
mode:
authorTheOfficialFloW2017-06-25 16:54:28 +0200
committerSunguk Lee2017-06-25 23:54:28 +0900
commit452c2ab79926570991fac2934e954ae2101242b0 (patch)
treef4097d6f896bff1a3072961298087fa1e990c23c /include/user/videoexport.h
parentadd sceKernel(Start|Stop)Module / ksceKernelGetMemBlockBase definitions (#202) (diff)
downloadvds-libraries-452c2ab79926570991fac2934e954ae2101242b0.tar.gz
Added new NIDs and new headers (#196)
* Added sceIoPread/sceIoPwrite header * Added more paf nids and paf header * Added sceCompat NIDs * Added SceNpDrm header * Sorted SceCompat * Removed duplicated NIDs * Fixed scePaf nid * Fixed SceNpDrm name in header and added SceVideoExport * Fixed brief description * Added sceIoChstatByFd header * Added SceVideoExport definition
Diffstat (limited to '')
-rw-r--r--include/user/videoexport.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/user/videoexport.h b/include/user/videoexport.h
new file mode 100644
index 0000000..a002dde
--- /dev/null
+++ b/include/user/videoexport.h
@@ -0,0 +1,41 @@
+#ifndef _PSP2_VIDEO_EXPORT_H_
+#define _PSP2_VIDEO_EXPORT_H_
+
+#include <psp2/types.h>
+#include <stdint.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_ */