diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dav1d/dav1d.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/dav1d/dav1d.h b/include/dav1d/dav1d.h index 0938156..fd3b622 100644 --- a/include/dav1d/dav1d.h +++ b/include/dav1d/dav1d.h @@ -274,6 +274,19 @@ enum Dav1dEventFlags { */ DAV1D_API int dav1d_get_event_flags(Dav1dContext *c, enum Dav1dEventFlags *flags); +/** + * Retrieve the user-provided metadata associated with the input data packet + * for the last decoding error reported to the user, i.e. a negative return + * value (not EAGAIN) from dav1d_send_data() or dav1d_get_picture(). + * + * @param c Input decoder instance. + * @param out Output Dav1dDataProps. On success, the caller assumes ownership of + * the returned reference. + * + * @return 0 on success, or < 0 (a negative DAV1D_ERR code) on error. + */ +DAV1D_API int dav1d_get_decode_error_data_props(Dav1dContext *c, Dav1dDataProps *out); + # ifdef __cplusplus } # endif |