![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Data Structures | |
| struct | SceAvPlayerMemReplacement |
| struct | SceAvPlayerFileReplacement |
| struct | SceAvPlayerEventReplacement |
| struct | SceAvPlayerInitData |
| struct | SceAvPlayerAudio |
| struct | SceAvPlayerVideo |
| struct | SceAvPlayerTextPosition |
| struct | SceAvPlayerTimedText |
| union | SceAvPlayerStreamDetails |
| struct | SceAvPlayerFrameInfo |
| struct | SceAvPlayerStreamInfo |
Typedefs | |
| typedef int | SceAvPlayerHandle |
| typedef void *(* | SceAvPlayerAlloc) (void *arg, uint32_t alignment, uint32_t size) |
| typedef void(* | SceAvPlayerFree) (void *arg, void *ptr) |
| typedef void *(* | SceAvPlayerAllocFrame) (void *arg, uint32_t alignment, uint32_t size) |
| typedef void(* | SceAvPlayerFreeFrame) (void *arg, void *ptr) |
| typedef int(* | SceAvPlayerOpenFile) (void *p, const char *filename) |
| typedef int(* | SceAvPlayerCloseFile) (void *p) |
| typedef int(* | SceAvPlayerReadOffsetFile) (void *p, uint8_t *buffer, uint64_t position, uint32_t length) |
| typedef uint64_t(* | SceAvPlayerSizeFile) (void *p) |
| typedef void(* | SceAvPlayerEventCallback) (void *p, int32_t argEventId, int32_t argSourceId, void *argEventData) |
Enumerations | |
| enum | SceAvPlayerErrorCode { SCE_AVPLAYER_ERROR_INVALID_PARAM = 0x806A0001 , SCE_AVPLAYER_ERROR_OUT_OF_MEMORY = 0x806A0003 } |
| enum | SceAvPlayerTrickSpeeds { SCE_AVPLAYER_TRICK_SPEED_REWIND_32X = -3200 , SCE_AVPLAYER_TRICK_SPEED_REWIND_16X = -1600 , SCE_AVPLAYER_TRICK_SPEED_REWIND_8X = -800 , SCE_AVPLAYER_TRICK_SPEED_NORMAL = 100 , SCE_AVPLAYER_TRICK_SPEED_FAST_FORWARD_2X = 200 , SCE_AVPLAYER_TRICK_SPEED_FAST_FORWARD_4X = 400 , SCE_AVPLAYER_TRICK_SPEED_FAST_FORWARD_8X = 800 , SCE_AVPLAYER_TRICK_SPEED_FAST_FORWARD_16X = 1600 , SCE_AVPLAYER_TRICK_SPEED_FAST_FORWARD_32X = 3200 } |
| enum | SceAvPlayerStreamType { SCE_AVPLAYER_VIDEO , SCE_AVPLAYER_AUDIO , SCE_AVPLAYER_TIMEDTEXT } |
Exports for User.
Include the header file in your project:
Link the library to the executable:
Load the required module:
| struct SceAvPlayerMemReplacement |
| Data Fields | ||
|---|---|---|
| void * | objectPointer | |
| SceAvPlayerAlloc | allocate | Memory allocator for generic data. |
| SceAvPlayerFree | deallocate | Memory deallocator for generic data. |
| SceAvPlayerAllocFrame | allocateTexture | Memory allocator for video frames. |
| SceAvPlayerFreeFrame | deallocateTexture | Memory deallocator for video frames. |
| struct SceAvPlayerFileReplacement |
| Data Fields | ||
|---|---|---|
| void * | objectPointer | |
| SceAvPlayerOpenFile | open | File open. |
| SceAvPlayerCloseFile | close | File close. |
| SceAvPlayerReadOffsetFile | readOffset | File read from offset. |
| SceAvPlayerSizeFile | size | File size. |
| struct SceAvPlayerEventReplacement |
| Data Fields | ||
|---|---|---|
| void * | objectPointer | |
| SceAvPlayerEventCallback | eventCallback | |
| struct SceAvPlayerInitData |
| Data Fields | ||
|---|---|---|
| SceAvPlayerMemReplacement | memoryReplacement | Memory allocator replacement. |
| SceAvPlayerFileReplacement | fileReplacement | File I/O replacement. |
| SceAvPlayerEventReplacement | eventReplacement | Event callback replacement. |
| int32_t | debugLevel | |
| uint32_t | basePriority | Base priority of the thread running the video player. |
| int32_t | numOutputVideoFrameBuffers | |
| SceBool | autoStart | Flag indicating whether the video player should start playback automatically. |
| uint8_t | reserved[3] | Reserved data. |
| const char * | defaultLanguage | |
| struct SceAvPlayerAudio |
| struct SceAvPlayerVideo |
| struct SceAvPlayerTextPosition |
| struct SceAvPlayerTimedText |
| Data Fields | ||
|---|---|---|
| uint32_t | languageCode | The language code of the subtitles. |
| uint16_t | textSize | The size of the subtitles. |
| uint16_t | fontSize | The size of the subtitles. |
| SceAvPlayerTextPosition | position | The position of the subtitles. |
| union SceAvPlayerStreamDetails |
| Data Fields | ||
|---|---|---|
| uint32_t | reserved[4] | Reserved data. |
| SceAvPlayerAudio | audio | Audio details. |
| SceAvPlayerVideo | video | Video details. |
| SceAvPlayerTimedText | subs | Subtitles details. |
| struct SceAvPlayerFrameInfo |
| Data Fields | ||
|---|---|---|
| uint8_t * | pData | Pointer to the frame data. |
| uint32_t | reserved | Reserved data. |
| uint64_t | timeStamp | Timestamp of the frame in milliseconds. |
| SceAvPlayerStreamDetails | details | The frame details. |
| struct SceAvPlayerStreamInfo |
| Data Fields | ||
|---|---|---|
| uint32_t | type | Type of the stream (One of SceAvPlayerStreamType) |
| uint32_t | reserved |
Reserved data |
| SceAvPlayerStreamDetails | details | The stream details. |
| uint64_t | duration | Total duration of the stream in milliseconds. |
| uint64_t | startTime | Starting time of the stream in milliseconds. |
| typedef int SceAvPlayerHandle |
| typedef void *(* SceAvPlayerAlloc) (void *arg, uint32_t alignment, uint32_t size) |
| typedef void(* SceAvPlayerFree) (void *arg, void *ptr) |
| typedef void *(* SceAvPlayerAllocFrame) (void *arg, uint32_t alignment, uint32_t size) |
| typedef void(* SceAvPlayerFreeFrame) (void *arg, void *ptr) |
| typedef int(* SceAvPlayerOpenFile) (void *p, const char *filename) |
| typedef int(* SceAvPlayerCloseFile) (void *p) |
| typedef int(* SceAvPlayerReadOffsetFile) (void *p, uint8_t *buffer, uint64_t position, uint32_t length) |
| typedef uint64_t(* SceAvPlayerSizeFile) (void *p) |
| typedef void(* SceAvPlayerEventCallback) (void *p, int32_t argEventId, int32_t argSourceId, void *argEventData) |
| enum SceAvPlayerErrorCode |
| VITASDK_BUILD_ASSERT_EQ | ( | 4 | , |
| SceAvPlayerHandle | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x14 | , |
| SceAvPlayerMemReplacement | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x14 | , |
| SceAvPlayerFileReplacement | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
| SceAvPlayerEventReplacement | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x48 | , |
| SceAvPlayerInitData | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
| SceAvPlayerAudio | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
| SceAvPlayerVideo | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
| SceAvPlayerTextPosition | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
| SceAvPlayerTimedText | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
| SceAvPlayerStreamDetails | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x20 | , |
| SceAvPlayerFrameInfo | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x28 | , |
| SceAvPlayerStreamInfo | |||
| ) |
| SceAvPlayerHandle sceAvPlayerInit | ( | SceAvPlayerInitData * | data | ) |
| [in] | data | - Init data for the video player |
| int sceAvPlayerPause | ( | SceAvPlayerHandle | handle | ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| int sceAvPlayerResume | ( | SceAvPlayerHandle | handle | ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| int sceAvPlayerStart | ( | SceAvPlayerHandle | handle | ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| int sceAvPlayerStop | ( | SceAvPlayerHandle | handle | ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| int sceAvPlayerSetLooping | ( | SceAvPlayerHandle | handle, |
| SceBool | looping | ||
| ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| [in] | looping | - A flag indicating whether the video playback should loop |
| SceBool sceAvPlayerIsActive | ( | SceAvPlayerHandle | handle | ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| int sceAvPlayerAddSource | ( | SceAvPlayerHandle | handle, |
| const char * | filename | ||
| ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| [in] | filename | - Full path to the file to play |
| int sceAvPlayerClose | ( | SceAvPlayerHandle | handle | ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| SceBool sceAvPlayerGetAudioData | ( | SceAvPlayerHandle | handle, |
| SceAvPlayerFrameInfo * | info | ||
| ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| [out] | info | - Descriptor for the received data |
| SceBool sceAvPlayerGetVideoData | ( | SceAvPlayerHandle | handle, |
| SceAvPlayerFrameInfo * | info | ||
| ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| [out] | info | - Descriptor for the received data |
| uint64_t sceAvPlayerCurrentTime | ( | SceAvPlayerHandle | handle | ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| int sceAvPlayerJumpToTime | ( | SceAvPlayerHandle | handle, |
| uint64_t | offset | ||
| ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| [in] | offset | - Offset to jump to on the video playback in milliseconds. |
| int sceAvPlayerSetTrickSpeed | ( | SceAvPlayerHandle | handle, |
| int | speed | ||
| ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| [in] | offset | - One of SceAvPlayerTrickSpeeds. |
| int sceAvPlayerGetStreamInfo | ( | SceAvPlayerHandle | handle, |
| uint32_t | id, | ||
| SceAvPlayerStreamInfo * | info | ||
| ) |
| [in] | handle | - A player handle created with sceAvPlayerInit |
| [in] | id | - Stream ID to get info for. |
| [out] | info | - Info retrieved for the requested stream. |
| void* SceAvPlayerMemReplacement::objectPointer |
| SceAvPlayerAlloc SceAvPlayerMemReplacement::allocate |
Memory allocator for generic data.
| SceAvPlayerFree SceAvPlayerMemReplacement::deallocate |
Memory deallocator for generic data.
| SceAvPlayerAllocFrame SceAvPlayerMemReplacement::allocateTexture |
Memory allocator for video frames.
| SceAvPlayerFreeFrame SceAvPlayerMemReplacement::deallocateTexture |
Memory deallocator for video frames.
| void* SceAvPlayerFileReplacement::objectPointer |
| SceAvPlayerOpenFile SceAvPlayerFileReplacement::open |
File open.
| SceAvPlayerCloseFile SceAvPlayerFileReplacement::close |
File close.
| SceAvPlayerReadOffsetFile SceAvPlayerFileReplacement::readOffset |
File read from offset.
| SceAvPlayerSizeFile SceAvPlayerFileReplacement::size |
File size.
| void* SceAvPlayerEventReplacement::objectPointer |
| SceAvPlayerEventCallback SceAvPlayerEventReplacement::eventCallback |
| SceAvPlayerMemReplacement SceAvPlayerInitData::memoryReplacement |
Memory allocator replacement.
| SceAvPlayerFileReplacement SceAvPlayerInitData::fileReplacement |
File I/O replacement.
| SceAvPlayerEventReplacement SceAvPlayerInitData::eventReplacement |
Event callback replacement.
| int32_t SceAvPlayerInitData::debugLevel |
| uint32_t SceAvPlayerInitData::basePriority |
Base priority of the thread running the video player.
| int32_t SceAvPlayerInitData::numOutputVideoFrameBuffers |
| SceBool SceAvPlayerInitData::autoStart |
Flag indicating whether the video player should start playback automatically.
| uint8_t SceAvPlayerInitData::reserved[3] |
Reserved data.
| const char* SceAvPlayerInitData::defaultLanguage |
| uint16_t SceAvPlayerAudio::channelCount |
The number of audio channels of the audio frame.
| uint8_t SceAvPlayerAudio::reserved[2] |
Reserved data.
| uint32_t SceAvPlayerAudio::sampleRate |
The samplerate of the audio frame in Hz.
| uint32_t SceAvPlayerAudio::size |
The size of the audio frame in bytes.
| uint32_t SceAvPlayerAudio::languageCode |
The language code of the audio frame.
| uint32_t SceAvPlayerVideo::width |
The width of the video frame in pixels.
| uint32_t SceAvPlayerVideo::height |
The height of the video frame in pixels.
| float SceAvPlayerVideo::aspectRatio |
The aspect ratio of the video frame.
| uint32_t SceAvPlayerVideo::languageCode |
The language code of the video frame.
| uint16_t SceAvPlayerTextPosition::top |
| uint16_t SceAvPlayerTextPosition::left |
| uint16_t SceAvPlayerTextPosition::bottom |
| uint16_t SceAvPlayerTextPosition::right |
| uint32_t SceAvPlayerTimedText::languageCode |
The language code of the subtitles.
| uint16_t SceAvPlayerTimedText::textSize |
The size of the subtitles.
| uint16_t SceAvPlayerTimedText::fontSize |
The size of the subtitles.
| SceAvPlayerTextPosition SceAvPlayerTimedText::position |
The position of the subtitles.
| uint32_t SceAvPlayerStreamDetails::reserved[4] |
Reserved data.
| SceAvPlayerAudio SceAvPlayerStreamDetails::audio |
Audio details.
| SceAvPlayerVideo SceAvPlayerStreamDetails::video |
Video details.
| SceAvPlayerTimedText SceAvPlayerStreamDetails::subs |
Subtitles details.
| uint8_t* SceAvPlayerFrameInfo::pData |
Pointer to the frame data.
| uint32_t SceAvPlayerFrameInfo::reserved |
Reserved data.
| uint64_t SceAvPlayerFrameInfo::timeStamp |
Timestamp of the frame in milliseconds.
| SceAvPlayerStreamDetails SceAvPlayerFrameInfo::details |
The frame details.
| uint32_t SceAvPlayerStreamInfo::type |
Type of the stream (One of SceAvPlayerStreamType)
| uint32_t SceAvPlayerStreamInfo::reserved |
Reserved data
| SceAvPlayerStreamDetails SceAvPlayerStreamInfo::details |
The stream details.
| uint64_t SceAvPlayerStreamInfo::duration |
Total duration of the stream in milliseconds.
| uint64_t SceAvPlayerStreamInfo::startTime |
Starting time of the stream in milliseconds.