aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-06-18 11:58:50 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-06-28 21:00:52 +0800
commit9294f5b497e6253c4a3c510b86eb63984ce9dfe7 (patch)
tree7eed382a4823740c329a4b0cb6f0633710b0d254 /libavcodec/internal.h
parent5151f6d2953d75bd26898b2bd51fe095796c07ad (diff)
downloadffmpeg-9294f5b497e6253c4a3c510b86eb63984ce9dfe7.tar.gz
avcodec/utils: add ff_alloc_timecode_sei() for hevc timecode sei
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 21708df12e..87710780af 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -380,6 +380,21 @@ int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len,
void **data, size_t *sei_size);
/**
+ * Check AVFrame for S12M timecode side data and allocate and fill TC SEI message with timecode info
+ *
+ * @param frame Raw frame to get S12M timecode 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 S12M timecode 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_timecode_sei(const AVFrame *frame, size_t prefix_len,
+ void **data, size_t *sei_size);
+
+/**
* Get an estimated video bitrate based on frame size, frame rate and coded
* bits per pixel.
*/