pspsdk-1.0+beta2
pspasfparser.h File Reference
#include <psptypes.h>
Include dependency graph for pspasfparser.h:

Go to the source code of this file.

Data Structures

struct  SceAsfFrame
 Asf Frame structure. More...
struct  _SceAsfParser
 Asf Parser structure. More...

Typedefs

typedef struct SceAsfFrame SceAsfFrame
 Asf Frame structure.
typedef struct _SceAsfParser SceAsfParser
 Asf Parser structure.
typedef SceInt64(* SceAsfParserReadCB )(void *user_data, void *buf, SceSize size)
 Asf read callback.
typedef SceInt64(* SceAsfParserSeekCB )(void *user_data, void *buf, SceOff offset, int whence)
 Asf seek callback.

Functions

int sceAsfCheckNeedMem (SceAsfParser *parser)
 Check the memory of an asf parser.
int sceAsfInitParser (SceAsfParser *parser, ScePVoid user_data, SceAsfParserReadCB read_cb, SceAsfParserSeekCB seek_cb)
 Initialize asf parser.
int sceAsfGetFrameData (SceAsfParser *parser, int unknown, SceAsfFrame *frame)
 Get frame in asf stream.
int sceAsfSeekTime (SceAsfParser *parser, int unknown, SceUInt32 *ms)
 Seek in asf stream.
int sceAsfParser_685E0DA7 (SceAsfParser *asf, void *ptr, int flag, void *arg4, SceUInt64 *start, SceUInt64 *size)
 Get WMA Tag frame's offset and size.
int sceAsfParser_C6D98C54 (SceAsfParser *asf, void *unk, SceUInt64 *start, SceUInt64 *size)
 Get ASF stream header frame's offset and size.

Typedef Documentation

typedef struct SceAsfFrame SceAsfFrame

Asf Frame structure.

typedef struct _SceAsfParser SceAsfParser

Asf Parser structure.

typedef SceInt64(* SceAsfParserReadCB)(void *user_data, void *buf, SceSize size)

Asf read callback.

typedef SceInt64(* SceAsfParserSeekCB)(void *user_data, void *buf, SceOff offset, int whence)

Asf seek callback.

Function Documentation

int sceAsfCheckNeedMem ( SceAsfParser parser)

Check the memory of an asf parser.

Parameters
parser- pointer to a SceAsfParser struct
Returns
< 0 if error else if (parser->iNeedMem > 0x8000) also error.
int sceAsfGetFrameData ( SceAsfParser parser,
int  unknown,
SceAsfFrame frame 
)

Get frame in asf stream.

Parameters
parser- pointer to a SceAsfParser struct
unknown- unknown, set to 1
frame- pointer to a SceAsfFrame struct
Returns
< 0 if error else success.
int sceAsfInitParser ( SceAsfParser parser,
ScePVoid  user_data,
SceAsfParserReadCB  read_cb,
SceAsfParserSeekCB  seek_cb 
)

Initialize asf parser.

Parameters
parser- pointer to a SceAsfParser struct
user_data- user pointer for read/seek callback
read_cb- read callback
seek_cb- seek callback
Returns
< 0 if error else success.
int sceAsfParser_685E0DA7 ( SceAsfParser asf,
void *  ptr,
int  flag,
void *  arg4,
SceUInt64 start,
SceUInt64 size 
)

Get WMA Tag frame's offset and size.

Parameters
asfpointer to a SceAsfParser struct
ptrunknown, pass NULL
startpointer to frame offset
sizepointer to frame size
flagcan be one of:
0x00000001: get asf file header information
0x00004000: get standard tag information
0x00008000: get extra tag infomration
0x00040000: unknown
0x00080000: unknown
Note
use after sceAsfInitParser completed
int sceAsfParser_C6D98C54 ( SceAsfParser asf,
void *  unk,
SceUInt64 start,
SceUInt64 size 
)

Get ASF stream header frame's offset and size.

Parameters
asfpointer to a SceAsfParser struct
unkunknown, pass NULL
startpointer to frame offset
sizepointer to frame size
Note
use after sceAsfInitParser completed
int sceAsfSeekTime ( SceAsfParser parser,
int  unknown,
SceUInt32 ms 
)

Seek in asf stream.

Parameters
parser- pointer to a SceAsfParser struct
unknown- unknown, set to 1
ms- will contain value of seek ms
Returns
< 0 if error else success.