diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-02-21 22:27:07 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-02-21 22:27:07 +0000 |
commit | 77eba7bd99355fc37a2bfc9d0224218f4022762c (patch) | |
tree | eb8068c0a021e92449009c0070df81f0e50291d7 /libavcodec/cbs_h264.h | |
parent | 0cc8e34a94c84132cf5b0f6472c5f61c8a66cee1 (diff) | |
parent | a2ca8ed903b435446031a8a0792ca535e6ee2913 (diff) | |
download | ffmpeg-streaming-77eba7bd99355fc37a2bfc9d0224218f4022762c.zip ffmpeg-streaming-77eba7bd99355fc37a2bfc9d0224218f4022762c.tar.gz |
Merge commit 'a2ca8ed903b435446031a8a0792ca535e6ee2913'
* commit 'a2ca8ed903b435446031a8a0792ca535e6ee2913':
cbs_h264: Add utility functions to insert/delete SEI messages
Merged-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavcodec/cbs_h264.h')
-rw-r--r-- | libavcodec/cbs_h264.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libavcodec/cbs_h264.h b/libavcodec/cbs_h264.h index 9c80e72..ae39fc7 100644 --- a/libavcodec/cbs_h264.h +++ b/libavcodec/cbs_h264.h @@ -22,6 +22,7 @@ #include <stddef.h> #include <stdint.h> +#include "cbs.h" #include "cbs_h2645.h" #include "h264.h" @@ -428,4 +429,22 @@ typedef struct CodedBitstreamH264Context { } CodedBitstreamH264Context; +/** + * Add an SEI message to an access unit. + */ +int ff_cbs_h264_add_sei_message(CodedBitstreamContext *ctx, + CodedBitstreamFragment *access_unit, + const H264RawSEIPayload *payload); + +/** + * Delete an SEI message from an access unit. + * + * Deletes from nal_unit, which must be an SEI NAL unit. If this is the + * last message in nal_unit, also deletes it from access_unit. + */ +int ff_cbs_h264_delete_sei_message(CodedBitstreamContext *ctx, + CodedBitstreamFragment *access_unit, + CodedBitstreamUnit *nal_unit, + int position); + #endif /* AVCODEC_CBS_H264_H */ |