aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/frame.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2023-03-19 15:37:40 +0200
committerJan Ekström <jeebjp@gmail.com>2024-03-20 19:15:05 +0200
commitf287a285d91bd89aa36699ce75818c7267f5f6ee (patch)
treee4ee879a3c6c049e5eb337cf7674355cb7bf76a4 /libavutil/frame.h
parent3c52f73e253eba81e4c58b69d8a8eb578128bef4 (diff)
downloadffmpeg-f287a285d91bd89aa36699ce75818c7267f5f6ee.tar.gz
avutil/frame: add helper for getting side data from array
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r--libavutil/frame.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h
index ce93421d60..a7fc909ad8 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -1042,6 +1042,20 @@ int av_frame_side_data_clone(AVFrameSideData ***sd, int *nb_sd,
const AVFrameSideData *src, unsigned int flags);
/**
+ * Get a side data entry of a specific type from an array.
+ *
+ * @param sd array of side data.
+ * @param nb_sd integer containing the number of entries in the array.
+ * @param type type of side data to be queried
+ *
+ * @return a pointer to the side data of a given type on success, NULL if there
+ * is no side data with such type in this set.
+ */
+const AVFrameSideData *av_frame_side_data_get(const AVFrameSideData **sd,
+ const int nb_sd,
+ enum AVFrameSideDataType type);
+
+/**
* @}
*/