vitasdk
Documentation of the vitasdk
avplayer.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>
#include <stdint.h>

Go to the source code of this file.

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 }
 

Functions

 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)
 
int sceAvPlayerPause (SceAvPlayerHandle handle)
 
int sceAvPlayerResume (SceAvPlayerHandle handle)
 
int sceAvPlayerStart (SceAvPlayerHandle handle)
 
int sceAvPlayerStop (SceAvPlayerHandle handle)
 
int sceAvPlayerSetLooping (SceAvPlayerHandle handle, SceBool looping)
 
SceBool sceAvPlayerIsActive (SceAvPlayerHandle handle)
 
int sceAvPlayerAddSource (SceAvPlayerHandle handle, const char *filename)
 
int sceAvPlayerClose (SceAvPlayerHandle handle)
 
SceBool sceAvPlayerGetAudioData (SceAvPlayerHandle handle, SceAvPlayerFrameInfo *info)
 
SceBool sceAvPlayerGetVideoData (SceAvPlayerHandle handle, SceAvPlayerFrameInfo *info)
 
uint64_t sceAvPlayerCurrentTime (SceAvPlayerHandle handle)
 
int sceAvPlayerJumpToTime (SceAvPlayerHandle handle, uint64_t offset)
 
int sceAvPlayerSetTrickSpeed (SceAvPlayerHandle handle, int speed)
 
int sceAvPlayerGetStreamInfo (SceAvPlayerHandle handle, uint32_t id, SceAvPlayerStreamInfo *info)