|
|
|
@ -39,6 +39,9 @@ |
|
|
|
|
* case *bufptr will be set to NULL and *size will be set to 0. |
|
|
|
|
* The returned buffer must be released with av_file_unmap(). |
|
|
|
|
* |
|
|
|
|
* @param filename path to the file |
|
|
|
|
* @param[out] bufptr pointee is set to the mapped or allocated buffer |
|
|
|
|
* @param[out] size pointee is set to the size in bytes of the buffer |
|
|
|
|
* @param log_offset loglevel offset used for logging |
|
|
|
|
* @param log_ctx context used for logging |
|
|
|
|
* @return a non negative number in case of success, a negative value |
|
|
|
@ -51,6 +54,7 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, |
|
|
|
|
/**
|
|
|
|
|
* Unmap or free the buffer bufptr created by av_file_map(). |
|
|
|
|
* |
|
|
|
|
* @param bufptr the buffer previously created with av_file_map() |
|
|
|
|
* @param size size in bytes of bufptr, must be the same as returned |
|
|
|
|
* by av_file_map() |
|
|
|
|
*/ |
|
|
|
|