Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-08 21:52:10 +0300
committerJames Almer <jamrial@gmail.com>2022-03-08 22:43:22 +0300
commit493ffb12f77df791f7dcde991b92d64bf873fefd (patch)
tree301bc8f75479432a01f229f941699e277c1eb8cc /include
parent3d3c51a07cc3dd1e3687da40fdb6fbb857cbced1 (diff)
lib: add a public function to return the props from the last frame that failed to decode
Diffstat (limited to 'include')
-rw-r--r--include/dav1d/dav1d.h13
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