diff options
author | Andrey Turkin <andrey.turkin@gmail.com> | 2016-06-04 21:11:52 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-19 02:11:20 +0200 |
commit | 63adb3602d3b35c5d1df14cf1e477bc458f96b7b (patch) | |
tree | a745bca56152522f53126b17f6e0583228a2203b /libavcodec/internal.h | |
parent | 0fcc252829a58f25fada8a93278bfb2ac29f2237 (diff) | |
download | ffmpeg-63adb3602d3b35c5d1df14cf1e477bc458f96b7b.tar.gz |
libavcodec: factor out SEI generation for A53 captions
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index be54471ef6..000fe263cc 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -345,4 +345,19 @@ AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx); int ff_side_data_set_encoder_stats(AVPacket *pkt, int quality, int64_t *error, int error_count, int pict_type); +/** + * 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); + #endif /* AVCODEC_INTERNAL_H */ |