MP4v2
|
Structure of functions implementing custom file provider. More...
Public Attributes | |
void *(* | open )(const char *name, MP4FileMode mode) |
int(* | seek )(void *handle, int64_t pos) |
int(* | read )(void *handle, void *buffer, int64_t size, int64_t *nin, int64_t reserved) |
int(* | write )(void *handle, const void *buffer, int64_t size, int64_t *nout, int64_t reserved) |
int(* | close )(void *handle) |
Structure of functions implementing custom file provider.
Except for open, all the functions must return 0 upon success or a non-zero value to indicate failure. The open function must return a pointer or handle which represents the open file, otherwise NULL.
The reserved argument is currently always 0 and should be ignored.