Files
vitasdk-odin/AvPlayer/AvPlayer.odin
T

122 lines
3.7 KiB
Odin
Raw Normal View History

2024-05-11 23:24:13 +02:00
package avplayer
import "core:c"
import sce "../common"
foreign import avplayer "system:SceAvPlayer_stub"
foreign avplayer {
/**
* @param[in] data - Init data for the video player
*
* @return The video player handle on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerInit :: proc(data: ^SceAvPlayerInitData) -> SceAvPlayerHandle ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerPause :: proc(handle: SceAvPlayerHandle) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerResume :: proc(handle: SceAvPlayerHandle) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerStart :: proc(handle: SceAvPlayerHandle) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerStop :: proc(handle: SceAvPlayerHandle) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
* @param[in] looping - A flag indicating whether the video playback should loop
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerSetLooping :: proc(handle: SceAvPlayerHandle, looping: sce.Bool) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
*
* @return SCE_TRUE if the video playback is active, SCE_FALSE otherwise.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerIsActive :: proc(handle: SceAvPlayerHandle) -> sce.Bool ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
* @param[in] filename - Full path to the file to play
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerAddSource :: proc(handle: SceAvPlayerHandle, filename: cstring) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerClose :: proc(handle: SceAvPlayerHandle) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
* @param[out] info - Descriptor for the received data
*
* @return SCE_TRUE if new data is available, SCE_FALSE otherwise.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerGetAudioData :: proc(handle: SceAvPlayerHandle, info: ^SceAvPlayerFrameInfo) -> sce.Bool ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
* @param[out] info - Descriptor for the received data
*
* @return SCE_TRUE if new data is available, SCE_FALSE otherwise.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerGetVideoData :: proc(handle: SceAvPlayerHandle, info: ^SceAvPlayerFrameInfo) -> sce.Bool ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
*
* @return Current time on the video playback in milliseconds.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerCurrentTime :: proc(handle: SceAvPlayerHandle) -> c.uint64_t ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
* @param[in] offset - Offset to jump to on the video playback in milliseconds.
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerJumpToTime :: proc(handle: SceAvPlayerHandle, offset: c.uint64_t) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
* @param[in] offset - One of ::SceAvPlayerTrickSpeeds.
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerSetTrickSpeed :: proc(handle: SceAvPlayerHandle, speed: c.int) -> c.int ---
2024-05-11 23:24:13 +02:00
/**
* @param[in] handle - A player handle created with ::sceAvPlayerInit
* @param[in] id - Stream ID to get info for.
* @param[out] info - Info retrieved for the requested stream.
*
* @return 0 on success, < 0 on error.
*/
2024-05-13 16:04:23 +02:00
sceAvPlayerGetStreamInfo :: proc(handle: SceAvPlayerHandle, id: c.uint32_t, info: ^SceAvPlayerStreamInfo) -> c.int ---
2024-05-11 23:24:13 +02:00
}