diff options
author | James Almer <jamrial@gmail.com> | 2020-08-09 14:01:16 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-08-15 13:01:25 -0300 |
commit | 0de01da1d2d912d3cebf528b188dc5b89d6b7d69 (patch) | |
tree | e502384dcb0634959eef0d7b790f81d1e1870399 /libavcodec/atsc_a53.h | |
parent | 1ab3ae6fd5b1866aa42cfc0c5d79700adb7281d8 (diff) | |
download | ffmpeg-0de01da1d2d912d3cebf528b188dc5b89d6b7d69.tar.gz |
avcodec: move ff_alloc_a53_sei() to atsc_53
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/atsc_a53.h')
-rw-r--r-- | libavcodec/atsc_a53.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavcodec/atsc_a53.h b/libavcodec/atsc_a53.h index a419d801b9..0622a55549 100644 --- a/libavcodec/atsc_a53.h +++ b/libavcodec/atsc_a53.h @@ -19,9 +19,26 @@ #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. |