Files
vitasdk-odin/VideoExport/VideoExport.odin
T

44 lines
1.2 KiB
Odin
Raw Normal View History

2024-05-11 23:24:13 +02:00
package videoexport
import "core:c"
foreign import videoexport "system:SceVideoExport_stub"
VideoExportInputParam :: struct {
path: [1024]c.char, //!< Path of file to be exported
reserved: [64]c.char, //!< Reserved data
}
#assert(size_of(VideoExportInputParam) == 0x440)
VideoExportOutputParam :: struct {
path: [1024]c.char, //!< Path of exported file
reserved: [8]c.char, //!< Reserved data
}
#assert(size_of(VideoExportOutputParam) == 0x408)
foreign videoexport {
/**
* 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.
*/
2024-05-13 16:04:23 +02:00
sceVideoExportFromFile :: proc(
2024-05-11 23:24:13 +02:00
#by_ptr in_param: VideoExportInputParam,
unk: c.int,
workingMemory: rawptr,
cancelCb: rawptr,
progress: #type ^proc "c" (_: rawptr, __: c.int),
user: rawptr,
unk2: c.int,
out_param: ^VideoExportOutputParam) -> c.int ---
}