]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/atsc_a53.h
avfilter/vf_identity: fix typo
[ffmpeg] / libavcodec / atsc_a53.h
index a419d801b96be80aad6b9f34b15fa008c0c1ef4f..0622a5554937cf6e27e6d64b7c090c708f2cab03 100644 (file)
 #ifndef AVCODEC_ATSC_A53_H
 #define AVCODEC_ATSC_A53_H
 
+#include <stddef.h>
 #include <stdint.h>
 
 #include "libavutil/buffer.h"
+#include "libavutil/frame.h"
+
+/**
+ * Check AVFrame for A53 side data and allocate and fill SEI message with A53 info
+ *
+ * @param frame      Raw frame to get A53 side data from
+ * @param prefix_len Number of bytes to allocate before SEI message
+ * @param data       Pointer to a variable to store allocated memory
+ *                   Upon return the variable will hold NULL on error or if frame has no A53 info.
+ *                   Otherwise it will point to prefix_len uninitialized bytes followed by
+ *                   *sei_size SEI message
+ * @param sei_size   Pointer to a variable to store generated SEI message length
+ * @return           Zero on success, negative error code on failure
+ */
+int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len,
+                     void **data, size_t *sei_size);
 
 /**
  * Parse a data array for ATSC A53 Part 4 Closed Captions and store them in an AVBufferRef.